X - the generic typepublic abstract class AbstractIdentifiableType<X> extends AbstractManagedType<X> implements javax.persistence.metamodel.IdentifiableType<X>
IdentifiableType.| Modifier and Type | Field and Description |
|---|---|
private javax.persistence.metamodel.SingularAttribute<? super X,?> |
idAttribute
The id attribute.
|
private Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> |
idClassAttributes
The id class attributes.
|
private boolean |
isIdClass
The is id class.
|
private static org.slf4j.Logger |
log
The log.
|
hasValidationConstraints| Constructor and Description |
|---|
AbstractIdentifiableType(Class<X> clazz,
javax.persistence.metamodel.Type.PersistenceType persistenceType,
AbstractIdentifiableType<? super X> superClazzType)
Instantiates a new abstract identifiable type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIdAttribute(javax.persistence.metamodel.SingularAttribute<? super X,?> idAttribute,
boolean isIdClass,
Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> idClassAttributes)
Adds the id attribute.
|
<Y> javax.persistence.metamodel.SingularAttribute<X,Y> |
getDeclaredId(Class<Y> paramClass) |
<Y> javax.persistence.metamodel.SingularAttribute<X,Y> |
getDeclaredVersion(Class<Y> paramClass) |
<Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> |
getId(Class<Y> paramClass) |
javax.persistence.metamodel.SingularAttribute<? super X,?> |
getIdAttribute() |
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> paramClass) |
boolean |
hasSingleIdAttribute() |
boolean |
hasVersionAttribute() |
private void |
onError()
On error.
|
addPluralAttribute, addSingularAttribute, getAttribute, getAttributeBinding, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getDiscriminatorColumn, getDiscriminatorValue, getEntityAnnotation, getInheritenceType, getList, getList, getMap, getMap, getPluralAttributes, getSchemaName, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getSubManagedType, getSuperClazzType, getTableName, hasEmbeddableAttribute, hasLobAttribute, hasValidationConstraints, isInherited, setHasLobAttributegetJavaType, getPersistenceTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, 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, getSingularAttributesprivate javax.persistence.metamodel.SingularAttribute<? super X,?> idAttribute
private boolean isIdClass
private Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> idClassAttributes
private static org.slf4j.Logger log
AbstractIdentifiableType(Class<X> clazz, javax.persistence.metamodel.Type.PersistenceType persistenceType, AbstractIdentifiableType<? super X> superClazzType)
clazz - the clazzpersistenceType - the persistence typesuperClazzType - the super clazz typepublic <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getId(Class<Y> paramClass)
getId in interface javax.persistence.metamodel.IdentifiableType<X>public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredId(Class<Y> paramClass)
getDeclaredId in interface javax.persistence.metamodel.IdentifiableType<X>public <Y> javax.persistence.metamodel.SingularAttribute<? super X,Y> getVersion(Class<Y> paramClass)
getVersion in interface javax.persistence.metamodel.IdentifiableType<X>public <Y> javax.persistence.metamodel.SingularAttribute<X,Y> getDeclaredVersion(Class<Y> paramClass)
getDeclaredVersion in interface javax.persistence.metamodel.IdentifiableType<X>public javax.persistence.metamodel.IdentifiableType<? super X> getSupertype()
getSupertype in interface javax.persistence.metamodel.IdentifiableType<X>public boolean hasSingleIdAttribute()
hasSingleIdAttribute in interface javax.persistence.metamodel.IdentifiableType<X>public boolean hasVersionAttribute()
hasVersionAttribute 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 javax.persistence.metamodel.Type<?> getIdType()
getIdType in interface javax.persistence.metamodel.IdentifiableType<X>public void addIdAttribute(javax.persistence.metamodel.SingularAttribute<? super X,?> idAttribute, boolean isIdClass, Set<javax.persistence.metamodel.SingularAttribute<? super X,?>> idClassAttributes)
idAttribute - the id attributeisIdClass - the is id classidClassAttributes - the id class attributespublic javax.persistence.metamodel.SingularAttribute<? super X,?> getIdAttribute()
private void onError()
Copyright © 2015. All Rights Reserved.