Class Members.Member<X,Y>
java.lang.Object
org.apache.openjpa.persistence.meta.Members.Member<X,Y>
- Type Parameters:
X- The type that contains this attributeY- The type of this attribute
- All Implemented Interfaces:
Attribute<X,Y>, Comparable<Members.Member<X, Y>>
- Direct Known Subclasses:
Members.PluralAttributeImpl, Members.SingularAttributeImpl
- Enclosing class:
Members
public abstract static class Members.Member<X,Y>
extends Object
implements Attribute<X,Y>, Comparable<Members.Member<X,Y>>
An attribute of a Java type. A persistent attribute is realized as a field and getter/setter
method of a Java class. This implementation adapts kernel's
FieldMetaData construct
to meet the JPA API contract.- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
Nested Class Summary
Nested classes/interfaces inherited from interface Attribute
Attribute.PersistentAttributeType -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMember(AbstractManagedType<X> owner, FieldMetaData fmd) Supply immutable parts. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(Members.Member<X, Y> o) final ManagedType<X> Returns the managed type which declared this attribute.final MemberReturns the java.lang.reflect.Member for this attribute.Gets the Java type of this attribute.final StringgetName()Gets the name of this attribute.Returns the persistent category for the attribute.getType()Returns the type that represents the type of this attribute.final booleanAffirms if this attribute is an association.final booleanAffirms if this attribute is a collection.toString()
-
Field Details
-
owner
-
fmd
-
-
Constructor Details
-
Member
Supply immutable parts.- Parameters:
owner- the persistent type that contains this attributefmd- the kernel's concrete representation of this attribute
-
-
Method Details
-
getDeclaringType
Returns the managed type which declared this attribute.- Specified by:
getDeclaringTypein interfaceAttribute<X,Y>
-
getJavaMember
Returns the java.lang.reflect.Member for this attribute.- Specified by:
getJavaMemberin interfaceAttribute<X,Y>
-
getJavaType
-
getName
-
getType
-
isAssociation
public final boolean isAssociation()Affirms if this attribute is an association.- Specified by:
isAssociationin interfaceAttribute<X,Y>
-
isCollection
public final boolean isCollection()Affirms if this attribute is a collection.- Specified by:
isCollectionin interfaceAttribute<X,Y>
-
getPersistentAttributeType
Returns the persistent category for the attribute.- Specified by:
getPersistentAttributeTypein interfaceAttribute<X,Y>
-
compareTo
- Specified by:
compareToin interfaceComparable<X>
-
toString
-