| , embeddable or mapped super classes): ManagedType type1 = metamodel. managedType (MyClass.class ... descendant interfaces of the Type interface: BasicType - represents system defined types. ManagedType ... (); The ManagedType interface adds methods for exploring managed fields and properties (which are referred |
| JPA Method in javax.persistence.metamodel.Metamodel ManagedType managedType ( Class cls ) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Return: the metamodel managed |
| JPA Interface ManagedType Type Parameters: - The represented type. Super Interfaces: Type Instances of the type ManagedType represent entity, mapped superclass, and embeddable types. Since: JPA 2.0 Public Methods Attribute getAttribute (String name) Return the attribute of the managed type |
| JPA Method in javax.persistence.metamodel. ManagedType SetAttribute getDeclaredSet ( String name ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: declared |
| JPA Method in javax.persistence.metamodel. ManagedType CollectionAttribute getDeclaredCollection ( String name ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute |
| JPA Method in javax.persistence.metamodel. ManagedType SetAttribute getSet ( String name ) Return the Set-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: SetAttribute of the given name |
| JPA Method in javax.persistence.metamodel. ManagedType CollectionAttribute getCollection ( String name ) Return the Collection-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return |
| JPA Method in javax.persistence.metamodel. ManagedType SingularAttribute getSingularAttribute ( String name ) Return the single-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: single |
| JPA Method in javax.persistence.metamodel. ManagedType SingularAttribute getDeclaredSingularAttribute ( String name ) Return the single-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute |
| JPA Method in javax.persistence.metamodel. ManagedType MapAttribute getDeclaredMap ( String name ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: declared |
| JPA Method in javax.persistence.metamodel. ManagedType MapAttribute getMap ( String name ) Return the Map-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: MapAttribute of the given name |
| JPA Method in javax.persistence.metamodel. ManagedType ListAttribute getList ( String name ) Return the List-valued attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: ListAttribute of the given name |
| JPA Method in javax.persistence.metamodel. ManagedType ListAttribute getDeclaredList ( String name ) Return the List-valued attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: declared |
| JPA Method in javax.persistence.metamodel. ManagedType ListAttribute getDeclaredList ( String name, Class elementType ) Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters |
| JPA Method in javax.persistence.metamodel. ManagedType SetAttribute getDeclaredSet ( String name, Class elementType ) Return the Set-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name |
| JPA Method in javax.persistence.metamodel. ManagedType ListAttribute getList ( String name, Class elementType ) Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name |
| JPA Method in javax.persistence.metamodel. ManagedType SetAttribute getSet ( String name, Class elementType ) Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name |
| JPA Method in javax.persistence.metamodel. ManagedType CollectionAttribute getCollection ( String name, Class elementType ) Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters |
| JPA Method in javax.persistence.metamodel. ManagedType CollectionAttribute getDeclaredCollection ( String name, Class elementType ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element |
| JPA Method in javax.persistence.metamodel. ManagedType Attribute getDeclaredAttribute ( String name ) Return the attribute declared by the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: attribute with given name |
| JPA Method in javax.persistence.metamodel. ManagedType Set getDeclaredPluralAttributes () Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multi-valued attributes. Return |
| JPA Method in javax.persistence.metamodel. ManagedType Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: attribute with given name Throws |
| JPA Method in javax.persistence.metamodel. ManagedType Set getPluralAttributes () Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes. Return: Collection-, Set-, List-, and Map-valued attributes Since: JPA 2.0 |
| JPA Method in javax.persistence.metamodel. ManagedType MapAttribute getMap ( String name, Class keyType, Class valueType ) Return the Map-valued attribute of the managed type that corresponds to the specified name and Java key |
| JPA Method in javax.persistence.metamodel. ManagedType MapAttribute getDeclaredMap ( String name, Class keyType, Class valueType ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name |
| JPA Method in javax.persistence.metamodel. ManagedType Set getAttributes () Return the attributes of the managed type. Return: attributes of the managed type Since: JPA 2.0 |
| JPA Method in javax.persistence.metamodel. ManagedType Set getDeclaredSingularAttributes () Return the single-valued attributes declared by the managed type. Returns empty set if the managed type has no declared single-valued attributes. Return: declared single-valued attributes Since: JPA 2.0 |
| JPA Method in javax.persistence.metamodel. ManagedType Set getSingularAttributes () Return the single-valued attributes of the managed type. Returns empty set if the managed type has no single-valued attributes. Return: single-valued attributes Since: JPA 2.0 |
| JPA Method in javax.persistence.metamodel. ManagedType SingularAttribute getSingularAttribute ( String name, Class type ) Return the single-valued attribute of the managed type that corresponds to the specified name and Java type. Parameters: name - the name |
| JPA Method in javax.persistence.metamodel. ManagedType SingularAttribute getDeclaredSingularAttribute ( String name, Class type ) Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type. Parameters |
| JPA Method in javax.persistence.metamodel. ManagedType Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes. Return: declared attributes of the managed type Since: JPA 2.0 |
| Metamodel interface. For example: em. getMetamodel (). managedType (MyEntity.class); Following |
| : ManagedType , Type Instances of the type EmbeddableType represent embeddable types. Since: JPA 2.0 Public ... in the managed type Inherited from: ManagedType Since: JPA 2.0 Set getAttributes () Return the attributes of the managed type. Return: attributes of the managed type Inherited from: ManagedType |
| . Super Interfaces: ManagedType , Type Instances of the type IdentifiableType represent entity or ... - if attribute of the given name is not present in the managed type Inherited from: ManagedType ... of the managed type Inherited from: ManagedType Since: JPA 2.0 CollectionAttribute getCollection (String |
| .EntityTransaction et = em.getTransaction(); javax.persistence.metamodel. ManagedType type = em.getMetamodel(). managedType (Guest.class); if ( type == null ) System.out.println( " ManagedType Guest not found" ); // NamedQuery does not work // TypedQuery query |
| managed types. Return: the metamodel managed types Since: JPA 2.0 ManagedType managedType (Class cls |
| .class); metamodel.entity(E10.class); metamodel.entity(E11.class); Set managedTypes = metamodel.getManagedTypes(); System.out.println( managedTypes .size()); emf1.close(); } @Entity static class E1 |
| JPA Interface MappedSuperclassType Type Parameters: - The represented entity type Super Interfaces: IdentifiableType , ManagedType , Type Instances of the type MappedSuperclassType represent mapped superclass types. Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class type |
| JPA Method in javax.persistence.metamodel.Attribute ManagedType getDeclaringType () Return the managed type representing the type in which the attribute was declared. Return: declaring type Since: JPA 2.0 |
| JPA Interface Attribute Type Parameters: - The represented type that contains the attribute - The type of the represented attribute Represents an attribute of a Java type. Since: JPA 2.0 Public Methods ManagedType getDeclaringType () Return the managed type representing the type in |
| JPA Interface EntityType Type Parameters: - The represented entity type. Super Interfaces: Bindable , IdentifiableType , ManagedType , Type Instances of the type EntityType represent entity types. Since: JPA 2.0 Public Methods SingularAttribute getDeclaredId (Class type) Return the attribute |
| .objectdb.jpa.MetamodelImpl. managedType (MetamodelImpl.java:149) ... 53 more   |
| I have in an objectdb file 10 Entity Classes with some data in each (Athlete, Trainer, Stadium etc) This is the code I use to retrieve all Managed Types and data for the Athlete class Metamodel metamodel = em.getMetamodel(); Set allManagedTypes = metamodel.getManagedTypes(); for( ManagedType o |
| : annotatedClasses) { em.getMetamodel() . managedType (x); } Thanks for any help mgangat |
| .userName = :userName" ) I execute the query as follows: em.getMetamodel(). managedType (Person.class |
| .obtainType(MetamodelImpl.java:269) at com.objectdb.jpa.MetamodelImpl. managedType (MetamodelImpl.java:149 |
| (). managedType (AbstractClientSummary.class); CJMoore Clinton Moore Good. So this feature request will be closed. support Support |