ObjectDB Database Search
1-50 of 200 resultsDatabase Management Settings The configuration element specifies back-end ( database engine) settings for the server ... specifies the database file and page size settings: The initial attribute specifies the initial size for each new database file. The resize attribute specifies the size by which to extend the database | |
Database Transaction Replayer tool can apply recorded database operations to a matching database backup, if available. This feature is useful for two purposes: Recovering from a database failure by replaying the recorded ... When recording is enabled , ObjectDB maintains a recording directory for each database file. The name | |
jakarta.persistence.PersistenceUnitUtil.load(Object,String); Object entity , String attributeName ) Load the persistent value of a given ... instance Throws: IllegalArgumentException - if the given object is not an instance of an entity class ... with an open persistence context or cannot be loaded from the database . Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.PersistenceUnitUtil.load(Object); Object entity ) Load the persistent state of an entity belonging to the persistence unit ... : IllegalArgumentException - if the given object is not an instance of an entity class belonging ... or cannot be loaded from the database . Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.TypedQuery.setHint(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setHint ( String hintName , Object value ) Set a query property or hint. The hints elements ... on the database in use and the locking mechanisms used by the provider, this hint may or may not be observed | |
Storing JPA Entities class instance. Only entity class instances can be stored in the database independently. Objects of other persistable types can be stored in the database only as embedded objects in containing ... stored in the database with its Address instance as an embedded object . Note that embedded objects | |
[ODB1] Chapter 6 - Persistent Objects Persistence objects represent data in the database . 6.1 Making Objects Persistent In JDO applications, every object in memory is either a persistent object , i.e. represents some database content, or a transient object , i.e. not related to any database . Storing Objects Explicitly | |
Database is locked when in use the odb files in the file system but the same i was able to do it in object db 1.0. We supprt export ... a database when it is in active use is unsafe. With ObjectDB 2.x you should use online backup   ... PersistenceManager to EntityManager . In ObjectDB the same object is an instance of both interfaces | |
SELECT clause (JPQL / Criteria API), including transparent navigation to other database objects , transparent update detection , support ... query returns Country objects , which then become managed by the EntityManager instance em : TypedQuery ... , the following query returns country names as String instances, rather than Country objects : SELECT | |
JPA Lifecycle Events). @PostPersist : Invoked after a new entity is stored in the database (during a commit or flush operation). @PostLoad : Invoked after an entity is retrieved from the database . @PreUpdate : Invoked ... is updated in the database (during a commit or flush operation). @PreRemove : Invoked when an entity | |
JPA Entity Fields that don't participate in persistence, so their values are never stored in the database ... -persistent) fields and has no data to store in the database . Persistent fields Every non-static non ... the @Transient annotation). Storing an entity in the database stores only its persistent state, not | |
ClassCastException of same object type I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org | |
Removing objects where ManyToMany relationships exist well enough, even if there's millions of Entity and OtherEntity objects in the database , and ten-thousands ... are removed from the database . What happens with the numerous TreeSets for all the existing Entities in the database ? Are OtherEntities that are referenced in a TreeSet automatically removed as | |
EntityManagerFactory objects being locked during EntityManager creation wherein the EntityManagerFactory objects are being locked during EntityManager object creation. Please refer ... .java:96) at com.adheris.cap.consumerframework. database ... .consumerframework. database .ReprintCacheDatabase.createDao(ReprintCacheDatabase.java:60)   | |
persisting object with long[][] arrays of array) to the database is expected to take much more time than persisting one large object of the same total size ... Hi, I have an object I am trying to persist (java) - It has several fields of type long ... (); Here is the object : import java.io.Serializable; import javax.persistence.CascadeType; import javax | |
jakarta.persistence.EntityManager associated with a persistence context are considered managed objects , with a well-defined lifecycle ... , that is scheduled for removal from the database upon transaction commit. The EntityManager API is used ... that there is no explicit "update" operation; since an entity is a managed object , modifications | |
Object belongs to another EntityManager - ERROR a record in database [ObjectDB 2.4.6_13] javax.persistence.RollbackException 10:29:14,880 ERROR [stderr] (http--10.23.3.98-8081-5) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl#8 ... .PersistenceException: com.objectdb.o.UserException: Object 'pbdmodel.impl.OrgJedinicaImpl#8' belongs | |
jakarta.persistence.Cache.evict(Class,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict ( Class cls , Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceConfiguration.property(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration property ( String name , Object value ) Set a property of this persistence unit. Parameters: name - the property name value - the property value Returns: this configuration. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PersistenceUnitUtil.isLoaded(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil boolean isLoaded ( Object entity ) Determine the load state of an entity belonging to the persistence unit. This method can be used to determine the load state of an entity passed as a reference. An entity | |
jakarta.persistence.PersistenceUnitUtil.isLoaded(Object,String) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil boolean isLoaded ( Object entity , String attributeName ) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. Parameters: attributeName - name | |
jakarta.persistence.TypedQuery.setParameter(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter ( String name , Object value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance. Throws | |
jakarta.persistence.TypedQuery.setParameter(int,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery setParameter ( int position , Object value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Returns: the same query instance. Throws | |
Setting and Tuning of JPA Queries because the setter methods in Query and TypedQuery support method chaining by returning the query object on which they were invoked. Flush mode (setFlushMode) Changes made to a database by using an EntityManager ... execution is much more complex. Therefore, before a query is executed, any uncommitted database changes | |
jakarta.persistence.PersistenceUnitUtil cannot be loaded from the database . Since: Jakarta Persistence (JPA) 3.2 Object getIdentifier ( Object ... : IllegalArgumentException - if the given object is not an instance of an entity class belonging to the persistence unit ... until after the database insert has occurred. Returns null if the entity does not yet have an id. Parameters: entity | |
jakarta.persistence.GenerationType Jakarta Persistence (JPA) Enum jakarta.persistence.GenerationType java.lang. Object ∟ java.lang ... for the particular database . For a primary key of type java.util.UUID or String , this is equivalent to UUID ... , SEQUENCE , and IDENTITY . The AUTO generation strategy may expect a database resource to exist, or | |
jakarta.persistence.LockModeType Jakarta Persistence (JPA) Enum jakarta.persistence.LockModeType java.lang. Object ∟ java.lang.Enum ... .OPTIMISTIC on a versioned object , the entity manager must ensure that neither of the following ... of type LockModeType.OPTIMISTIC_FORCE_INCREMENT on a versioned object , will also force an update | |
jakarta.persistence.EntityNotFoundException Jakarta Persistence (JPA) Class jakarta.persistence.EntityNotFoundException java.lang. Object ... is accessed but the entity does not exist. Thrown when EntityManager.refresh is called and the object no longer exists in the database . Thrown when EntityManager.lock is used with pessimistic locking is used | |
jakarta.persistence.FlushModeType Jakarta Persistence (JPA) Enum jakarta.persistence.FlushModeType java.lang. Object ∟ java.lang.Enum ... within a transaction, if AUTO is set on the Query or TypedQuery object , or if the flush mode setting ... TypedQuery object , the persistence provider is responsible for ensuring that all updates to the state | |
Server Configuration databases that the server manages. The $objectdb prefix, if specified, represents the ObjectDB home ... server. Every database file in the data directory and its subdirectories can be accessed by the server ... , its subdirectories, and database files to operate correctly. When connecting to the server, the path specified in | |
jakarta.persistence.FetchType Jakarta Persistence (JPA) Enum jakarta.persistence.FetchType java.lang. Object ∟ java.lang.Enum ... strategies for fetching data from the database . The EAGER strategy is a requirement ... .lang.Enum/describeConstable(), java.lang.Enum/equals( Object ), java.lang.Enum/finalize(), java.lang | |
Database File Compression ObjectDB database files are usually smaller than database files of other Database Management Systems ( object databases and relational databases ) but additional internal compression is still possible ... . So the effect of using compressed ObjectDB database file on performance is unknown yet. support Support | |
Apache License, Version 2.0, January 2004 to software source code, documentation source, and configuration files. " Object " form shall mean any form ... to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as | |
jakarta.persistence.EntityManagerFactory the application, and which must be colocated in their mapping to a single database . If two entity types ... such that future query objects can be created from it using the EntityManager.createNamedQuery or EntityManager.createNamedStoredProcedureQuery methods. Any configuration of the query object | |
new objects not available in mappedBy associations automatically when the object is retrieved from the database again. Try to refresh the department ... the object is retrieved again from the database (and not from the persistence context cache), or ... ; creating a new mapped class, e.g. new Employee, won't result in this object being available in | |
jakarta.persistence.Lob should be persisted as a large object to a database -native large object (LOB) type. Portable applications should use the Lob annotation when mapping to a database Lob type. The Lob annotation may be used in ... .annotation.Annotation/annotationType(), java.lang.annotation.Annotation/equals( Object ), java.lang | |
jakarta.persistence.MapKeyColumn boolean nullable (Optional) Whether the database column is nullable. Default: false Since: Jakarta ... , or of similar database -native type. Applies only to columns of exact numeric type. The default ... of similar database -native type. Applies only to columns of exact numeric type. The default value 0 | |
Step 2: Entity Class and Persistence Unit To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... objects in the database was created in the project (under Java Resources: src guest). Use copy ... + ")"; } } The Guest entity class will represents guests in the database . We also need to configure JPA by setting | |
jakarta.persistence.IdClass equality consistently with equality of the mapped primary key of the database table. The primary key ... .annotation.Annotation/equals( Object ), java.lang.annotation.Annotation/hashCode(), java.lang.annotation.Annotation/toString() | |
jakarta.persistence.ForeignKey the target database for foreign key constraint creation. For example, it might be similar to the following ... .annotation.Annotation/annotationType(), java.lang.annotation.Annotation/equals( Object ), java.lang | |
jakarta.persistence.ManyToMany, is specified on the owning side. The JoinTable annotation specifies a mapping to a database table ... .Annotation/annotationType(), java.lang.annotation.Annotation/equals( Object ), java.lang.annotation | |
jakarta.persistence.MappedSuperclass mapped to a database table. The persistent fields and properties of a mapped superclass are declared ... ( Object ), java.lang.annotation.Annotation/hashCode(), java.lang.annotation.Annotation/toString() | |
jakarta.persistence.EmbeddedId with equality of the mapped primary key of the database table. The AttributeOverride annotation ... .Annotation/annotationType(), java.lang.annotation.Annotation/equals( Object ), java.lang.annotation | |
Step 2: Define a JPA Entity Class To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package ... should represent Point objects in the database . Apart from the @Entity annotation and the id field | |
Step 2: Define a JPA Entity Class To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window ... objects in the database . Besides the @Entity annotation and the id field (and its annotations | |
Step 4: Run the Application, a new ObjectDB database file is generated in the db subdirectory under the ObjectDB installation directory. Running the application again will use the existing database file to store an additional 1,000 objects . You can view the content of the database file by opening it in the ObjectDB Explorer | |
ObjectDB 1.0 Manual Welcome to the ObjectDB for Java/JDO Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JDO (Java Data Objects ), the revolutionary database programming ... and delete database objects . Chapter 7 - JDOQL Queries Describes JDOQL, the JDO Query Language. The last | |
Step 4: Add a Controller Class the next tutorial step) - a new Guest entity is constructed and stored in the database . Processing ... . The JSP uses the GuestDao component to display the existing Guest objects . The returned ModelAndView object defines a target JSP ( "guest.jsp" ) and passes the GuestDao component to the JSP as a request | |
Step 4: Add a Servlet Class, IOException { // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory ... , response); } finally { // Close the database connection: if (em.getTransaction().isActive()) em ... is retrieved from the application scope attribute, and then an EntityManager (representing a database | |
Report Generation with BIRT and JPA This tutorial demonstrates how to create reports based on data in an ObjectDB database using ... simple as possible - we will use the basic points.odb ObjectDB database file from the Getting Started tutorial. The database file contains 1,000 Point entities, which represent points on the line y |