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.
Internal Website Search1-10 of 200 resultsRefresh
The term persistable types refers to data types that can be used for storing data in the database. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes, Mapped superclasses, Embeddable classes. Simple Java data types: Primitive types, Wrappers, String
classes) are represented in JPQL by the following types of expressions: Variables - FROM ... . But more often they are used in JPQL path expressions that navigate to values of simple types (number, boolean, string, date). Simple type values are more useful in queries. They have special operators
The following interfaces and enum represent types in the JPA Metamodel API: See the Metamodel Type Interface Hierarchy section for more details and examples.
reflection provides for general Java types. The Metamodel Interface The main interface of the JPA ... (); The Metamodel interface provides several methods for exploring user defined persistable types (which are referred to as managed types) in the persistent object model. Three methods can be used
javax.persistence.metamodel Enum Type.PersistenceType java.lang.Object java.lang.Enum<javax.persistence.metamodel.Type.PersistenceType> javax.persistence.metamodel.Type.PersistenceType ... BASIC Basic type Basic type Since: JPA 2.0 PersistenceType EMBEDDABLE Embeddable class Embeddable class
javax.persistence.metamodel Interface Type<X> Subinterfaces: BasicType, EmbeddableType, EntityType, IdentifiableType, ManagedType, MappedSuperclassType Instances of the type Type represent persistent object or attribute types. Since: JPA 2.0 Class<X> getJavaType() Return the represented Java type
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 - the type of the represented attribute Returns: single-valued attribute with given name and type Throws
( String name, Class<Y> type ) Return the single-valued attribute declared by the managed type that corresponds to the specified name and Java type. Parameters: name - the name of the represented attribute type - the type of the represented attribute Returns: declared single-valued attribute
This section contains miscellaneous JDO types:
Annotation Element javax.jdo.annotations.Persistent Class types Types of the member. Used when the declared member type is a supertype of the actual type that is stored in the member. For example, the declared member type might be an interface type that must contain an object of a concrete type