ObjectDB ObjectDB

Internal Website Search

1-10 of 57 resultsRefresh
64

javax.persistence.metamodel.ManagedType

javax.persistence.metamodel Interface ManagedType<X> Superinterfaces: Type<X> Subinterfaces: EmbeddableType, EntityType, IdentifiableType, MappedSuperclassType Instances of the type ManagedType represent entity, mapped superclass, and embeddable types. Since: JPA 2.0 Attribute<?,?> getAttribute
64

managedType(cls)

Method javax.persistence.metamodel.Metamodel ManagedType<X> managedType( Class<X> cls ) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. Parameters: cls - the type of the represented managed class Returns: the metamodel managed type Throws: IllegalArgumentException - if not a managed class Since: JPA 2.0
63

JPA Metamodel API

, mapped super classes) Set<ManagedType> allManagedTypes = metamodel.getManagedTypes ... instance: // Get a managed type (entity, embeddable or mapped super classes): ManagedType<MyClass> type1 = metamodel.managedType(MyClass.class); // Get an entity type:   EntityType
62

getDeclaredSingularAttribute(name)

Method javax.persistence.metamodel.ManagedType SingularAttribute<X,?> 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 Returns: declared single
62

getDeclaredPluralAttributes()

Method javax.persistence.metamodel.ManagedType Set<PluralAttribute<X,?,?>> 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
62

getDeclaredSingularAttributes()

Method javax.persistence.metamodel.ManagedType Set<SingularAttribute<X,?>> getDeclaredSingularAttributes() Return the single-valued attributes declared by the managed type. Returns empty set if the managed type has no declared single-valued attributes. Returns: declared single-valued attributes Since: JPA 2.0
62

getSingularAttribute(name, type)

Method javax.persistence.metamodel.ManagedType SingularAttribute<?,Y> getSingularAttribute( String name, Class<Y> type ) Return the single-valued attribute of the managed type that corresponds to the specified name and Java type. Parameters: name - the name of the represented attribute type
62

getSet(name, elementType)

Method javax.persistence.metamodel.ManagedType SetAttribute<?,E> getSet( String name, Class<E> elementType ) Return the Set-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute elementType
62

getCollection(name, elementType)

Method javax.persistence.metamodel.ManagedType CollectionAttribute<?,E> getCollection( String name, Class<E> elementType ) Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented
62

getSingularAttribute(name)

Method 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 Returns: single-valued attribute

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support