X - The represented type that contains the attributeT - The type of the represented attributepublic abstract class AttributeImpl<X,T>
extends java.lang.Object
implements java.io.Serializable
Purpose: Provides the implementation for the Attribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: An attribute of a Java type
javax.persistence.metamodel.Attribute,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
AttributeImpl(ManagedTypeImpl<X> managedType,
DatabaseMapping mapping)
INTERNAL:
|
| Modifier and Type | Method and Description |
|---|---|
<any> |
getDeclaringType()
Return the managed type representing the type in which
the attribute was declared.
|
protected ClassDescriptor |
getDescriptor()
INTERNAL:
Return the Descriptor associated with this attribute
|
java.lang.reflect.Member |
getJavaMember()
Return the java.lang.reflect.Member for the represented attribute.
|
abstract java.lang.Class<T> |
getJavaType()
Return the Java type of the represented attribute.
|
ManagedTypeImpl<X> |
getManagedTypeImpl()
INTERNAL:
Return the managed type representing the type in which the member was
declared.
|
DatabaseMapping |
getMapping()
INTERNAL:
Return the databaseMapping that represents the type
|
protected MetamodelImpl |
getMetamodel()
INTERNAL:
Return the concrete metamodel that this attribute is associated with.
|
java.lang.String |
getName()
Return the name of the attribute.
|
Attribute.PersistentAttributeType |
getPersistentAttributeType()
Return the persistent attribute type for the attribute.
|
boolean |
isAssociation()
Is the attribute an association.
|
boolean |
isCollection()
Is the attribute collection-valued.
|
abstract boolean |
isPlural()
INTERNAL:
Return whether the attribute is plural or singular
|
protected AttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping)
managedType - mapping - public <any> getDeclaringType()
protected ClassDescriptor getDescriptor()
public java.lang.reflect.Member getJavaMember()
public abstract java.lang.Class<T> getJavaType()
public ManagedTypeImpl<X> getManagedTypeImpl()
public DatabaseMapping getMapping()
protected MetamodelImpl getMetamodel()
public java.lang.String getName()
public Attribute.PersistentAttributeType getPersistentAttributeType()
public boolean isAssociation()
public boolean isCollection()
This will be true for the mappings CollectionMapping, AbstractCompositeCollectionMapping, AbstractCompositeDirectCollectionMapping and their subclasses
public abstract boolean isPlural()