ObjectDB Database Search

51-100 of 139 results

EntityExistsException.EntityExistsException(message) - JPA Constructor

JPA Constructor in jakarta.persistence.EntityExistsException EntityExistsException (   String message ) Constructs a new EntityExistsException exception with the specified detail message. Parameters: message - the detail message. Since: JPA 1.0

EntityExistsException.EntityExistsException() - JPA Constructor

JPA Constructor in jakarta.persistence.EntityExistsException EntityExistsException () Constructs a new EntityExistsException exception with null as its detail message. Since: JPA 1.0

NonUniqueResultException.NonUniqueResultException(message,cause) - JPA Constructor

JPA Constructor in jakarta.persistence.NonUniqueResultException NonUniqueResultException (   String message,    Exception cause ) Constructs a new NonUniqueResultException exception with the specified detail message. Parameters: message - the detail message. Since: JPA 1.0

EntityExistsException.EntityExistsException(cause) - JPA Constructor

JPA Constructor in jakarta.persistence.EntityExistsException EntityExistsException (   Throwable cause ) Constructs a new EntityExistsException exception with the specified cause. Parameters: cause - the cause. Since: JPA 1.0

NonUniqueResultException.NonUniqueResultException(cause) - JPA Constructor

JPA Constructor in jakarta.persistence.NonUniqueResultException NonUniqueResultException (   Exception cause ) Constructs a new NonUniqueResultException exception with null as its detail message. Since: JPA 1.0

LockTimeoutException.LockTimeoutException(cause) - JPA Constructor

JPA Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (   Throwable cause ) Constructs a new LockTimeoutException exception with the specified cause. Parameters: cause - the cause. Since: JPA 2.0

LockTimeoutException.LockTimeoutException(message,cause) - JPA Constructor

JPA Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (   String message,    Throwable cause ) Constructs a new LockTimeoutException exception with the specified detail message and cause. Parameters: message - the detail message. cause - the cause. Since: JPA 2.0

PessimisticLockException.PessimisticLockException(message,cause,entity) - JPA Constructor

JPA Constructor in jakarta.persistence.PessimisticLockException PessimisticLockException (   String message,    Throwable cause,    Object entity ) Constructs a new PessimisticLockException exception with the specified detail message, cause

LockTimeoutException.LockTimeoutException(message) - JPA Constructor

JPA Constructor in jakarta.persistence.LockTimeoutException LockTimeoutException (   String message ) Constructs a new LockTimeoutException exception with the specified detail message. Parameters: message - the detail message. Since: JPA 2.0

JPA Lifecycle Events

should be stateless and should have a public no-arg constructor (or no constructor at all) to enable

Retrieving JPA Entity Objects

. Notice that construction of a new managed object during retrieval uses the no-arg constructor . Therefore, it is recommended to avoid unnecessary time consuming operations in no-arg constructors

Defining a JPA Entity Class

; @Entity public class Point { // Persistent Fields: private int x; private int y; // Constructor : Point

Database Schema Evolution

Modifications to entity classes that do not change their persistent field definitions (their schema) are transparent to ObjectDB. This includes adding, removing and modifying constructors , methods and non persistent fields. However, additions, deletions and modifications to the persistent fields

Posting Sample Code

protected constructor , An entity class must be a top level class, The project does not contain

object creation during pmf.getPersistenceManager()

model is legacy and in default constructors it create also a lot of objects, we can not change it  ... ) using the no arg constructor - when a database is opened and a PersistenceManagerFactory ... application this should not be a problem. After all, the no arg constructors of user defined

AnnotationRef jakarta.persistence.ConstructorResult

to a constructor . Applies a constructor for the target class, passing in as arguments values from the specified columns. All columns corresponding to arguments of the intended constructor must be specified ... list of the constructor . Any entities returned as constructor results will be in either the new or

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

to a constructor . This method is used to specify a constructor that is applied to the results of the query execution. If the constructor is for an entity class, the resulting entities will be in the new state ... selections - arguments to the constructor Return: compound selection item Throws: IllegalArgumentException

CriteriaBuilder.construct(resultClass,selections) - JPA Method

item corresponding to a constructor . This method is used to specify a constructor that is applied to the results of the query execution. If the constructor is for an entity class, the resulting entities ... whose instance is to be constructed selections - arguments to the constructor Return: compound selection item

Step 2: Entity Class and Persistence Unit

String name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Entity Class and Persistence Unit

name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Entity Class and Persistence Unit

; private String name; private Date signingDate; // Constructors : public Guest() { } public Guest(String

Step 2: Entity Class and Persistence Unit

name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

String name; private Date signingDate; // Constructors : public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

@GeneratedValue Long id; private String name; private Date signingDate; // Constructors : public

