ObjectDB Database Search
51-100 of 200 resultsjakarta.persistence.Query.setParameter(int,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setParameter ( int position , Object value ) Bind an argument value to a positional parameter ... if the argument is of incorrect type. Since: Jakarta Persistence (JPA) 1 .0 | |
jakarta.persistence.PersistenceUtil.isLoaded(Object,String) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUtil boolean isLoaded ( Object entity , String attributeName ) Determine the load state of a given ... if the attribute state has not been loaded, else true. Since: Jakarta Persistence (JPA) 1 .0 | |
jakarta.persistence.PersistenceUtil.isLoaded(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUtil boolean isLoaded ( Object entity ) Determine the load state of an entity. This method can be used to determine ... has not been loaded, else true. Since: Jakarta Persistence (JPA) 1 .0 | |
jakarta.persistence.Query.setParameter(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setParameter ( String name , Object value ) Bind an argument value to a named parameter. Parameters ... : IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the argument is of incorrect type. Since: Jakarta Persistence (JPA) 1 .0 | |
jakarta.persistence.Query.setHint(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.Query Query setHint ( String hintName , Object value ) Set a query property or hint. The hints elements may be used ... query instance. Throws: IllegalArgumentException - if the second argument is not valid for the implementation. Since: Jakarta Persistence (JPA) 1 .0 | |
jakarta.persistence.Cache.contains(Class,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.Cache boolean contains ( Class cls , Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache. Since: Jakarta Persistence (JPA) 1 .0 | |
Retrieving JPA Entities object with a primary key of 1 : Employee employee = em. find (Employee.class, 1 ); You do not need ... Jakarta Persistence (JPA) provides various ways to retrieve objects from the database. Retrieving objects does not require an active transaction because it does not change the database content | |
GROUP BY and HAVING clauses(DISTINCT c.currency) FROM Country c GROUP BY SUBSTRING(c.name, 1 , 1 ); The query returns Object ... of the resulting groups instead of individual objects and fields. In the query execution order ... . When a query includes a GROUP BY clause, the database objects (or tuples) that result from the FROM clause | |
Database Explorer the object by its type and primary key, separated by a hash symbol ( # ), for example, Point# 1 . Use Edit ... the approach of traditional visual database tools. Each row represents an object , each column represents a persistent field, and each cell contains the value of a field for a specific object . This type | |
SELECT clause (JPQL / Criteria API) (); for ( Object [] result : results) { System.out.println( "Country: " + result[0] + ", Capital: " + result[ 1 ... query returns Country objects , which then become managed by the EntityManager instance em : TypedQuery ... , including transparent navigation to other database objects , transparent update detection , support | |
JPA Optimistic and Pessimistic Locking at transaction commit. ObjectDB checks any database object that is being updated or deleted. An exception is thrown if the check finds that another transaction has already updated the object ... objects are locked during the transaction, and any lock conflicts are detected immediately | |
jakarta.persistence.PersistenceUnitUtil.getVersion(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil Object getVersion ( Object entity ) Return the version of the entity. A generated version is not guaranteed ... : IllegalArgumentException - if the object is found not to be an entity. Since: Jakarta Persistence (JPA) 3.2 | |
Storing JPA Entities. getTransaction (). commit (); The Employee instance is constructed as an ordinary Java object , and its initial state is New. An explicit call to persist associates the object with an owner EntityManager , em ... class instance. Only entity class instances can be stored in the database independently. Objects | |
jakarta.persistence.PersistenceUnitUtil.load(Object,String) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load ( 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 | |
jakarta.persistence.PersistenceUnitUtil.load(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil void load ( 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 | |
jakarta.persistence.PersistenceUnitUtil.isInstance(Object,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnitUtil boolean isInstance ( Object entity , Class entityClass ) Return true if the given entity ... instance Throws: IllegalArgumentException - if the given object is not an instance of an entity class | |
jakarta.persistence.criteria.CriteriaBuilder operation Returns: the query object . Since: Jakarta Persistence (JPA) 2. 1 CriteriaQuery createQuery () Create a CriteriaQuery object . Returns: criteria query object . Since: Jakarta Persistence (JPA) 1 ... . Since: Jakarta Persistence (JPA) 1 .0 CriteriaQuery createTupleQuery () Create a CriteriaQuery object | |
jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void lock ( Object entity , LockModeType lockMode , LockOption... options ) Lock an entity instance belonging to the persistence context, obtaining the specified lock mode , using | |
jakarta.persistence.EntityManager.refresh(Object,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , Map properties ) Refresh the state of the given managed entity instance from the database, using the specified properties, and overwriting unflushed changes | |
jakarta.persistence.EntityManager.refresh(Object,LockModeType) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , LockModeType lockMode ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes made to the entity, if any, and obtain | |
jakarta.persistence.EntityManager.lock(Object,LockModeType,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void lock ( Object entity , LockModeType lockMode , Map properties ) Lock an entity instance belonging to the persistence context, obtaining the specified lock mode , using the specified | |
jakarta.persistence.EntityManager.getLockMode(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager LockModeType getLockMode ( Object entity ) Get the current lock mode held by this persistence context on the given managed entity instance. Parameters: entity - a managed entity instance Returns: the lock mode | |
jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , LockModeType lockMode , Map properties ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes | |
jakarta.persistence.EntityManager.refresh(Object,RefreshOption...) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , RefreshOption... options ) Refresh the state of the given managed entity instance from the database, using the specified options , overwriting changes made to the entity | |
jakarta.persistence.EntityManager.detach(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void detach ( Object entity ) Evict the given managed or removed entity from the persistence context, causing the entity to become immediately detached. Unflushed changes made to the entity, if any, including | |
jakarta.persistence.EntityManager.setProperty(String,Object) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void setProperty ( String propertyName , Object value ) Set an entity manager property or hint. If a vendor-specific property or hint is not recognized, it is silently ignored. Parameters: propertyName | |
jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find ( EntityGraph entityGraph , Object primaryKey , FindOption... options ) Find an instance of the root entity of the given EntityGraph by primary key, using the specified options | |
jakarta.persistence.criteria.Expression.notEqualTo(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Expression Predicate notEqualTo ( Object value ) Create a predicate to test whether the expression is unequal to the argument. Parameters: value - value to be tested against Returns: predicate testing for inequality. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.EntityManager.find(Class,Object,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find ( Class entityClass , Object primaryKey , Map properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key | |
jakarta.persistence.EntityManager.find(Class,Object,LockModeType) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find ( Class entityClass , Object primaryKey , LockModeType lockMode ) Find by primary key and obtain the given lock type for the resulting entity. Search for an entity of the specified | |
jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find ( Class entityClass , Object primaryKey , LockModeType lockMode , Map properties ) Find by primary key and lock the entity, using the specified properties. Search | |
jakarta.persistence.criteria.Expression.equalTo(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Expression Predicate equalTo ( Object value ) Create a predicate to test whether the expression is equal to the argument. Parameters: value - value to be tested against Returns: predicate testing for equality. Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.EntityManager.find(Class,Object,FindOption...) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find ( Class entityClass , Object primaryKey , FindOption... options ) Find an instance of the given entity class by primary key, using the specified options . Search for an entity | |
Deleting JPA Entities: Employee employee = em. find (Employee.class, 1 ); em. getTransaction (). begin (); em. remove (employee ... is committed. Any embedded objects that the entity contains are also deleted. If the transaction is rolled back, the object is not deleted. The remove method throws an IllegalArgumentException | |
JPA Primary Key cannot be modified and represents the entity for as long as it exists in the database. As an object database, ObjectDB supports implicit object IDs, so an explicit primary key is not required. However, ObjectDB ... , and automatic sequential value generation . This powerful feature is absent from many other object -oriented | |
Apache License, Version 2.0, January 2004 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1 . Definitions . "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 ... to software source code, documentation source, and configuration files. " Object " form shall mean any form | |
Query Parameters in JPA a Country object from the database by its name: public Country getCountryByName( EntityManager em ... filters the query results to Country objects whose name field is equal to :name . The :name identifier ... = ? 1 ", Country.class); return query. setParameter ( 1 , name). getSingleResult (); } The format | |
jakarta.persistence.EntityManager). Since: Jakarta Persistence (JPA) 1 .0 void detach ( Object entity ) Evict the given managed or ... is null. Since: Jakarta Persistence (JPA) 1 .0 T find ( Class entityClass , Object primaryKey , Map ... FlushModeType . Since: Jakarta Persistence (JPA) 1 .0 LockModeType getLockMode ( Object entity | |
JPA Query API, which was the only query interface in JPA 1 , and the TypedQuery interface, which was introduced in JPA 2 ... is Object . When a more specific result type is expected, use the TypedQuery interface. The TypedQuery ... and TypedQuery objects : Query q1 = em. createQuery ("SELECT c FROM Country c"); TypedQuery q2 = em. createQuery | |
jakarta.persistence.StoredProcedureQuery. Since: Jakarta Persistence (JPA) 1 .0 Object getOutputParameterValue ( String parameterName ) Retrieve ... value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1 .0 Object ... Persistence (JPA) 1 .0 StoredProcedureQuery setHint ( String hintName , Object value ) Set a query property | |
jakarta.persistence.criteria.ListJoin Path Returns: parent. Since: Jakarta Persistence (JPA) 1 .0 Predicate in ( Object ... values ) Create ... boolean expression Returns: the modified join object . Since: Jakarta Persistence (JPA) 2. 1 ListJoin ... - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform | |
jakarta.persistence.criteria.Join Returns: bindable object corresponding to the path. Since: Jakarta Persistence (JPA) 1 .0 Predicate ... . Inherited from Path Returns: parent. Since: Jakarta Persistence (JPA) 1 .0 Predicate in ( Object ... values ... . Since: Jakarta Persistence (JPA) 1 .0 boolean isCorrelated () Whether the From object has been obtained | |
jakarta.persistence.criteria.MapJoin selection. Since: Jakarta Persistence (JPA) 1 .0 From getCorrelationParent () Returns the parent From object ... : parent. Since: Jakarta Persistence (JPA) 1 .0 Predicate in ( Object ... values ) Create a predicate ... (JPA) 1 .0 boolean isCorrelated () Whether the From object has been obtained as a result | |
jakarta.persistence.criteria.Subquery) 1 .0 SetJoin correlate ( SetJoin parentSet ) Create a subquery set join object correlated to a set ... Persistence (JPA) 1 .0 MapJoin correlate ( MapJoin parentMap ) Create a subquery map join object correlated ... Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression | |
[ODB1] Chapter 9 - ObjectDB Explorer databases. 9. 1 Running the Explorer The Explorer is a pure Java GUI application. It is shipped as an executable jar that will run on any system with a Java 1 .3 JRE or later installed ... to explore database objects visually, navigate among them and execute queries is very valuable | |
[ODB1] Chapter 7 - JDOQL Queries There are various ways to retrieve objects from an ObjectDB database, as shown in section 6.3 ... SQL for RDBMS. It provides object retrieval from the database according to a specified selectioPlan ... a specified order. 7. 1 Introduction to JDOQL A basic JDOQL query has the following | |
[ODB1] Chapter 4 - JDO Metadata and the other resources (possibly in a jar file). 4. 1 JDO Metadata Files During JDO enhancement and later ... , which are defined in the JDO specification, are ignored by ObjectDB if specified (as a pure object database, ObjectDB always uses datastore identity with its own object -id class). 4.3   | |
[ODB1] Chapter 3 - Persistent Classes. Instances of these classes that represent objects in the database are called persistent objects or persistent instances . Objects that do not represent anything in the database (including instances of persistent classes that live only in memory) are called transient objects or transient instances | |
[ODB1] Chapter 2 - A Quick Tour, step by step. Both sample programs are contained in ObjectDB's samples directory. 2. 1   ... of the second run is expected to be: Hello World 0 Hello World 1 After two runs, the database contains a list of two strings "Hello World 0" and "Hello World 1 ". Program Source Code The program consists | |
[ODB1] Chapter 5 - JDO Connections and deleting database objects , are provided in the next chapter ( Chapter 6 ). 5. 1 javax ... portable these objects are accessed through the standard JDO interfaces. Obtaining ... instance, in any context, to return its associate Transaction object . The strong |