Class AttributeImpl<X,Y>
- java.lang.Object
-
- org.datanucleus.api.jakarta.metamodel.AttributeImpl<X,Y>
-
- Type Parameters:
X
- The type containing the represented attributeY
- The type of the represented attribute
- All Implemented Interfaces:
jakarta.persistence.metamodel.Attribute<X,Y>
- Direct Known Subclasses:
PluralAttributeImpl
,SingularAttributeImpl
public class AttributeImpl<X,Y> extends Object implements jakarta.persistence.metamodel.Attribute<X,Y>
Implementation of Jakarta Persistence Metamodel "Attribute". Provides a wrapper to AbstractMemberMetaData.
-
-
Constructor Summary
Constructors Constructor Description AttributeImpl(org.datanucleus.metadata.AbstractMemberMetaData mmd, ManagedTypeImpl<X> owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.persistence.metamodel.ManagedType<X>
getDeclaringType()
Member
getJavaMember()
Class<Y>
getJavaType()
org.datanucleus.metadata.AbstractMemberMetaData
getMetadata()
Convenience accessor for the metadata underlying this member.String
getName()
jakarta.persistence.metamodel.Attribute.PersistentAttributeType
getPersistentAttributeType()
jakarta.persistence.metamodel.Type<Y>
getType()
Return the type of the attribute.boolean
isAssociation()
boolean
isCollection()
-
-
-
Constructor Detail
-
AttributeImpl
public AttributeImpl(org.datanucleus.metadata.AbstractMemberMetaData mmd, ManagedTypeImpl<X> owner)
-
-
Method Detail
-
getMetadata
public org.datanucleus.metadata.AbstractMemberMetaData getMetadata()
Convenience accessor for the metadata underlying this member.- Returns:
- The metadata
-
getDeclaringType
public jakarta.persistence.metamodel.ManagedType<X> getDeclaringType()
-
getJavaMember
public Member getJavaMember()
-
getName
public String getName()
-
getPersistentAttributeType
public jakarta.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
-
isAssociation
public boolean isAssociation()
-
isCollection
public boolean isCollection()
-
getType
public final jakarta.persistence.metamodel.Type<Y> getType()
Return the type of the attribute. If the type is simple then returns that java type, otherwise if a collection then returns the element type.- Returns:
- The type of attribute
-
-