- Type Parameters:
X
- The represented type that contains the attributeY
- The type of the represented attribute
- All Known Subinterfaces:
CollectionAttribute<X,
,E> ListAttribute<X,
,E> MapAttribute<X,
,K, V> PluralAttribute<X,
,C, E> SetAttribute<X,
,E> SingularAttribute<X,
T>
public interface Attribute<X,Y>
Represents an attribute of a Java type.
- Since:
- 2.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the managed type representing the type in which the attribute was declared.Return theMember
for the represented attribute.Return the Java type of the represented attribute.getName()
Return the name of the attribute.Return the persistent attribute type for the attribute.boolean
Is the attribute an association.boolean
Is the attribute collection-valued (represents aCollection
,Set
,List
, orMap
).
-
Method Details
-
getName
-
getPersistentAttributeType
Attribute.PersistentAttributeType getPersistentAttributeType()Return the persistent attribute type for the attribute.- Returns:
- persistent attribute type
-
getDeclaringType
ManagedType<X> getDeclaringType()Return the managed type representing the type in which the attribute was declared.- Returns:
- declaring type
-
getJavaType
-
getJavaMember
-
isAssociation
boolean isAssociation()Is the attribute an association.- Returns:
- boolean indicating whether the attribute corresponds to an association
-
isCollection
boolean isCollection()Is the attribute collection-valued (represents aCollection
,Set
,List
, orMap
).- Returns:
- boolean indicating whether the attribute is collection-valued
-