|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
X
- The type containing the represented attributeY
- The type of the represented attributepublic interface ErraiAttribute<X,Y>
Extends the JPA Attribute interface with methods required by Errai persistence but missing from the JPA metamodel. Most importantly, this interface provides methods for reading and writing the attribute value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Attribute |
---|
javax.persistence.metamodel.Attribute.PersistentAttributeType |
Method Summary | |
---|---|
boolean |
cascades(javax.persistence.CascadeType cascadeType)
Returns true if this attribute cascades the given type of operation. |
Y |
get(X entityInstance)
Retrieves the value of this attribute from the given entity instance. |
void |
set(X entityInstance,
Y value)
Sets the value of this attribute on the given entity instance. |
String |
toString()
Returns the type of this attribute, its owning entity type, and the attribute's name. |
Methods inherited from interface javax.persistence.metamodel.Attribute |
---|
getDeclaringType, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection |
Method Detail |
---|
boolean cascades(javax.persistence.CascadeType cascadeType)
cascadeType
should be cascaded
to this attribute from its owning entity.Y get(X entityInstance)
entityInstance
- The entity to retrieve the entity value from. The type of this
argument must be assignable to the declaring entity's type
(returned by Attribute.getDeclaringType()
).
void set(X entityInstance, Y value)
entityInstance
- The entity to set this attribute value on. The type of this
argument must be assignable to the declaring entity's type
(returned by Attribute.getDeclaringType()
).value
- The value to set the attribute to.String toString()
toString
in class Object
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |