ObjectDB Database Search

1-50 of 200 results

Paths and Types in JPQL and Criteria API

as arguments. Path expressions that navigate from one object to another. Instances of user-defined ... . However, they are more often used in JPQL path expressions that navigate to values of simple types, such as ... by all six comparison operators and used for ordering . Navigation through path expressions A path

jakarta.persistence.criteria.Path

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria. Path Type Parameters: - the type referenced by the path Super Interfaces: Expression , Selection , TupleElement Represents a simple or compound attribute path from a bound type or collection, and is a "primitive" expression

Strings in JPQL and Criteria Queries

' and '' . As parameters when string values are passed as query arguments. As path expressions ... a path expression), and the right operand is the pattern (usually a parameter or literal). For example ... : // Create path and parameter expressions: Expression path = country. get ("name"); Expression param = cb

jakarta.persistence.criteria.Path.get(String)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Path Path get (    String attributeName ) Create a path corresponding to the referenced attribute. Note: Applications using the string-based API may need to specify the type resulting from the Path .get operation in order

jakarta.persistence.criteria.CriteriaBuilder.treat(Path,Class)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Path treat (    Path path ,    Class type ) Downcast Path object to the specified type. Parameters: path - path type - type to be downcast to Returns: Path object of the specified type. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.Path.get(SingularAttribute)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Path Path get (    SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute. Parameters: attribute - single-valued attribute Returns: path corresponding to the referenced attribute. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Path.type()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Path Expression type() Create an expression corresponding to the type of the path . Returns: expression corresponding to the type of the path . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Path.getModel()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Path Bindable getModel() Return the bindable object that corresponds to the path expression. Returns: bindable object corresponding to the path . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Path.getParentPath()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Path Path getParentPath() Return the parent "node" in the path or null if no parent. Returns: parent. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Path.get(MapAttribute)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Path Expression get (    MapAttribute map ) Create a path corresponding to the referenced map-valued attribute. Parameters: map - map-valued attribute Returns: expression corresponding to the referenced attribute. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Path.get(PluralAttribute)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Path Expression get (    PluralAttribute collection ) Create a path corresponding to the referenced collection-valued attribute. Parameters: collection - collection-valued attribute Returns: expression corresponding to the referenced attribute. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaUpdate.set(Path,Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    Path attribute ,    Expression value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Returns: the modified update query. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaUpdate.set(Path,X)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    Path attribute ,    X value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Returns: the modified update query. Since: Jakarta Persistence (JPA) 1.0

Numbers in JPQL and Criteria Queries

and -12.5 . As parameters that are bound to numeric arguments. As path expressions that navigate ... expression or a simple Java numeric object. // Create path and parameter expressions: Expression path ... (+) Expression sum1 = cb. sum ( path , param); // 2 expressions Expression sum2 = cb. sum ( path , 1000

FROM clause (JPQL / Criteria API)

is declared as a join variable that is bound to the c1.neighbors path and iterates only over objects in ... range variable that serves as a root and additional join variables that are bound to path expressions. Join variables can also be bound to path expressions that are based on other join variables

SELECT clause (JPQL / Criteria API)

. Projection of path expressions JPQL queries can also return results that are not entities. For example ... c.name FROM Country AS c Using path expressions , such as c.name , in query results is called ... only single-valued path expressions in the SELECT clause. Collection and map fields cannot be included

Index Definition

attribute and attaching the @Index annotation directly to the indexed field. Multi-part path index The members attribute is also required to define indexes on multi-part paths : @Entity @Index ( members ... that are stored as part of the entity. Therefore, indexes on multi-part paths are allowed only when using

Chapter 6 - Configuration

: The configuration path By default, the configuration file is loaded from $objectdb/objectdb.conf ... (the ObjectDB home directory) is derived from the location of the objectdb.jar file. It is the path ... , the configuration file is loaded from $objectdb/objectdb.conf . You can specify an alternative path by

Database Explorer

, you must specify the path to the file. Alternatively, you can run the Explorer by double-clicking explorer.jar ... after editing the file to set the paths to objectdb.jar and the JVM. Connecting to the database Opening ... a database path on the server, which you can do by using the Browse button. You can also open recently used

Logical Operators in JPQL and Criteria API

, a Boolean path (a field or property) is represented by Path : Path isInUN = country. get ("isInUN"); Path isInEU = country. get ("isInEU"); Path isInOECD = country. get ("isInOECD"); The Predicate

JPA Class Enhancer

.Enhancer If objectdb.jar is not in the current directory, a path to the file must be specified ... on Unix/Linux) from the ObjectDB bin directory. To use that script, you must edit the paths ... the CLASSPATH - path to class or jar file(s), *? wildcards supported include: -cp : path to input user

JPA Connections and Transactions

a persistence unit name as an argument. As an extension, ObjectDB lets you specify a database URL or path ... ), you must specify an absolute or relative path to a local database file (for example, "my.odb" ). The objectdb ... client-server mode, specify a URL in the format objectdb://host:port/ path . In this case, an ObjectDB

JPA Criteria Query Expressions

predicate ├─ Path # Navigation path (attributes) ├─ ParameterExpression # Query parameter ... , representing any typed value, calculation, or path within the query. Extends Selection   ... predicates. A navigation path to an attribute value or a referenced entity. A type-safe representation

Database Management Settings

, but you can specify an alternative path with the path attribute. Storing the recovery file and the database ... , but you can specify an alternative path with the path attribute. The mode attribute ( "all" or "write

Server Configuration

of connections. The element The element has one attribute, path , which specifies the location of ObjectDB ... directory . The data path of an ObjectDB server is similar to the document root directory of a web ... , its subdirectories, and database files to operate correctly. When connecting to the server, the path specified in

Database Doctor

, you must specify the path to the file. The tool's main class is com.objectdb.Doctor . The only command-line argument for a diagnosis is the path to the database file (for example, my.odb ). The diagnosis ... The arguments are as follows: The first argument ( old.odb ) is the path to the corrupted database file

Online Backup

. In client-server mode, this path is relative to the ObjectDB home directory on the server. A new ... file by using the code above could generate a backup whose full path is c:\objectdb\backup ... parameter, it represents a path relative to the ObjectDB home directory. In client-server mode, the path

Server User List

which paths under the server's data directory the user can access: The required path attribute specifies a directory path relative to the root data directory. Permission to access a directory includes permission to access its entire subdirectory tree. Therefore, a path of "/" grants permission

General Settings and Logging

results that contain millions of objects. The element specifies temporary file settings: The path ... settings: The path attribute specifies the directory in which log files are generated. The $objectdb prefix represents the ObjectDB installation directory. If the path is empty ( "" ), file logging

Database Transaction Replayer

by setting the path attribute in the configuration . The recording directory contains two types ... .objectdb.Replayer my.odb If objectdb.jar is not in the current directory, you must specify a path to it. The tool's main class is com.objectdb.Replayer . The required argument is the path to the database

Obtaining a JPA Database Connection

, you can either define a standard persistence unit or provide the file path of the ObjectDB database directly ... . However, with ObjectDB, any valid database file path (absolute or relative) is also accepted. ObjectDB ... already exist at the specified path , ObjectDB creates one. You also use the EntityManagerFactory

GROUP BY and HAVING clauses

might not be supported by other JPA implementations. Currently, only identification variables and path ... to specific fields of the objects in the group by using path expressions . The following query groups ... WHERE 'Europe' MEMBER OF c.continents GROUP BY c.currency Because this query performs grouping on a path

Database Server

.objectdb.Server If objectdb.jar is not in the current directory, you must specify a path to it. Running ... Chapter 6 . You can override this by specifying a configuration path on the command line: $ java com ... this script, you must edit the paths to the objectdb.jar file and the JVM. Consult your operating

jakarta.persistence.criteria.MapJoin

Interfaces: PluralJoin , Join , From , Path , FetchParent , Expression , Selection , TupleElement ... exist. Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute. Inherited from Path Parameters: attribute

jakarta.persistence.criteria.From

: - the source type - the target type Super Interfaces: Path , FetchParent , Expression , Selection ... , embeddables, and collections belonging to the type, and for Path s of attributes belonging ... . Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding

jakarta.persistence.criteria.Join

: - the source type of the join - the target type of the join Super Interfaces: From , Path , FetchParent ... - if attribute of the given name does not exist. Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute

jakarta.persistence.criteria.PluralJoin

, From , Path , FetchParent , Expression , Selection , TupleElement The PluralJoin interface defines ... does not exist. Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute. Inherited from Path Parameters

jakarta.persistence.criteria.Root

: - the entity type referenced by the root Super Interfaces: From , Path , FetchParent , Expression , Selection ... - if attribute of the given name does not exist. Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute

Collections in JPQL and Criteria Queries

Collections can appear in JPQL queries in the following ways: As parameters when a collection is passed as an argument. As path expressions when navigating to a persistent collection field. IS [NOT ... methods for building these expressions: // Create path and parameter expressions: Expression languages

ObjectDB Object Database Features

and values are indexable. Nested paths inside embedded objects are indexable. Indices are also used for fast ... ). ORDER BY (including ASC, DESC). Aggregates (COUNT, SUM, AVG, MAX, MIN). Query Expressions Path

SSL Configuration

a separate child element with two required attributes: path , which specifies the path to the file

jakarta.persistence.criteria.SetJoin

, From , Path , FetchParent , Expression , Selection , TupleElement The SetJoin interface is the type ... exist. Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute. Inherited from Path Parameters: attribute

jakarta.persistence.criteria.CollectionJoin

: PluralJoin , Join , From , Path , FetchParent , Expression , Selection , TupleElement The CollectionJoin ... of the given name does not exist. Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute. Inherited from

jakarta.persistence.criteria.ListJoin

, From , Path , FetchParent , Expression , Selection , TupleElement The ListJoin interface is the type ... not exist. Since: Jakarta Persistence (JPA) 1.0 Path get ( SingularAttribute attribute ) Create a path corresponding to the referenced single-valued attribute. Inherited from Path Parameters

Date and Time in JPQL and Criteria Queries

Date and time expressions can appear in JPQL queries in the following ways: As date and time literals --for example, {d '2011-12-31'} and {t '23:59:59'} . As parameters --when date and time values are passed as arguments. As path expressions --to navigate to persistent date and time fields. As

JPA Query Expressions (JPQL / Criteria)

on the following pages: Literals and dates ( literal , nullLiteral , currentDate , …) Paths , navigation

JPA Metamodel and Graphs

objects that can be bound to a Path in a Criteria query, mainly to define FROM variables

Step 7: Run the Spring Web App

redirection to the controller path : Assuming that Tomcat 6.0 is installed as a server in your NetBeans ... \objectdb.jar (use the path to objectdb.jar on your computer). Click the Close button. Right click

Step 7: Run the Spring Web App

At this stage your project should have the following structure: Use copy and paste to replace the content of the index.jsp file (which serves as the default front page) with the following redirection to the  controller path : If Tomcat 6.0 is installed as a server in your Eclipse - 

Step 1: Create a Java EE 6 Web Project

and the Download additional server adapters link. Follow the instructions and specify the path