ObjectDB Database Search

1-50 of 200 results

Paths and Types in JPQL and Criteria API

are assigned as arguments. Path expressions that navigate from one object to another. Instances of user ... . But more often they are used in JPQL path expressions that navigate to values of simple types (number, boolean ... , and they can be used in ordering . Navigation through Path Expressions A path expression always starts

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

' , ''. as parameters - when string values are assigned as arguments. as  path expressions - in ... is always the string to check for a match (usually a path expression) and the right operand is always the pattern ... , as shown in the following examples: // Create path and parameter expressions: Expression path

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

, -12.5 . as parameters - when numeric values are assigned as arguments. as  path expressions - in ... Java numeric object: // Create path and parameter expressions: Expression path = country ... ( path , param); // 2 expressions Expression sum2 = cb. sum ( path , 1000); // expression + number

FROM clause (JPQL / Criteria API)

a join variable that is bound to the c1.neighbors path and iterates only over objects in ... 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 that appear

SELECT clause (JPQL / Criteria API)

the "SELECT *" expression (which is commonly used in SQL). Projection of Path Expressions JPQL ... path expressions , such as c.name , in query results is referred to as projection. The field values ... value path expressions can be used in the SELECT clause. Collection and map fields cannot be included

Index Definition

members and attaching the @Index annotation directly to the indexed field. Multi Part Path Index The members attribute is also required in order to define indexes on multi part paths : @Entity @Index ... that are stored as part of the entity. Therefore, indexes on multi part paths are only allowed

Database Connection using JPA

path ) directly, bypassing the need for a persistence unit. Any string that starts with objectdb ... ), an absolute path or a relative path of a local database file has to be specified (e.g. "my.odb ... ; "objectdb:my-db.tmp" ). To use client server mode, a URL in the format objectdb://host:port/ path

Chapter 6 - Configuration

: This page explains how ObjectDB configuration works in general. The Configuration Path By default ... ) is derived from the location of the objectdb.jar file. It is defined as the path to the directory in ... the configuration file is loaded from $objectdb/objectdb.conf . You can specify an alternative path by setting

Database Explorer

directory a path to it has to be specified. Alternatively, you can run the Explorer by double clicking ... the shell file, setting the paths to the objectdb.jar file and to the JVM). Connecting to the Database ... for a client-server connection. You also have to specify a database path on the server, possibly using

Logical Operators in JPQL and Criteria API

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

JPA Class Enhancer

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

General Settings and Logging

: The path attribute specifies a directory in which the temporary files are generated. The $temp prefix can be used to represent the system default temporary path , as demonstrated above. Using RAM ... the Explorer easier. The element General logging settings are specified in the element: The path

Database Management Settings

file is generated in the directory of the database file, but any other alternative path can be specified by the path attribute. Using separate storage devices (e.g. disks) for the recovery file ... other alternative path can be specified by the path attribute. The mode attribute (whose value is "all" or

Server Configuration

connections limit. The element The element has one attribute, path , which specifies the location ... above), represents the ObjectDB home directory . The data path of an ObjectDB server is similar ... . When connecting to the server the path that is specified in the URL connection is resolved relative

Database Doctor

is not in the current directory a path to it has to be specified. The tool main class is com.objectdb.Doctor and the only command line argument for running a database diagnosis is the path ... ( old.odb above) is the path to the original (corrupted) database file. The second argument ( new.odb

Server User List

indicating which paths under the server data directory the user is allowed to access: The required path attribute specifies a directory path relative to the root data directory. Permission to access ... under that directory. Therefore, path "/" indicates permission to access any directory in the data directory

Database Transaction Replayer

on a different physical device by setting the path attribute in the configuration . The recording ... is not in the current directory a path to it has to be specified. The tool's main class is com.objectdb.Replayer and the required argument is the path to the database file (e.g. my.odb as shown

Obtaining a JPA Database Connection

persistence unit in an XML file or you can simply provide the file path of the ObjectDB database ... an argument, but when using ObjectDB, any valid database file path (absolute or relative ... ). If no database file exists yet at the given path ObjectDB will try to create one. The EntityManagerFactory

GROUP BY and HAVING clauses

. Only identification variables and path expressions are currently supported in the GROUP BY clause by all the JPA ... the group by using path expressions . The following query groups countries in Europe by their currency ... GROUP BY c.currency Because grouping is performed in this query on a path expression , this query

Database Server

: $ java -cp objectdb.jar com.objectdb.Server If objectdb.jar is not in the current directory a path ... a configuration path explicitly on the command line: $ java com.objectdb.Server -conf my_objectdb.conf ... script, server.sh , is included in the bin directory. To use that script you have to edit the paths

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

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 ... : IllegalArgumentException - 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 may appear in JPQL queries: as parameters - when collections are assigned as arguments. as  path expressions - in navigation to persistent collection fields. IS [NOT] EMPTY ... examples: // Create path and parameter expressions: Expression languages = country. get ("languages

Online Backup

 above could generate a backup whose full path is  c:\objectdb\backup\201912312359\test.odb ... is specified as a value for the target parameter it represents a path relative to the ObjectDB home

ObjectDB Object Database Features

). Map keys and values are indexable. Nested paths inside embedded objects are indexable. Indices ... Expressions Path navigation expressions using the dot (.) operator. Comparison operators (

SSL Configuration

is represented by a separate child element with two required attributes: path , which specifies the path to the file, and password , which specifies a password that is needed in order to use 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 ... - 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. 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 may appear in JPQL queries: as date and time literals - e.g. {d '2011-12-31'} , {t '23:59:59'} . as parameters - when date and time values are assigned as arguments. as  path expressions - in navigation to persistent date and time fields. as results of predefined

JPA Query Expressions (JPQL / Criteria)

, ...). Paths , navigation and types ( get , type ). Arithmetic expressions ( sum , diff , prod

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

Step 1: Create a Web Project

as a new server by clicking the New Runtime... button . Follow the instructions and specify the path

Step 1: Create a Java Project

the objectdb.jar file, using: Right Clicking on the Project Properties Java Build Path Libraries Add External