X - The type containing the represented attributeT - The type of the represented attributepublic class SingularAttributeImpl<X,T> extends AttributeImpl<X,T> implements jakarta.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 | 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 |
|---|---|
Class<T> |
getBindableJavaType()
Return the Java type of the represented object.
|
jakarta.persistence.metamodel.Bindable.BindableType |
getBindableType() |
Class<T> |
getJavaType()
Return the Java type of the represented attribute.
|
jakarta.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.
|
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 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 jakarta.persistence.metamodel.Bindable<T>public boolean isId()
public boolean isOptional()
public boolean isPlural()
isPlural in class AttributeImpl<X,T>public boolean isVersion()
public jakarta.persistence.metamodel.Bindable.BindableType getBindableType()
getBindableType in interface jakarta.persistence.metamodel.Bindable<T>public Class<T> getJavaType()
getJavaType in interface jakarta.persistence.metamodel.Attribute<X,T>getJavaType in class AttributeImpl<X,T>public jakarta.persistence.metamodel.Type<T> getType()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.