Internal Website Search

1-50 of 200 results

CriteriaBuilder.not(restriction) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate not (    Expression  restriction ) Create a negation of the given restriction. Parameters: restriction - restriction expression Return: not predicate Since: JPA 2.0

Predicate.not() - JPA Method

JPA Method in javax.persistence.criteria.Predicate Predicate not () Create a negation of the predicate. Return: negated predicate Since: JPA 2.0

JPA Entity Fields

that do not participate in persistence and their values are never stored in the database (similar to transient fields in Java that do not participate in serialization). Static and final entity fields ... ; // not persistent because of static final int transient2 = 0; // not persistent because of final

Retrieving JPA Entity Objects

. The retrieval of objects does not require an active transaction because it does not change the content ... entity object is not found in the persistence context a new object is constructed and filled ... of the retrieved object to Employee is not required because find is defined as returning an instance of the same

Collections in JPQL and Criteria Queries

. as  path expressions - in navigation to persistent collection fields. IS [ NOT ] EMPTY The IS [ NOT ] EMPTY operator checks whether a specified collection is empty or not . For example: c.languages IS EMPTY is TRUE if the collection is empty and FALSE otherwise. c.languages IS NOT EMPTY is FALSE

Logical Operators in JPQL and Criteria API

|| NOT ! JPQL follows the SQL notation, while Java uses its own notation (which is also in use by JDOQL ... the Java/JDO || operator as a synonym for OR as part of its JDO support. Unary NOT (!) Operator The following query retrieves all the countries whose population does not exceed a specified limit: SELECT

Eclipse Public License - v 1.0

anyone acting on such Contributor's behalf. Contributions do not include additions to the Program ... under their own license agreement, and (ii) are not derivative works of the Program. "Contributor" means any person or ... to be covered by the Licensed Patents. The patent license shall not apply to any other combinations

Apache License, Version 2.0, January 2004

. "Source" form shall mean the preferred form for making modifications, including but not limited ... resulting from mechanical transformation or translation of a Source form, including but not limited ... . For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely

ObjectDB License Agreement [ver. 2.0.4]

the software you agree to the terms and conditions of this agreement. If you do not agree to these terms and conditions - do not download, install or use the software. This agreement is between ObjectDB ... of this agreement. 2. The Customer is not allowed to modify the Software or any portion of it in

Detached Entity Objects

Detached entity objects are objects in a special state in which they are not managed by any ... objects are limited in functionality: Many JPA methods do not accept detached objects (e.g. lock ). Retrieval by navigation from detached objects is not supported, so only persistent fields

JPA Persistable Types

: should be a top-level class (i.e. not a nested / inner class). should have a public or protected ... user defined class (but not system classes, such as ArrayList) and implement any interface ... classes, but also some restrictions. ObjectDB, however, does not enforce these restrictions so mapped

FROM clause (JPQL / Criteria API)

are always polymorphic. JPQL does not provide a way to exclude descendant classes from iteration ... of countries that do not share a border, returning as results only neighboring countries. Caution ... long path expression (which is not an option for a collection). For example: SELECT c, c.capital.name

Comparison in JPQL and Criteria API

- JPQL / SQL Set 2 - Java / JDO Less Than Less Than or Equal To = Equal = == Not Equal != The two sets differ in the Equal and the Not Equal operators. JPQL follows the SQL notation, where Java uses ... are always evaluated to TRUE , FALSE or NULL . When both operands are not NULL ( not shown in the table) the operator

ObjectDB Website - Terms and Conditions of Use

for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited ... -commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not : modify or copy the materials; use the materials for any commercial

Database Explorer

it from the command line as follows: java -jar explorer.jar If explorer.jar is not in the current ... by another process the viewer windows in the Explorer might display cached content that does not ... ( not necessarily an entity object). Field values can also be set using standard clipboard commands

SELECT clause (JPQL / Criteria API)

detection , support for delete , etc. Query results are not limited to entity objects. JPA 2 adds ... code needed. Notice that query results must always be specified explicitly - JPQL does not support ... queries can also return results that are not entity objects. For example, the following query returns

JPA Query Expressions (JPQL / Criteria)

: =, , =, IS [ NOT ] NULL, [ NOT ] BETWEEN, including  Collection operators: [ NOT ] IN, IS [ NOT ] EMPTY, [ NOT ] MEMBER [OF] and the [ NOT ] LIKE operator. Logical operators : AND, OR, NOT . In addition, JPA ... ( equal , notEqual , gt , ge , lt , le , between , isNull , ...) Logical expressions ( and , or , not , isTrue ).

Privacy Policy

information may include, but is not limited to: email address, username, full name, user name, profile ... automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID ... is being sent. However, if You do not accept Cookies, You may not be able to use some parts

JPA Primary Key

an object database, ObjectDB supports implicit object IDs, so an explicitly defined primary key is not ... and do not have their own separate identity. Automatic Primary Key By default, the primary key ... key of the second entity object is 2, etc. Primary key values are not recycled when entity objects

Database Management Settings

when a database is opened and a recovery file exists, indicating that it has not been closed properly. Moving or copying a database file that has not been closed properly without its recovery file may corrupt ... a database that has not been closed properly by running the Replayer tool. Recording might also be useful

JPA Class Enhancer

. There is one case, however, where enhancement is required. Non persistable classes that access directly ( not ... (and actually required by JPA but not enforced by ObjectDB) to avoid accessing persistent fields ... not need to be enhanced. Enhancement improves efficiency in three ways: Enhanced code enables

Literals in JPQL and Criteria Queries

literals (e.g. 077 , 077L ), a feature that is not currently supported by all JPA implementations. String ... can be used (e.g. "Adam\'s" , "abcd\n1234" ) but this is not supported by all the JPA implementations ... ' and 'ABC' are not equivalent. Date and Time Literals JPQL follows the syntax of SQL and JDBC

Shared (L2) Entity Cache

class which is not marked with @Cacheable inherits cacheability setting from its super class. Using ... : On retrieval - shared cache is used for entity objects that are not in the persistence context. If an entity object is not available also in the shared cache - it is retrieved from the database and added

Strings in JPQL and Criteria Queries

. LIKE - String Pattern Matching with Wildcards The [ NOT ] LIKE operator checks if a specified string ... for 'Denmark' c.name LIKE '%' is always TRUE (for any c.name value). c.name NOT LIKE '%' is always FALSE ... is not found. The third argument (when present) specifies from which position to start the search. LOWER

Schema Update

configuration file contains an empty element. If the element is not empty ObjectDB tries to apply ... . All the classes in that package are moved to the new package name. In addition, whether or not a new ... .example.old2 packages. The com.example.old3 package is not renamed, but rename operations are specified

Deleting JPA Entity Objects

that are contained in the entity object are also deleted. If the transaction is rolled back and not committed the object is not deleted. An IllegalArgumentException is thrown by remove if the argument is not an instance of an entity class or if it is a detached entity. A TransactionRequiredException

Database Doctor

, and if the file is not valid (it is corrupted), produces a detailed diagnosis report of all the errors. Repair ... of the ObjectDB engine ( not using one server process), thus bypassing ObjectDB internal file lock protection. Modifying the database file externally not through ObjectDB (e.g. by malicious software such as

Query Parameters in JPA

identifier that serves as the parameter name. JPA does not provide an API for defining the parameters ... . There are a few drawbacks to using literals rather than parameters in queries. First of all, the query is not reusable ... such methods, 9 of which are overridden in TypedQuery . That large number of methods is not typical

Database Schema Evolution

Modifications to entity classes that do not change their persistent field definitions ... . Fields in the new schema that do not have matching fields in the old schema are initialized with default values ( 0 , false or null ). Fields in the old schema that do not have matching fields in

Database Connection using JPA

. If the database does not yet exist a new database file is created. When the application is finished using ... when not specified). The path indicates the location of the database file on the server, relative ... . However, by default, the in-memory instance of the managed entity is not affected by the rollback

Updating JPA Entity Objects

. If the transaction is rolled back and not committed the update is discarded. On commit the persist operation ... . If global cascade persist is enabled all the reachable entity objects that are not managed ... . getTransaction (). begin (); employee.projects[0] = new Project(); // not detected automatically

GROUP BY and HAVING clauses

the query. Note that the query above might not be supported by some JPA implementations ... (which does not use aggregates) is equivalent to the following query: SELECT DISTINCT SUBSTRING(c.name, 1 ... supports a special form of aggregate queries that do not have a GROUP BY clause in which all the FROM

JPA Lifecycle Events

, package and private ) but should not be static . The annotation specifies when the callback method ... lifecycle event (which is still in progress) callback methods should not call EntityMan­ager or Query methods and should not access any other entity objects. If a callback method throws an exception

Storing JPA Entity Objects

is committed. An IllegalArgumentException is thrown by persist if the argument is not an instance of an entity ... instance is not stored in the database automatically with the referencing Employee instance. To avoid ... that is not expected to be stored in the database at the end of that transaction

Is ObjectDB better than competing object databases?

Naturally, this is not the place to look for an unbiased answer for this question ... , most object databases do not support user defined primary keys, even though this is very useful in ... do not support aggregate queries (max, min, count, sum and avg). ObjectDB supports rich queries

Auto Generated Values

the allocationSize attribute. It is possible that some of the IDs in a given allocation will not be used. Therefore, this strategy does not guarantee there will be no gaps in sequence values. The Table Strategy ... . ObjectDB does not have tables, so the TABLE and SEQUENCE strategies are almost identical. A tiny

Defining a JPA Entity Class

Entity Classes Storing an entity object in the database does not store methods and code ... , any field that is not declared as static or transient is a persistent field. For example ... , ObjectDB supports implicit object IDs, so an explicitly defined primary key is not required

JPA Metamodel API

classes: Set allEmbeddableTypes = metamodel. getEmbeddables (); If managed classes are not listed in ... ); These three methods can also be used with types that are still unknown to ObjectDB ( not listed in the persistence unit and have not been used yet). In this case, calling the method introduces

UPDATE SET Queries in JPA/JPQL

to retrieve data from the database, UPDATE queries do not retrieve data from the database ... ;may break its synchronization with the database. For example, the EntityManager may not be aware ... variable (with or without an explicit variable name) for iteration. Multiple variables and JOIN are not

JPA Persistence Unit

should be used. ObjectDB is represented by the com.objectdb.jpa.Provider string. If not specified, the first JPA ... the persistence.xml file (if it is packed) are registered automatically. If the application is not ... (for registration of all the classes in the jar file). ObjectDB does not enforce registration of all the managed

Working with JPA Entity Objects

. In this state the object is not yet associated with an EntityManager and has no representation in ... the Configuration chapter. By default, managed entity objects that have not been modified or removed ... is cleared all of its managed entities become detached and any changes to entity objects that have not

Database Transaction Replayer

only if a proper backup file exists. Therefore, when recording is enabled and the required backup file does not ... is not in the current directory a path to it has to be specified. The tool's main class is com

[ODB1] Chapter 6 - Persistent Objects

. represents some database content, or a transient object, i.e. not related to any database. Storing Objects ... is also thrown if the argument to makePersistent( ... ) is not an instance of a persistent class (as defined in ... the database, but not the collection or array itself (unlike passing a collection to Utilities.bind

[ODB1] Chapter 5 - JDO Connections

open for longer than necessary is not recommended in multi user applications because of the resources ... , not as classes. Every JDO implementation, including ObjectDB, defines classes that implement ... that the code above may throw an IOException if the jdo.properties file is not found. In addition

[ODB1] Chapter 4 - JDO Metadata

at runtime, ObjectDB determines whether or not each class is persistent. It searches for JDO metadata ... is found, the class is persistent, and if not , the class is transient. Metadata for class a.b.X ( a.b ... that case the fields of class X are not persistent fields, and when an instance of class C is stored

[ODB1] Chapter 3 - Persistent Classes

persistent instances . Objects that do not represent anything in the database (including instances ... because persistent classes have some overhead. Classes that are not declared persistent are called ... abstract methods, so implementing it explicitly is not trivial. It is easier to define a class

[ODB1] Chapter 7 - JDOQL Queries

collection is not specified explicitly, as it is in this query, the entire Extent of the candidate ... class. In such cases, if an Extent is not managed for the candidate class, the query is not valid ... ), iteration over the objects in the database would not be required, and the query would execute

[ODB1] Chapter 9 - ObjectDB Explorer

.jar my.odb Some JVM arguments can be useful. For instance, by default Java does not use ... . Otherwise, the required executable jar would not be found by explorer.exe. By default, running explorer.exe ... this way, the edited script will not be deleted when extracting files of a newer ObjectDB version

[ODB1] Chapter 2 - A Quick Tour

with the HelloWorld sample program, which is not JDO portable because it uses some ObjectDB extensions ... )pm.getObjectById("Hello World", true); 21 } 22 catch (JDOException x) { 23 // If not found ... file does not exist in that path, a new database file is created automatically. To enable updating

[ODB1] Chapter 8 - ObjectDB Server

.Server -conf config.xml start If you name your configuration file server.xml , you do not need ... .xml file if the –conf parameter is not used. Also, if you do not use the –conf parameter and do not ... the path to the odbse.jar file, and to the JVM. It is recommended that you do not edit this file