Internal Website Search

1-50 of 178 results

FROM clause (JPQL / Criteria API)

variable that serves as a root and additional join variables that are bound to path expressions ... : Range variables are represented by the Root interface. Join variables are represented by the Join interface (and its sub interfaces). Criteria Query Roots The CriteriaQuery 's from method serves as

javax.persistence.criteria.Root

JPA Interface Root Type Parameters: - the entity type referenced by the root A root type in the from clause. Query roots always reference entities. Since: JPA 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Root . Public Methods EntityType getModel () Return the metamodel

CriteriaBuilder.treat(root,type) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Root treat (    Root   root ,    Class  type ) Downcast Root object to the specified type. Parameters: root - root type - type to be downcast to Return: Root object of the specified type Since: JPA 2.1

Root.getModel() - JPA Method

JPA Method in javax.persistence.criteria. Root EntityType getModel () Return the metamodel entity corresponding to the root . Return: metamodel entity corresponding to the root Since: JPA 2.0

Low performance when getting grove roots

Hi, I have a grove-like structure of objects, every objects referencing its parent. Root objects have null as the value of this parent reference. To find the roots I execute a query. If the number of objects in the tree is significant, this query takes almost forever, it seems ObjectDB loads

Paths and Types in JPQL and Criteria API

its subinterfaces ( From , Root , Join and Join 's descendants). Path Expressions The Root and Join interfaces ... Variable Paths: Root country = query. from (Country.class); Join neighborCountry = country. join ... ( Root , Join ) - The creation of a FROM expression automatically modifies the query by adding

SELECT clause (JPQL / Criteria API)

.class); Root c = q. from (Country.class); q. select (c. get ("currency")). distinct (true ... . createQuery (Object[].class); Root c = q. from (Country.class); q. select (cb. array (c. get ("name ... = cb. createTupleQuery (); Root c = q. from (Country.class); q. select (cb. t uple (c. get ("name"), c

Online Backup

"objectdb backup" . The backup is created under the backup root directory, which by default ... that reflects the current date and time (e.g.  201912312359 ) is created under the backup root ...  (if c:\objectdb is the ObjectDB home directory). Custom Backup Target A custom backup root

JPA Criteria API Queries

); Root c = q. from (Country.class); q. select (c); The CriteriaBuilder interface serves as the main ... for representing the built query. Then a Root  instance is created to define a range variable in the FROM ... . getCriteriaBuilder (); CriteriaQuery q = cb. createQuery (Country.class); Root c = q. from (Country.class

Database Replication and Clustering

databases on the slave server are automatically generated under a special root directory, $replication , under the server data root directory. Starting a new replication of an existing master database

Server Configuration

to the document root directory of a web server. Every database file in the data directory and in

Numbers in JPQL and Criteria Queries

;function returns a long value). The SQRT Function The SQRT function returns the square root

WHERE clause (JPQL / Criteria API)

); Root c = q. from (Country.class); q. select (c); ParameterExpression p = cb. parameter (Integer

Database Connection using JPA

to the server data root path. Connection URL Parameters The following parameters are supported as

Chapter 6 - Configuration

The ObjectDB configuration file contains one root element with seven subelements: ... ... ... ... ... ... ... Each one of these seven configuration elements is explained in a separate section: This page explains how ObjectDB configuration works in general. The Configuration Path By default

GROUP BY and HAVING clauses

using the criteria query API as follows: CriteriaQuery q = cb. createQuery (Country.class); Root c = q

JPA Persistence Unit

packed in a JAR yet, ObjectDB (as an extension) automatically registers classes under the classpath root

Server User List

: The required path attribute specifies a directory path relative to the root data directory. Permission

ORDER BY clause (JPQL / Criteria API)

); Root c = q. from (Country.class); q. select (c); q. orderBy (cb. asc (c. get ("currency")), cb. desc

Criteria Query From Elements

variables (bound by an entity class) are represented by the Root subinterface: Join variables (bound by

JPA Exceptions

.TransactionRequiredException Exception Class Overview The root of the JPA exception class subtree is: General errors

javax.persistence.criteria.Subquery

of the containing query Return: subquery join Since: JPA 2.0 Root correlate ( Root  parentRoot) Create a subquery root correlated to a root of the enclosing query. Parameters: parentRoot - a root of the containing query Return: subquery root Since: JPA 2.0 SetJoin correlate ( SetJoin  

[ODB1] Chapter 9 - ObjectDB Explorer

information about the database and the bottom sub window displays a list of root objects that the database contains ( root objects are discussed in chapter 6 ). The "Query" window enables a user to execute ... to view all the instances of that class. Select a root object in the "Database" tabbed window to view

javax.persistence.criteria.CriteriaQuery

the query result or whether they must be retained Return: the modified query. Since: JPA 2.0 Root from (Class  entityClass) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots . Parameters: entityClass - the entity class Return: query

javax.persistence.criteria.AbstractQuery

must have: a set of root entities (which may in turn own joins). All queries may have: a conjunction ... Since: JPA 2.0 Root from (Class  entityClass) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots . Parameters: entityClass

javax.persistence.criteria.CriteriaDelete

of the bulk delete. A CriteriaDelete object must have a single root . Since: JPA 2.1 Public Methods Root from (Class  entityClass) Create and add a query root corresponding to the entity that is the target of the delete. A CriteriaDelete object has a single root , the entity that is being deleted

javax.persistence.criteria.CriteriaUpdate

with the result of the bulk update. A CriteriaUpdate object must have a single root . Since: JPA 2.1 Public Methods Root from (Class  entityClass) Create and add a query root corresponding to the entity that is the target of the update. A CriteriaUpdate object has a single root , the entity

javax.persistence.criteria.CriteriaBuilder

Expression sqrt ( Expression  x) Create an expression that returns the square root of its argument. Parameters: x - expression Return: square root Since: JPA 2.0 Expression substring ( Expression  x ... object of the specified type Since: JPA 2.1 Root treat ( Root   root , Class  type

FetchPlan.setDetachmentRoots(roots) - JDO Method

JDO Method in javax.jdo.FetchPlan FetchPlan setDetachmentRoots (   Collection  roots ) Set the roots for DetachAllOnCommit. Parameters: roots - Collection of the detachment roots . Since: JDO 2.0

Subquery.correlate(parentRoot) - JPA Method

JPA Method in javax.persistence.criteria.Subquery Root correlate (    Root  parentRoot ) Create a subquery root correlated to a root of the enclosing query. Parameters: parentRoot - a root of the containing query Return: subquery root Since: JPA 2.0

AbstractQuery.getRoots() - JPA Method

JPA Method in javax.persistence.criteria.AbstractQuery Set getRoots () Return the query roots . These are the roots that have been defined for the CriteriaQuery or Subquery itself, including any subquery roots defined as a result of correlation. Returns empty set if no roots have been defined

[ODB1] Chapter 6 - Persistent Objects

are called root objects in object databases, because navigation in the database can easily start from ... its object ID. A root object can also be retrieved by its name. It is also possible to use ... = (Person)pm.getObjectById(oid, false); Retrieval by an Object Name A root object

CriteriaDelete.from(entity) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaDelete Root from (    EntityType  entity ) Create and add a query root corresponding to the entity that is the target of the delete. A CriteriaDelete object has a single root , the entity that is being deleted. Parameters: entity

CriteriaDelete.from(entityClass) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaDelete Root from (   Class  entityClass ) Create and add a query root corresponding to the entity that is the target of the delete. A CriteriaDelete object has a single root , the entity that is being deleted. Parameters: entityClass

AbstractQuery.from(entity) - JPA Method

JPA Method in javax.persistence.criteria.AbstractQuery Root from (    EntityType  entity ) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots . Parameters: entity - metamodel entity representing the entity of type X

AbstractQuery.from(entityClass) - JPA Method

JPA Method in javax.persistence.criteria.AbstractQuery Root from (   Class  entityClass ) Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots . Parameters: entityClass - the entity class Return: query root corresponding to the given entity Since: JPA 2.0

CriteriaUpdate.from(entity) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate Root from (    EntityType  entity ) Create and add a query root corresponding to the entity that is the target of the update. A CriteriaUpdate object has a single root , the entity that is being updated. Parameters: entity

CriteriaUpdate.from(entityClass) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate Root from (   Class  entityClass ) Create and add a query root corresponding to the entity that is the target of the update. A CriteriaUpdate object has a single root , the entity that is being updated. Parameters: entityClass

Java EE 6 JPA Tutorial - Eclipse Project

the  guestbook-jee6 directory as Root Directory and press  ENTER . Select the project and click

Spring MVC JPA Tutorial - Eclipse Project

-spring directory as Root Directory and press  ENTER . Select the project and click  Finish

JPA Web App Tutorial - Eclipse Project

; guestbook-web directory as Root Directory and press  ENTER . Select the project and click  Finish

Getting Started with JPA - Eclipse Project

directory as Root Directory and press ENTER . Select the project and click  Finish . Run the project in

CriteriaDelete.getRoot() - JPA Method

JPA Method in javax.persistence.criteria.CriteriaDelete Root getRoot () Return the query root . Return: the query root Since: JPA 2.1

javax.persistence.EntityGraph

JPA Interface EntityGraph Type Parameters: - The type of the root entity. This type represents the root of an entity graph that will be used as a template to define the attribute nodes and boundaries of a graph of entities and entity relationships. The root must be an entity type. The methods

CriteriaUpdate.getRoot() - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate Root getRoot () Return the query root . Return: the query root Since: JPA 2.1

[ODB1] Chapter 8 - ObjectDB Server

with one registered user: The server configuration file is in XML format. It always includes an root element ... shown above. The data directory of the ObjectDB server is very similar to the document root ... to access. The required path attribute specifies a path to a directory relative to the data directory root

[ODB1] Chapter 4 - JDO Metadata

with a single root element - . The root has one or more sub elements. Each element has one or more sub

[ODB1] Chapter 5 - JDO Connections

of the database file on the server, relative to the server root path (see chapter 8 for more details). Client

javax.jdo.FetchPlan

() Get options used during detachment. Since: JDO 2.0 Class[] getDetachmentRootClasses () Get the root classes for DetachAllOnCommit. Return: The detachment root classes Since: JDO 2.0 Collection getDetachmentRoots () Get the roots for DetachAllOnCommit. Return: Collection of detachment roots . Since: JDO 2.0

javax.jdo.PersistenceManager

.spi.Detachable interface. Parameters: pc - the root instance to make transient. useFetchPlan ... to implement the javax.jdo.spi.Detachable interface. Parameters: pcs - the root instances to make ... do not need to implement the javax.jdo.spi.Detachable interface. Parameters: pcs - the root