org.datanucleus.jpa.metamodel
Class IdentifiableTypeImpl<X>
java.lang.Object
org.datanucleus.jpa.metamodel.TypeImpl<X>
org.datanucleus.jpa.metamodel.ManagedTypeImpl<X>
org.datanucleus.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 JPA2 Metamodel "IdentifiableType".
| Nested classes/interfaces inherited from interface javax.persistence.metamodel.Type |
javax.persistence.metamodel.Type.PersistenceType |
| Fields inherited from class org.datanucleus.jpa.metamodel.TypeImpl |
cls |
|
Method Summary |
<Y> javax.persistence.metamodel.SingularAttribute<X,Y> |
|
getDeclaredId(java.lang.Class<Y> cls)
|
<Y> javax.persistence.metamodel.SingularAttribute<X,Y> |
|
getDeclaredVersion(java.lang.Class<Y> cls)
|
<Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> |
|
getId(java.lang.Class<Y> cls)
|
java.util.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(java.lang.Class<Y> cls)
|
boolean |
hasSingleIdAttribute()
|
boolean |
hasVersionAttribute()
|
| Methods inherited from class org.datanucleus.jpa.metamodel.ManagedTypeImpl |
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 |
| 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 |
| Methods inherited from interface javax.persistence.metamodel.Type |
getJavaType, getPersistenceType |
IdentifiableTypeImpl
protected IdentifiableTypeImpl(java.lang.Class<X> cls,
org.datanucleus.metadata.AbstractClassMetaData cmd,
MetamodelImpl model)
getDeclaredId
public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredId(java.lang.Class<Y> cls)
- Specified by:
getDeclaredId in interface javax.persistence.metamodel.IdentifiableType<X>
getDeclaredVersion
public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredVersion(java.lang.Class<Y> cls)
- Specified by:
getDeclaredVersion in interface javax.persistence.metamodel.IdentifiableType<X>
getId
public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getId(java.lang.Class<Y> cls)
- Specified by:
getId in interface javax.persistence.metamodel.IdentifiableType<X>
getIdClassAttributes
public java.util.Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> getIdClassAttributes()
- Specified by:
getIdClassAttributes in interface javax.persistence.metamodel.IdentifiableType<X>
getIdType
public javax.persistence.metamodel.Type<?> getIdType()
- Specified by:
getIdType in interface javax.persistence.metamodel.IdentifiableType<X>
getSupertype
public javax.persistence.metamodel.IdentifiableType<? super X> getSupertype()
- Specified by:
getSupertype in interface javax.persistence.metamodel.IdentifiableType<X>
getVersion
public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getVersion(java.lang.Class<Y> cls)
- Specified by:
getVersion in interface javax.persistence.metamodel.IdentifiableType<X>
hasSingleIdAttribute
public boolean hasSingleIdAttribute()
- Specified by:
hasSingleIdAttribute in interface javax.persistence.metamodel.IdentifiableType<X>
hasVersionAttribute
public boolean hasVersionAttribute()
- Specified by:
hasVersionAttribute in interface javax.persistence.metamodel.IdentifiableType<X>
Copyright © 2011. All Rights Reserved.