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