|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.persistence.meta.AbstractManagedType<X>
org.apache.openjpa.persistence.meta.Types.Identifiable<X>
public abstract static class Types.Identifiable<X>
Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE, the Java type of the represented entity or attribute is returned.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.openjpa.persistence.meta.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 javax.persistence.metamodel.Type |
|---|
javax.persistence.metamodel.Type.PersistenceType |
| Field Summary | |
|---|---|
Class<X> |
cls
|
| Fields inherited from class org.apache.openjpa.persistence.meta.AbstractManagedType |
|---|
meta, model |
| Constructor Summary | |
|---|---|
Types.Identifiable(ClassMetaData meta,
MetamodelImpl model)
|
|
| Method Summary | |
|---|---|
javax.persistence.metamodel.Type<?> |
getIdType()
Return the type that represents the type of the id. |
Class<X> |
getJavaType()
|
javax.persistence.metamodel.IdentifiableType<? super X> |
getSupertype()
Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass. |
boolean |
hasIdAttribute()
|
boolean |
hasSingleIdAttribute()
Whether or not the identifiable type has an id attribute. |
boolean |
hasVersionAttribute()
Whether or not the identifiable type has a version attribute. |
String |
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.IdentifiableType |
|---|
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getVersion |
| 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 |
| Field Detail |
|---|
public final Class<X> cls
| Constructor Detail |
|---|
public Types.Identifiable(ClassMetaData meta,
MetamodelImpl model)
| Method Detail |
|---|
public boolean hasVersionAttribute()
hasVersionAttribute 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 hasIdAttribute()
public boolean hasSingleIdAttribute()
hasSingleIdAttribute in interface javax.persistence.metamodel.IdentifiableType<X>public javax.persistence.metamodel.Type<?> getIdType()
getIdType in interface javax.persistence.metamodel.IdentifiableType<X>public final Class<X> getJavaType()
getJavaType in interface javax.persistence.metamodel.Type<X>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||