X - The type containing the represented attributeT - The type of the represented attributepublic class SingularAttributeImpl<X,T> extends AttributeImpl<X,T> implements javax.persistence.metamodel.SingularAttribute<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.
SingularAttribute,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getBindableJavaType()
Return the Java type of the represented object.
|
javax.persistence.metamodel.Bindable.BindableType |
getBindableType() |
java.lang.Class<T> |
getJavaType()
Return the Java type of the represented attribute.
|
javax.persistence.metamodel.Type<T> |
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, getJavaMember, getManagedTypeImpl, getMapping, getName, getPersistentAttributeType, isAssociation, isCollectionpublic 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.getBindableJavaType in interface javax.persistence.metamodel.Bindable<T>public boolean isId()
public boolean isOptional()
public boolean isPlural()
isPlural in class AttributeImpl<X,T>public boolean isVersion()
public javax.persistence.metamodel.Bindable.BindableType getBindableType()
getBindableType in interface javax.persistence.metamodel.Bindable<T>public java.lang.Class<T> getJavaType()
getJavaType in interface javax.persistence.metamodel.Attribute<X,T>getJavaType in class AttributeImpl<X,T>public javax.persistence.metamodel.Type<T> getType()
public java.lang.String toString()
toString in class java.lang.ObjectEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference