Class Members.SingularAttributeImpl<X,T>
java.lang.Object
org.apache.openjpa.persistence.meta.Members.Member<X,T>
org.apache.openjpa.persistence.meta.Members.SingularAttributeImpl<X,T>
- Type Parameters:
X- The type containing the represented attributeT- The type of the represented attribute
- All Implemented Interfaces:
Attribute<X,T>, Bindable<T>, SingularAttribute<X, T>, Comparable<Members.Member<X, T>>
- Enclosing class:
Members
public static final class Members.SingularAttributeImpl<X,T>
extends Members.Member<X,T>
implements SingularAttribute<X,T>
Represents single-valued persistent attributes.
- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
Nested Class Summary
Nested classes/interfaces inherited from interface Attribute
Attribute.PersistentAttributeTypeNested classes/interfaces inherited from interface Bindable
Bindable.BindableType -
Field Summary
Fields inherited from class Members.Member
fmd, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bindable Java type of this attribute.Categorizes bindable type represented by this attribute.Categorizes the attribute.booleanisId()Affirms if this attribute is an id attribute.booleanAffirms if this attribute can be null.booleanAffirms if this attribute represents a version attribute.Methods inherited from class Members.Member
compareTo, getDeclaringType, getJavaMember, getJavaType, getName, getType, isAssociation, isCollection, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Attribute
getDeclaringType, getJavaMember, getJavaType, getName, isAssociation, isCollectionMethods inherited from interface SingularAttribute
getType
-
Constructor Details
-
SingularAttributeImpl
-
-
Method Details
-
isId
public boolean isId()Affirms if this attribute is an id attribute.- Specified by:
isIdin interfaceSingularAttribute<X,T>
-
isVersion
public boolean isVersion()Affirms if this attribute represents a version attribute.- Specified by:
isVersionin interfaceSingularAttribute<X,T>
-
isOptional
public boolean isOptional()Affirms if this attribute can be null.- Specified by:
isOptionalin interfaceSingularAttribute<X,T>
-
getBindableType
Categorizes bindable type represented by this attribute.- Specified by:
getBindableTypein interfaceBindable<X>
-
getBindableJavaType
Returns the bindable Java type of this attribute. If the bindable category of this attribute is 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.- Specified by:
getBindableJavaTypein interfaceBindable<X>
-
getPersistentAttributeType
Categorizes the attribute.- Specified by:
getPersistentAttributeTypein interfaceAttribute<X,T> - Overrides:
getPersistentAttributeTypein classMembers.Member<X,T>
-