X - The type containing the represented attributeT - The type of the represented attributepublic class SingularAttributeImpl<X,T> extends AttributeImpl<X,T>
Purpose: Provides the implementation for the SingularAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type SingularAttribute represents persistent single-valued properties or fields.
javax.persistence.metamodel.SingularAttribute,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
SingularAttributeImpl(ManagedTypeImpl<X> managedType,
DatabaseMapping mapping)
Create an instance of the Attribute
|
protected |
SingularAttributeImpl(ManagedTypeImpl<X> managedType,
DatabaseMapping mapping,
boolean validationEnabled)
INTERNAL:
Create an Attribute instance with a passed in validation flag (usually set to true only during Metamodel initialization)
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getBindableJavaType()
Return the Java type of the represented object.
|
Bindable.BindableType |
getBindableType() |
java.lang.Class<T> |
getJavaType()
Return the Java type of the represented attribute.
|
<any> |
getType()
Return the type that represents the type of the attribute.
|
boolean |
isId()
Is the attribute an id attribute.
|
boolean |
isOptional()
Can the attribute be null.
|
boolean |
isPlural()
INTERNAL:
Return whether the attribute is plural or singular
|
boolean |
isVersion()
Is the attribute a version attribute.
|
java.lang.String |
toString()
Return the String representation of the receiver.
|
getDeclaringType, getDescriptor, getJavaMember, getManagedTypeImpl, getMapping, getMetamodel, getName, getPersistentAttributeType, isAssociation, isCollectionprotected SingularAttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping)
managedType - mapping - protected SingularAttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping, boolean validationEnabled)
managedType - mapping - validationEnabled - public java.lang.Class<T> getBindableJavaType()
PLURAL_ATTRIBUTE,
the Java element type is returned. If the bindable type is
SINGULAR_ATTRIBUTE or ENTITY_TYPE,
the Java type of the
represented entity or attribute is returned.public boolean isId()
public boolean isOptional()
public boolean isPlural()
isPlural in class AttributeImpl<X,T>public boolean isVersion()
public Bindable.BindableType getBindableType()
public java.lang.Class<T> getJavaType()
getJavaType in class AttributeImpl<X,T>public <any> getType()
public java.lang.String toString()
toString in class java.lang.Object