|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.ejb.metamodel.AbstractType<X>
org.hibernate.ejb.metamodel.AbstractManagedType<X>
org.hibernate.ejb.metamodel.AbstractIdentifiableType<X>
public abstract class AbstractIdentifiableType<X>
Defines commonality for the JPA IdentifiableType types. JPA defines
identifiable types as entities or mapped-superclasses. Basically things to which an
identifier can be attached.
| Nested Class Summary | |
|---|---|
static interface |
AbstractIdentifiableType.Builder<X>
|
| Nested classes/interfaces inherited from interface javax.persistence.metamodel.Type |
|---|
javax.persistence.metamodel.Type.PersistenceType |
| Constructor Summary | |
|---|---|
AbstractIdentifiableType(Class<X> javaType,
AbstractIdentifiableType<? super X> superType,
boolean hasIdentifierProperty,
boolean versioned)
|
|
| Method Summary | ||
|---|---|---|
protected void |
checkDeclaredId()
Centralized check to ensure the id is actually declared on the class mapped here, as opposed to a super class. |
|
protected void |
checkDeclaredVersion()
Centralized check to ensure the version (if one) is actually declared on the class mapped here, as opposed to a super class. |
|
protected void |
checkSimpleId()
Centralized check to ensure the id for this hierarchy is a simple one (i.e., does not use an id-class). |
|
AbstractIdentifiableType.Builder<X> |
getBuilder()
|
|
|
getDeclaredId(Class<Y> javaType)
|
|
javax.persistence.metamodel.SingularAttribute<X,?> |
getDeclaredVersion()
For used to retrieve the declared version when populating the static metamodel. |
|
|
getDeclaredVersion(Class<Y> javaType)
|
|
|
getId(Class<Y> javaType)
|
|
Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> |
getIdClassAttributes()
|
|
javax.persistence.metamodel.Type<?> |
getIdType()
|
|
AbstractIdentifiableType<? super X> |
getSupertype()
|
|
|
getVersion(Class<Y> javaType)
|
|
boolean |
hasDeclaredVersionAttribute()
|
|
boolean |
hasSingleIdAttribute()
|
|
boolean |
hasVersionAttribute()
|
|
protected AbstractIdentifiableType<? super X> |
requireSupertype()
|
|
| Methods inherited from class org.hibernate.ejb.metamodel.AbstractType |
|---|
getJavaType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 |
| Constructor Detail |
|---|
public AbstractIdentifiableType(Class<X> javaType,
AbstractIdentifiableType<? super X> superType,
boolean hasIdentifierProperty,
boolean versioned)
| Method Detail |
|---|
public AbstractIdentifiableType<? super X> getSupertype()
getSupertype in interface javax.persistence.metamodel.IdentifiableType<X>getSupertype in class AbstractManagedType<X>protected AbstractIdentifiableType<? super X> requireSupertype()
public boolean hasSingleIdAttribute()
hasSingleIdAttribute in interface javax.persistence.metamodel.IdentifiableType<X>public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getId(Class<Y> javaType)
getId in interface javax.persistence.metamodel.IdentifiableType<X>protected void checkSimpleId()
checkIdClass()public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredId(Class<Y> javaType)
getDeclaredId in interface javax.persistence.metamodel.IdentifiableType<X>protected void checkDeclaredId()
public javax.persistence.metamodel.Type<?> getIdType()
getIdType in interface javax.persistence.metamodel.IdentifiableType<X>public Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> getIdClassAttributes()
getIdClassAttributes in interface javax.persistence.metamodel.IdentifiableType<X>public boolean hasVersionAttribute()
hasVersionAttribute in interface javax.persistence.metamodel.IdentifiableType<X>public boolean hasDeclaredVersionAttribute()
public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getVersion(Class<Y> javaType)
getVersion in interface javax.persistence.metamodel.IdentifiableType<X>public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredVersion(Class<Y> javaType)
getDeclaredVersion in interface javax.persistence.metamodel.IdentifiableType<X>public javax.persistence.metamodel.SingularAttribute<X,?> getDeclaredVersion()
protected void checkDeclaredVersion()
public AbstractIdentifiableType.Builder<X> getBuilder()
getBuilder in class AbstractManagedType<X>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||