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

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.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.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

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

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 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

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

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

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

JPA Criteria Query Date/Time Extraction

  types , represented by the following enums. Defines the component types of Date values ... , and DAY_OF_YEAR . Defines the component types of Time values (such as java.time.LocalTime , and  java.sql.Time ), including HOUR , MINUTE , and SECOND . Defines component types applicable

JPA Query API

result type is unknown or when a query returns polymorphic results whose lowest common denominator is Object . When a more specific result type is expected, use the TypedQuery interface. The TypedQuery interface makes it easier to run queries and process results in a type -safe manner. Building queries

jakarta.persistence.criteria.Root

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Root Type Parameters: - the entity type referenced by the root Super Interfaces: From , Path , FetchParent , Expression , Selection , TupleElement A root type in the from clause. Query roots always reference entities. Since: Jakarta

FROM clause (JPQL / Criteria API)

(you can use type expression to exclude descendant classes from iteration). For example, in ... variables represent iteration over all the database objects of a specified entity type . JPQL provides an additional type of identification variable, a join variable, which represents a more limited

Index Definition

of one of the following persistable types : Primitive types : boolean , byte , short , char , int ... .util.Date , java.sql.Date , java.sql.Time , java.sql.Timestamp Any enum type A reference to an entity Arrays and collections that contain values of the above types , including null You can define

Privacy Policy

, as applicable. Collecting and Using Your Personal Data Types of Data Collected Personal Data ... device identifiers, browser type , browser version, the time and date of Your visit, the pages ... automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID

JPA Criteria Queries

The Jakarta Persistence (JPA) Criteria API provides a type -safe, programmatic alternative ... of CriteriaBuilder  as mutable empty objects, and then defined using setter methods. All query types (SELECT ... for restricting query scope using parameters and subqueries across all query types . SELECT Queries

JPA Metamodel and Graphs

The Jakarta Persistence (JPA) Metamodel API provides a type -safe way to introspect the persistent ... repository for all managed types within a persistence unit (or an ObjectDB database). It provides methods ... . The metamodel represents the domain model through a hierarchy of types and attributes

jakarta.persistence.TypedQuery

Jakarta Persistence (JPA) Interface jakarta.persistence.TypedQuery Type Parameters: - query result type Super Interfaces: Query Interface used to control the execution of typed queries ... Parameter getParameter ( String name , Class type ) Get the parameter object corresponding to the declared

jakarta.persistence.criteria.CriteriaBuilder

. Parameters: targetEntity - target type for delete operation Returns: the query object. Since: Jakarta ... query object to perform a bulk update operation. Parameters: targetEntity - target type for update ... result type . Parameters: resultClass - type of the query result Returns: criteria query object

jakarta.persistence.criteria.Subquery

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Subquery Type Parameters: - the type of the selection item. Super Interfaces: AbstractQuery , Expression , CommonAbstractCriteria ... as ( Class type ) Perform a typecast upon the expression, returning a new expression object. Unlike

Storing JPA Entities

of other persistable types can be stored in the database only as embedded objects in containing ... is thrown if the database already contains another entity of the same type with the same primary key ... of persistable types other than entity classes are automatically stored as embedded objects in

JPA Extended API Reference Guide

with practical notes. It groups the API types into logical sections to help you locate core concepts ... . The JPA types are organized in this reference into the following sections : Defines ... dynamically, build type -safe queries, and optimize database fetching. Lists additional dynamic

JPA Queries

with full type safety. General query objects Execute SELECT, UPDATE and DELETE queries in JPA using ... TypedQuery in modern applications to ensure compile-time type safety. A sub-interface of Query used for queries where the result type is known. It is preferred over the legacy Query interface