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:
jakarta.persistence.metamodel.Attribute<X,T>
,jakarta.persistence.metamodel.Bindable<T>
,jakarta.persistence.metamodel.SingularAttribute<X,T>
,java.lang.Comparable<Members.Member<X,T>>
- Enclosing class:
- Members
public static final class Members.SingularAttributeImpl<X,T> extends Members.Member<X,T> implements jakarta.persistence.metamodel.SingularAttribute<X,T>
Represents single-valued persistent attributes.
-
-
Field Summary
-
Fields inherited from class org.apache.openjpa.persistence.meta.Members.Member
fmd, owner
-
-
Constructor Summary
Constructors Constructor Description SingularAttributeImpl(AbstractManagedType<X> owner, FieldMetaData fmd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<T>
getBindableJavaType()
Returns the bindable Java type of this attribute.jakarta.persistence.metamodel.Bindable.BindableType
getBindableType()
Categorizes bindable type represented by this attribute.jakarta.persistence.metamodel.Attribute.PersistentAttributeType
getPersistentAttributeType()
Categorizes the attribute.boolean
isId()
Affirms if this attribute is an id attribute.boolean
isOptional()
Affirms if this attribute can be null.boolean
isVersion()
Affirms if this attribute represents a version attribute.-
Methods inherited from class org.apache.openjpa.persistence.meta.Members.Member
compareTo, getDeclaringType, getJavaMember, getJavaType, getName, getType, isAssociation, isCollection, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
SingularAttributeImpl
public SingularAttributeImpl(AbstractManagedType<X> owner, FieldMetaData fmd)
-
-
Method Detail
-
isId
public boolean isId()
Affirms if this attribute is an id attribute.
-
isVersion
public boolean isVersion()
Affirms if this attribute represents a version attribute.
-
isOptional
public boolean isOptional()
Affirms if this attribute can be null.
-
getBindableType
public jakarta.persistence.metamodel.Bindable.BindableType getBindableType()
Categorizes bindable type represented by this attribute.- Specified by:
getBindableType
in interfacejakarta.persistence.metamodel.Bindable<X>
-
getBindableJavaType
public java.lang.Class<T> 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:
getBindableJavaType
in interfacejakarta.persistence.metamodel.Bindable<X>
-
getPersistentAttributeType
public jakarta.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
Categorizes the attribute.- Specified by:
getPersistentAttributeType
in interfacejakarta.persistence.metamodel.Attribute<X,T>
- Overrides:
getPersistentAttributeType
in classMembers.Member<X,T>
-
-