|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JpaAttributeAccessor
JPA attribute values cannot be obtained the same way on the client as on the server. This interface is the neutral ground that can be used in shared code.
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. |
Method Detail |
---|
<X,Y> Y get(javax.persistence.metamodel.Attribute<X,Y> attribute, X entity)
attribute
- The attribute to retrieve. Must not be null.entity
- the entity instance to read the attribute value from. Must not be null.
NullPointerException
- if either argument is null.<X,Y> void set(javax.persistence.metamodel.Attribute<X,Y> attribute, X entity, Y value)
entity
- the entity instance to read the attribute value from. Must not be
null.attribute
- The attribute to retrieve. Must not be null.value
- The new value for the attribute. May be null.
NullPointerException
- if attribute
or entity
is null.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |