ObjectDB Database Search

1-50 of 200 results

JPA Persistable Types

Persistable types are data types that can be used for storing data in the database. ObjectDB supports all JPA persistable types , which include: User-defined classes: Entity classes, mapped superclasses, and embeddable classes. Simple Java data types : Primitive types , wrapper classes, `String

Paths and Types in JPQL and Criteria API

classes) are represented in JPQL by the following types of expressions: Variables : FROM ... . However, they are more often used in JPQL path expressions that navigate to values of simple types , such as numbers, booleans, strings, and dates. Values of simple types are more useful in queries

JPA Metamodel Types

and enumerations to represent the persistent types within a domain model. Metamodel Types Hierarchy in Jakarta Persistence (JPA) 3.2 Base type definitions The core abstractions of model  types are the following components: The top-level interface of the types  hierarchy, representing any persistent

JPA Core Types

Core Jakarta Persistence (JPA) types provide the foundation for bootstrapping the persistence ... and inheritance relationships. Jakarta Persistence (JPA) 3.2 Core Types Bootstrapping and Configuration ... cache using these utility types : A utility interface obtained from Persistence . Use it to check

jakarta.persistence.metamodel.Type

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel. Type Type Parameters: - The type of the represented object or attribute An instance of the type Type represents a persistent object or attribute type . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class getJavaType

jakarta.persistence.metamodel.Type.PersistenceType

Jakarta Persistence (JPA) Enum in jakarta.persistence.metamodel. Type jakarta.persistence.metamodel. Type .PersistenceType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.metamodel. Type ... (JPA) 1.0 Enum Constants BASIC Basic type Since: Jakarta Persistence (JPA) 1.0 EMBEDDABLE Embeddable

jakarta.persistence.ColumnResult.type

Jakarta Persistence (JPA) Method in jakarta.persistence.ColumnResult Class type (Optional) The Java type to which the column type is to be mapped. If the type element is not specified, the default JDBC type mapping for the column is used. Default: void/class Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.metamodel.Type.getPersistenceType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Type PersistenceType getPersistenceType() Return the persistence type . Returns: persistence type . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.getJavaType()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel. Type Class getJavaType() Return the represented Java type . Returns: Java type . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Path.type()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Path Expression type () Create an expression corresponding to the type of the path. Returns: expression corresponding to the type of the path. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Bindable.BindableType.ENTITY_TYPE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel.Bindable.BindableType ENTITY_ TYPE Entity type . See Also: EntityType Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.PersistenceType.BASIC

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel. Type .PersistenceType BASIC Basic type Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedSubgraph.type

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedSubgraph Class type (Optional) The type represented by this subgraph. The element must be specified when this subgraph is extending a definition on behalf of a subclass. Default: void/class Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureParameter.type

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureParameter Class type JDBC type of the parameter. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.type

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext PersistenceContextType type (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. Default: PersistenceContextType.TRANSACTION Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.PersistenceType.ENTITY

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel. Type .PersistenceType ENTITY Entity class Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.PersistenceType.EMBEDDABLE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel. Type .PersistenceType EMBEDDABLE Embeddable class Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.PersistenceType.MAPPED_SUPERCLASS

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel. Type .PersistenceType MAPPED_SUPERCLASS Mapped superclass Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.metamodel.Type.PersistenceType.PersistenceType()

Jakarta Persistence (JPA) Constructor in jakarta.persistence.metamodel. Type .PersistenceType PersistenceType() Since: Jakarta Persistence (JPA) 1.0

JPA Metamodel API

this capability for general Java types . The Metamodel interface The main interface of the JPA Metamodel ... -defined persistable types (also known as managed types ) in the persistent object model. Three methods retrieve sets of types : // Get all the managed classes: // (entity classes, embeddable classes, mapped

Database Schema Evolution

and either the same type or a convertible type , as explained below. A matching field can also be located in ... an intermediate class from the hierarchy. Convertible types When a matching field is found but its type is different from the type of the new field, a conversion is required. If the old type cannot be converted

ObjectDB Object Database Features

(recommended before deployment). Schema Evolution Fully automatic schema evolution  and type ... automatically. Removed fields are handled automatically. Most field type changes are handled automatically. Moving fields up and down in the class hierarchy is transparent. Support for renaming types , fields

Literals in JPQL and Criteria Queries

Literals in JPQL, as in Java, represent constant values. JPQL supports various types of literals ... type literals (for example, Country ). Use JPQL literals sparingly. Queries that use parameters ... syntax for enum values, but you must specify the fully qualified name of the enum type . For example

jakarta.persistence.metamodel.EntityType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.EntityType Type Parameters: - The represented entity type . Super Interfaces: IdentifiableType , Bindable , ManagedType , Type An instance of EntityType represents an entity type . Since: Jakarta Persistence (JPA) 2.0 Public Instance

jakarta.persistence.metamodel.IdentifiableType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.IdentifiableType Type Parameters: - The represented entity or mapped superclass type . Super Interfaces: ManagedType , Type An instance of the type IdentifiableType represents an entity or mapped superclass type . Since: Jakarta

jakarta.persistence.metamodel.MappedSuperclassType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.MappedSuperclassType Type Parameters: - The represented mapped superclass type Super Interfaces: IdentifiableType , ManagedType , Type An instance of the type MappedSuperclassType represents a mapped superclass type . Since: Jakarta

JPA Attributes Annotations

, relationship types , and data storage formats. General field mapping Configure standard state mapping behavior ... , wrappers, Strings). While optional for supported types , it allows configuration of fetch strategies ... to perform optimistic locking checks. Enum mapping Configure how Java enumerated types are persisted and used

JPA Entity Fields

a value of one of the supported persistable types . ObjectDB supports persistent fields with any declared type , including a generic java.lang.Object , as long as the actual runtime value is a persistable type or null . You can mark each persistent field with one of the following annotations

jakarta.persistence.metamodel.ManagedType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.ManagedType Type Parameters: - The represented type . Super Interfaces: Type Instances of the type ManagedType represent entity, mapped superclass, and embeddable types . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods

jakarta.persistence.metamodel.EmbeddableType

Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.EmbeddableType Type Parameters: - The represented embeddable type . Super Interfaces: ManagedType , Type An instance of EmbeddableType represents an embeddable type . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods

JPA Criteria FROM and JOIN

clause of a query. These interfaces define query variables, including entity roots and various join types ... an entity type  variable, whose scope is all instances of the entity type . Defines an attribute ... to an association typed as a java.util.Collection . Represents a join to an association typed as a java

JPA Metamodel Attributes

and enumerations to represent the attributes of managed persistent types (entities, embeddable ... are represented by: Represents single-valued attributes. This includes basic types (primitives ... the following hierarchy: The base interface for all collection-valued attributes, defining the element type

Database Explorer

displays a list of bookmarked entities. The Schema window shows the user-defined persistable types ... The Explorer provides two types of viewer windows for database data. The Table window follows ... a persistent field, and each cell contains the value of a field for a specific object. This type

jakarta.persistence.EntityGraph

Jakarta Persistence (JPA) Interface jakarta.persistence.EntityGraph Type Parameters: - The type of the root entity. Super Interfaces: Graph This type represents the root of an entity graph ... and entity relationships. The root must be an entity type . The methods to add subgraphs implicitly create

Numbers in JPQL and Criteria Queries

. ABS(10.7) evaluates to 10.7 . The ABS function takes a numeric argument of any type and returns a value of the same type . The MOD function The MOD function calculates the remainder of a division ... arguments and returns an integer value. If both operands have the same type , the result

JPA ORM Mapping Annotations

. Specifies the discriminator column used to distinguish between entity types in the SINGLE_TABLE and JOINED strategies. Specifies the value that indicates a row belongs to a specific entity type within the hierarchy. An enumeration defining the data type of the discriminator column (STRING, CHAR

jakarta.persistence.Subgraph

Jakarta Persistence (JPA) Interface jakarta.persistence.Subgraph Type Parameters: - The type of the attribute. Super Interfaces: Graph This type represents a subgraph for an attribute node that corresponds to a managed type . Using this class, an entity subgraph can be embedded

jakarta.persistence.Graph

. IllegalArgumentException - if the attribute is not an attribute of this managed type .. Since: Jakarta Persistence ... to a collection element that is a managed type . This allows for construction of multi-node entity graphs that include related managed types . Parameters: attribute - attribute Returns: subgraph for the element

jakarta.persistence.EntityManager

(defined by an entity type and primary key) there is at most one entity instance. The entity instances ... their primary key, and execute queries which range over entity types . An entity may be disassociated from ... pessimistic lock on an entity instance. The full range of possible lock types is enumerated by LockModeType

JPA Criteria Query Expressions

and selections, enabling the construction of dynamic, type -safe queries. These interfaces represent ... .SimpleCase Queries may include many different types of expressions and JPA implementations may implement tens and hundreds of classes to manage these different expression types . JPA simplifies

SELECT clause (JPQL / Criteria API)

Result expressions that represent anything other than entities (for example, values of system types ... . get ("currency")). distinct (true); The select method takes one argument of type Selection and sets ... type (as set when CriteriaQuery is instantiated): If the expected result type is Object or Object

Query Parameters in JPA

, parameters are defined implicitly when they appear in the query string. The parameter's type is inferred from the context. In the preceding example, comparing :name to a field of type String indicates that the type of :name is also String . Queries can include multiple parameters, and each

Comparison in JPQL and Criteria API

Comparable data types Comparison operators are supported for values of the following data types : Numeric types : Any comparison operator can be used with primitive types ( byte , short , char , int , long , float , double ), their corresponding wrapper types ( Byte , Short , Character , Integer , Long

JPA Primary Key

and can be retrieved by the combination of its type and its primary key. Primary key values must be unique for each ... . Only entities have primary keys. Instances of other persistable types are always stored as ... field can have one of the following types : Primitive types : boolean , byte , short , char , int

jakarta.persistence.criteria.MapJoin

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.MapJoin Type Parameters: - the source type of the join - the type of the target Map value - the type of the target Map key Super ... The MapJoin interface is the type of the result of joining to a collection over an association or element

jakarta.persistence.criteria.PluralJoin

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.PluralJoin Type Parameters: - the source type - the element type of the collection - the collection type Super Interfaces: Join ... functionality that is common to joins to all collection types . It is not intended to be used directly in

jakarta.persistence.criteria.SetJoin

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.SetJoin Type Parameters: - the source type of the join - the element type of the target Set Super Interfaces: PluralJoin , Join , From , Path , FetchParent , Expression , Selection , TupleElement The SetJoin interface is the type

jakarta.persistence.criteria.CollectionJoin

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CollectionJoin Type Parameters: - the source type of the join - the element type of the target Collection Super Interfaces ... interface is the type of the result of joining to a collection over an association or element collection

jakarta.persistence.criteria.ListJoin

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.ListJoin Type Parameters: - the source type of the join - the element type of the target List Super Interfaces: PluralJoin , Join , From , Path , FetchParent , Expression , Selection , TupleElement The ListJoin interface is the type

jakarta.persistence.criteria.Join

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Join Type Parameters: - the source type of the join - the target type of the join Super Interfaces: From , Path , FetchParent , Expression , Selection , TupleElement A join to an entity, embeddable, or basic type . Since: Jakarta