Module org.eclipse.persistence.jpa
Class SingularAttributeImpl<X,T> 
java.lang.Object
org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl<X,T>
 
org.eclipse.persistence.internal.jpa.metamodel.SingularAttributeImpl<X,T> 
- Type Parameters:
- X- The type containing the represented attribute
- T- The type of the represented attribute
- All Implemented Interfaces:
- Attribute<X,,- T> - Bindable<T>,- SingularAttribute<X,,- T> - Serializable
public class SingularAttributeImpl<X,T> 
extends AttributeImpl<X,T>
implements 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.
- Since:
- EclipseLink 1.2 - JPA 2.0
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface jakarta.persistence.metamodel.AttributeAttribute.PersistentAttributeTypeNested classes/interfaces inherited from interface jakarta.persistence.metamodel.BindableBindable.BindableType
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSingularAttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping) Create an instance of the AttributeprotectedSingularAttributeImpl(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)
- 
Method SummaryModifier and TypeMethodDescriptionReturn the Java type of the represented object.Return the Java type of the represented attribute.getType()Return the type that represents the type of the attribute.booleanisId()Is the attribute an id attribute.booleanCan the attribute be null.booleanisPlural()INTERNAL: Return whether the attribute is plural or singularbooleanIs the attribute a version attribute.toString()Return the String representation of the receiver.Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.AttributeImplgetDeclaringType, getDescriptor, getJavaMember, getManagedTypeImpl, getMapping, getMetamodel, getName, getPersistentAttributeType, isAssociation, isCollectionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.persistence.metamodel.AttributegetDeclaringType, getJavaMember, getName, getPersistentAttributeType, isAssociation, isCollection
- 
Constructor Details- 
SingularAttributeImplCreate an instance of the Attribute
- 
SingularAttributeImplprotected 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)
 
- 
- 
Method Details- 
getBindableJavaTypeReturn the Java type of the represented object. If the bindable type of the object isPLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type isSINGULAR_ATTRIBUTEorENTITY_TYPE, the Java type of the represented entity or attribute is returned.- Specified by:
- getBindableJavaTypein interface- Bindable<X>
- Returns:
- Java type
 
- 
isIdpublic boolean isId()Is the attribute an id attribute.- Specified by:
- isIdin interface- SingularAttribute<X,- T> 
- Returns:
- boolean indicating whether or not attribute is an id
 
- 
isOptionalpublic boolean isOptional()Can the attribute be null.- Specified by:
- isOptionalin interface- SingularAttribute<X,- T> 
- Returns:
- boolean indicating whether or not the attribute can be null
 
- 
isPluralpublic boolean isPlural()INTERNAL: Return whether the attribute is plural or singular- Specified by:
- isPluralin class- AttributeImpl<X,- T> 
 
- 
isVersionpublic boolean isVersion()Is the attribute a version attribute.- Specified by:
- isVersionin interface- SingularAttribute<X,- T> 
- Returns:
- boolean indicating whether or not attribute is a version attribute
 
- 
getBindableType- Specified by:
- getBindableTypein interface- Bindable<X>
 
- 
getJavaTypeReturn the Java type of the represented attribute.- Specified by:
- getJavaTypein interface- Attribute<X,- T> 
- Specified by:
- getJavaTypein class- AttributeImpl<X,- T> 
- Returns:
- Java type
 
- 
getTypeReturn the type that represents the type of the attribute.- Specified by:
- getTypein interface- SingularAttribute<X,- T> 
- Returns:
- type of attribute
 
- 
toStringReturn the String representation of the receiver.
 
-