public interface JpaAttributeAccessor
Modifier and Type | Method and Description |
---|---|
<X,Y> Y |
get(javax.persistence.metamodel.Attribute<X,Y> attribute,
X entity)
Retrieves the current value of the given attribute from the given entity.
|
<X,Y> void |
set(javax.persistence.metamodel.Attribute<X,Y> attribute,
X entity,
Y value)
Sets the current value of the given attribute on the given entity.
|
<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.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.