Class Types.Identifiable<X>
java.lang.Object
org.apache.openjpa.persistence.meta.AbstractManagedType<X>
org.apache.openjpa.persistence.meta.Types.Identifiable<X>
- Type Parameters:
X-
- All Implemented Interfaces:
IdentifiableType<X>, ManagedType<X>, Type<X>
- Direct Known Subclasses:
Types.Entity, Types.MappedSuper
- Enclosing class:
Types
public abstract static class Types.Identifiable<X>
extends AbstractManagedType<X>
implements IdentifiableType<X>
Represents an abstract persistent type that has a persistent identity.
- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractManagedType
AbstractManagedType.AttributeNameFilter<X>, AbstractManagedType.AttributeTypeFilter<X,Y>, AbstractManagedType.DeclaredAttributeFilter<X>, AbstractManagedType.ElementTypeFilter<X, E>, AbstractManagedType.EntryTypeFilter<X, K, V>, AbstractManagedType.Filter<T>, AbstractManagedType.IdAttributeFilter<X>, AbstractManagedType.PluralCategoryFilter<X>, AbstractManagedType.SingularAttributeFilter<X>, AbstractManagedType.VersionAttributeFilter<X> Nested classes/interfaces inherited from interface Type
Type.PersistenceType -
Field Summary
FieldsFields inherited from class AbstractManagedType
meta, model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionType<?> Return the type that represents the type of the id.IdentifiableType<? super X> Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass.booleanbooleanWhether or not the identifiable type uses an attribute to represents its persistent identity.booleanWhether or not the identifiable type has a version attribute.toString()Methods inherited from class AbstractManagedType
filter, getAttribute, getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredId, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getDeclaredVersion, getId, getIdClassAttributes, getList, getList, getMap, getMap, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getVersion, pickMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IdentifiableType
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getVersionMethods inherited from interface 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, getSingularAttributesMethods inherited from interface Type
getJavaType, getPersistenceType
-
Field Details
-
cls
-
-
Constructor Details
-
Identifiable
-
-
Method Details
-
hasVersionAttribute
public boolean hasVersionAttribute()Whether or not the identifiable type has a version attribute.- Specified by:
hasVersionAttributein interfaceIdentifiableType<X>- Returns:
- boolean indicating whether or not the identifiable type has a version attribute
-
getSupertype
Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass.- Specified by:
getSupertypein interfaceIdentifiableType<X>- Returns:
- super type of identifiable type or null if no such super type
-
hasIdAttribute
public boolean hasIdAttribute() -
hasSingleIdAttribute
public boolean hasSingleIdAttribute()Whether or not the identifiable type uses an attribute to represents its persistent identity. Returns true for a simple or embedded identifier. Returns false for an classes that use separate identifier class for its persistent identity.- Specified by:
hasSingleIdAttributein interfaceIdentifiableType<X>- Returns:
- boolean indicating whether or not the identifiable type represents its persistent identity via a single identifier attribute.
-
getIdType
Return the type that represents the type of the id.- Specified by:
getIdTypein interfaceIdentifiableType<X>- Returns:
- type of identifier
-
getJavaType
- Specified by:
getJavaTypein interfaceType<X>
-
toString
-