org.jboss.errai.jpa.sync.client.local
Class ErraiAttributeAccessor
java.lang.Object
org.jboss.errai.jpa.sync.client.local.ErraiAttributeAccessor
- All Implemented Interfaces:
- JpaAttributeAccessor
public class ErraiAttributeAccessor
- extends Object
- implements JpaAttributeAccessor
Implementation of JpaAttributeAccessor
that works with Errai's
generated client-side Attribute objects (which have their own get() and set()
methods).
- Author:
- Jonathan Fuerth
Method Summary |
|
get(javax.persistence.metamodel.Attribute<X,Y> attribute,
X entity)
Retrieves the current value of the given attribute from the given entity. |
|
set(javax.persistence.metamodel.Attribute<X,Y> attribute,
X entity,
Y value)
Sets the current value of the given attribute on the given entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErraiAttributeAccessor
public ErraiAttributeAccessor()
get
public <X,Y> Y get(javax.persistence.metamodel.Attribute<X,Y> attribute,
X entity)
- Description copied from interface:
JpaAttributeAccessor
- Retrieves the current value of the given attribute from the given entity.
- Specified by:
get
in interface JpaAttributeAccessor
- Parameters:
attribute
- The attribute to retrieve. Must not be null.entity
- the entity instance to read the attribute value from. Must not be null.
- Returns:
- The value of the given attribute. May be null.
set
public <X,Y> void set(javax.persistence.metamodel.Attribute<X,Y> attribute,
X entity,
Y value)
- Description copied from interface:
JpaAttributeAccessor
- Sets the current value of the given attribute on the given entity.
- Specified by:
set
in interface JpaAttributeAccessor
- Parameters:
attribute
- The attribute to retrieve. Must not be null.entity
- the entity instance to read the attribute value from. Must not be
null.value
- The new value for the attribute. May be null.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.