ClassRef jakarta.persistence.EntityNotFoundException

1.0 Public Constructors EntityNotFoundException () Constructs a new EntityNotFoundException

ClassRef jakarta.persistence.LockTimeoutException

, will be not be marked for rollback. Since: JPA 2.0 Public Constructors LockTimeoutException () Constructs

ClassRef jakarta.persistence.PessimisticLockException

Constructors PessimisticLockException () Constructs a new PessimisticLockException exception

AnnotationRef jakarta.persistence.NamedNativeQuery

to constructors . May not be used in combination with resultSetMapping . Since: JPA 3.2 ColumnResult [] columns

ClassRef jakarta.persistence.SchemaValidationException

JPA Exception SchemaValidationException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  jakarta.persistence.SchemaValidationException Thrown when () schema validation fails. See Also: SchemaManager.validate () Since: JPA 3.2 Public Constructors

ClassRef jakarta.persistence.OptimisticLockException

. See Also: EntityManager.find EntityManager.find EntityManager.lock EntityManager.lock Since: JPA 1.0 Public Constructors

ClassRef jakarta.persistence.NonUniqueResultException

() TypedQuery.getSingleResult () Since: JPA 1.0 Public Constructors NonUniqueResultException () Constructs

ClassRef jakarta.persistence.NoResultException

() Since: JPA 1.0 Public Constructors NoResultException () Constructs a new NoResultException exception

ClassRef jakarta.persistence.PersistenceException

has been joined to it, to be marked for rollback. Since: JPA 1.0 Public Constructors PersistenceException

ClassRef jakarta.persistence.TransactionRequiredException

when a transaction is required but is not active. Since: JPA 1.0 Public Constructors

ClassRef jakarta.persistence.RollbackException

. See Also: EntityTransaction.commit () Since: JPA 1.0 Public Constructors RollbackException () Constructs a new

ClassRef jakarta.persistence.PersistenceConfiguration

Constructors PersistenceConfiguration (String name) Create a new empty configuration. An empty

AnnotationAttrRef jakarta.persistence.NamedNativeQuery.classes

JPA Annotation Attribute in jakarta.persistence.NamedNativeQuery ConstructorResult [] classes default {} Specifies the result set mapping to constructors . May not be used in combination with resultSetMapping . Since: JPA 3.2

ClassRef jakarta.persistence.QueryTimeoutException

be marked for rollback. Since: JPA 2.0 Public Constructors QueryTimeoutException () Constructs a new

InterfaceRef jakarta.persistence.criteria.CompoundSelection

JPA Interface CompoundSelection Type Parameters: - the type of the selection item Super Interfaces: Selection , TupleElement The CompoundSelection interface defines a compound selection item (a tuple, array, or result of a constructor ). Since: JPA 2.0 Public Methods Selection alias (String 

ClassRef jakarta.persistence.spi.TransformerException

JPA Exception TransformerException java.lang.Object ∟  java.lang.Throwable ∟  java.lang.Exception ∟  jakarta.persistence.spi.TransformerException Thrown by the persistence provider when a problem during class re-definition occurs. Since: JPA 3.1 Public Constructors

AnnotationRef jakarta.persistence.SqlResultSetMapping

ConstructorResult [] classes default {} Specifies the result set mapping to constructors . Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.SqlResultSetMapping.classes

JPA Annotation Attribute in jakarta.persistence.SqlResultSetMapping ConstructorResult [] classes default {} Specifies the result set mapping to constructors . Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.ConstructorResult.targetClass

JPA Annotation Attribute in jakarta.persistence.ConstructorResult Class targetClass default null (Required) The class whose constructor is to be invoked. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.ConstructorResult.columns

JPA Annotation Attribute in jakarta.persistence.ConstructorResult ColumnResult [] columns default null (Required) The mapping of columns in the SELECT list to the arguments of the intended constructor , in order. Since: JPA 2.1

AnnotationRef jakarta.persistence.IdClass

type, have a public or protected constructor with no parameters, unless it is a record type

AnnotationRef jakarta.persistence.Embeddable

class or static inner class, or a Java record type, have a public or protected constructor

ClassRef jakarta.persistence.EntityExistsException

Public Constructors EntityExistsException () Constructs a new EntityExistsException exception

AnnotationRef jakarta.persistence.Entity

JPA Annotation Entity Target: TYPE Implemented Interfaces: Annotation Declares that the annotated class is an entity. The annotated entity class must: be a non- final top-level class or static inner class, have a public or protected constructor with no parameters, and have no final methods or

CriteriaQuery.multiselect(selectionList) - JPA Method

to the multiselect method will be passed to the X constructor and an instance of type X

CriteriaQuery.multiselect(selections) - JPA Method

constructor and an instance of type X will be returned for each row. If the type of the criteria