Class IdentifiableTypeImpl<X>
- java.lang.Object
-
- org.datanucleus.api.jpa.metamodel.TypeImpl<X>
-
- org.datanucleus.api.jpa.metamodel.ManagedTypeImpl<X>
-
- org.datanucleus.api.jpa.metamodel.IdentifiableTypeImpl<X>
-
- All Implemented Interfaces:
javax.persistence.metamodel.IdentifiableType<X>
,javax.persistence.metamodel.ManagedType<X>
,javax.persistence.metamodel.Type<X>
- Direct Known Subclasses:
EntityTypeImpl
,MappedSuperclassTypeImpl
public class IdentifiableTypeImpl<X> extends ManagedTypeImpl<X> implements javax.persistence.metamodel.IdentifiableType<X>
Implementation of JPA Metamodel "IdentifiableType".
-
-
Field Summary
-
Fields inherited from class org.datanucleus.api.jpa.metamodel.ManagedTypeImpl
attributes, cmd, model
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IdentifiableTypeImpl(Class<X> cls, org.datanucleus.metadata.AbstractClassMetaData cmd, MetamodelImpl model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Y> javax.persistence.metamodel.SingularAttribute<X,Y>
getDeclaredId(Class<Y> cls)
<Y> javax.persistence.metamodel.SingularAttribute<X,Y>
getDeclaredVersion(Class<Y> cls)
<Y> javax.persistence.metamodel.SingularAttribute<? super X,Y>
getId(Class<Y> cls)
Set<javax.persistence.metamodel.SingularAttribute<? super X,?>>
getIdClassAttributes()
javax.persistence.metamodel.Type<?>
getIdType()
javax.persistence.metamodel.IdentifiableType<? super X>
getSupertype()
<Y> javax.persistence.metamodel.SingularAttribute<? super X,Y>
getVersion(Class<Y> cls)
boolean
hasSingleIdAttribute()
boolean
hasVersionAttribute()
-
Methods inherited from class org.datanucleus.api.jpa.metamodel.ManagedTypeImpl
createAttributeForMember, getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getMetadata, getModel, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getSuperclass
-
Methods inherited from class org.datanucleus.api.jpa.metamodel.TypeImpl
getJavaType, getPersistenceType, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.persistence.metamodel.ManagedType
getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes
-
-
-
-
Constructor Detail
-
IdentifiableTypeImpl
protected IdentifiableTypeImpl(Class<X> cls, org.datanucleus.metadata.AbstractClassMetaData cmd, MetamodelImpl model)
-
-
Method Detail
-
getDeclaredId
public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredId(Class<Y> cls)
- Specified by:
getDeclaredId
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
getDeclaredVersion
public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredVersion(Class<Y> cls)
- Specified by:
getDeclaredVersion
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
getId
public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getId(Class<Y> cls)
- Specified by:
getId
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
getIdClassAttributes
public Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> getIdClassAttributes()
- Specified by:
getIdClassAttributes
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
getIdType
public javax.persistence.metamodel.Type<?> getIdType()
- Specified by:
getIdType
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
getSupertype
public javax.persistence.metamodel.IdentifiableType<? super X> getSupertype()
- Specified by:
getSupertype
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
getVersion
public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getVersion(Class<Y> cls)
- Specified by:
getVersion
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
hasSingleIdAttribute
public boolean hasSingleIdAttribute()
- Specified by:
hasSingleIdAttribute
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
hasVersionAttribute
public boolean hasVersionAttribute()
- Specified by:
hasVersionAttribute
in interfacejavax.persistence.metamodel.IdentifiableType<X>
-
-