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:
 jakarta.persistence.metamodel.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 jakarta.persistence.metamodel.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'sFieldMetaDataconstruct to meet the JPA API contract. 
- 
- 
Field Summary
Fields Modifier and Type Field Description FieldMetaDatafmdAbstractManagedType<X>owner 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedMember(AbstractManagedType<X> owner, FieldMetaData fmd)Supply immutable parts. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Members.Member<X,Y> o)jakarta.persistence.metamodel.ManagedType<X>getDeclaringType()Returns the managed type which declared this attribute.MembergetJavaMember()Returns the java.lang.reflect.Member for this attribute.Class<Y>getJavaType()Gets the Java type of this attribute.StringgetName()Gets the name of this attribute.jakarta.persistence.metamodel.Attribute.PersistentAttributeTypegetPersistentAttributeType()Returns the persistent category for the attribute.jakarta.persistence.metamodel.Type<Y>getType()Returns the type that represents the type of this attribute.booleanisAssociation()Affirms if this attribute is an association.booleanisCollection()Affirms if this attribute is a collection.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
owner
public final AbstractManagedType<X> owner
 
- 
fmd
public final FieldMetaData fmd
 
 - 
 
- 
Constructor Detail
- 
Member
protected Member(AbstractManagedType<X> owner, FieldMetaData fmd)
Supply immutable parts.- Parameters:
 owner- the persistent type that contains this attributefmd- the kernel's concrete representation of this attribute
 
 - 
 
- 
Method Detail
- 
getDeclaringType
public final jakarta.persistence.metamodel.ManagedType<X> getDeclaringType()
Returns the managed type which declared this attribute. 
- 
getJavaMember
public final Member getJavaMember()
Returns the java.lang.reflect.Member for this attribute. 
- 
getName
public final String getName()
Gets the name of this attribute. 
- 
getType
public final jakarta.persistence.metamodel.Type<Y> getType()
Returns the type that represents the type of this attribute. 
- 
isAssociation
public final boolean isAssociation()
Affirms if this attribute is an association. 
- 
isCollection
public final boolean isCollection()
Affirms if this attribute is a collection. 
- 
getPersistentAttributeType
public jakarta.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
Returns the persistent category for the attribute. 
- 
compareTo
public int compareTo(Members.Member<X,Y> o)
- Specified by:
 compareToin interfaceComparable<X>
 
 - 
 
 -