Example usage for Java javax.persistence.metamodel EntityType fields, constructors, methods, implement or subclass
The text is from its open source code.
Attribute super X,?> | getAttribute(String name) Return the attribute of the managed type that corresponds to the specified name. |
Set | getAttributes() Return the attributes of the managed type. |
Class | getBindableJavaType() Return the Java type of the represented object. |
CollectionAttribute super X,?> | getCollection(String name) Return the Collection-valued attribute of the managed type that corresponds to the specified name. |
Set | getDeclaredAttributes() Return the attributes declared by the managed type. |
SingularAttribute | getDeclaredSingularAttribute(String name, Class Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type. |
SingularAttribute super X,Y> | getId(Class Return the attribute that corresponds to the id attribute of the entity or mapped superclass. |
Type> | getIdType() Return the type that represents the type of the id. |
Class | getJavaType() Return the represented Java type. |
ListAttribute super X,?> | getList(String name) Return the List-valued attribute of the managed type that corresponds to the specified name. |
String | getName() Return the entity name. |
Set | getPluralAttributes() Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type. |
SetAttribute super X,?> | getSet(String name) Return the Set-valued attribute of the managed type that corresponds to the specified name. |
SingularAttribute super X,?> | getSingularAttribute(String name) Return the single-valued attribute of the managed type that corresponds to the specified name. |
Set | getSingularAttributes() Return the single-valued attributes of the managed type. |
SingularAttribute super X,Y> | getVersion(Class Return the attribute that corresponds to the version attribute of the entity or mapped superclass. |
boolean | hasSingleIdAttribute() Whether the identifiable type has a single id attribute. |
boolean | hasVersionAttribute() Whether the identifiable type has a version attribute. |