ObjectDB ObjectDB

Internal Website Search

1-10 of 59 resultsRefresh
62

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
62

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
62

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
60

getDeclaredSet(name, elementType)

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

getAttribute(name)

Method 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 Returns: attribute with given name Throws: IllegalArgumentException
60

getDeclaredMap(name, keyType, valueType)

Method javax.persistence.metamodel.ManagedType<X> MapAttribute<X,K,V> getDeclaredMap( String name, Class<T> keyType, Class<T> valueType ) Return the Map-valued attribute declared by the managed type that corresponds to the specified name and Java key and value types. Parameters: name - the name
60

getDeclaredList(name, elementType)

Method javax.persistence.metamodel.ManagedType ListAttribute<X,E> getDeclaredList( String name, Class<E> elementType ) Return the List-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name - the name of the represented attribute
60

getDeclaredCollection(name, elementType)

Method javax.persistence.metamodel.ManagedType CollectionAttribute<X,E> getDeclaredCollection( String name, Class<E> elementType ) Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type. Parameters: name - the name
60

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
60

getSingularAttributes()

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

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