ObjectDB Database Search

101-150 of 200 results

Selection.alias(name) - JPA Method

JPA Method in javax.persistence.criteria.Selection Selection alias (   String  name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Parameters: name - alias Return: selection item Since: JPA 2.0

Database Connection using JPA

an argument a name of a persistence unit . As an extension, ObjectDB enables specifying a database URL (or ... a persistence unit name . To use ObjectDB embedded directly in your application (embedded mode ... name extension is odb or objectdb and required for other file name extensions (e.g. 

Paths and Types in JPQL and Criteria API

. For example, c.capital. name is a nested path expression that continues from the Capital entity object to its name field. A path expression can be extended further only if its type is also a user defined ... class must contain a persistent field (or property) with a matching name . The path expression

Literals in JPQL and Criteria Queries

the ordinary Java syntax for enum values, but the fully qualified name of the enum type ... to enable selective retrieval by type . In JPQL an entity type literal is written simply as the name ... that the name of the entity class is not enclosed in quotes (because type literals are not string literals). By

JPA Entity Fields

{ String name ; @ManyToOne Department department; } @Entity public class Department { @OneToMany ... annotation: @Entity public class Department { @OneToMany ( mappedBy ="department") @OrderBy (" name ... of the following query: SELECT e FROM Employee e WHERE e.department = :d ORDER BY e. name The specified field

Database Transaction Replayer

directory whose name is the name of the database file with the odr (ObjectDB Recording) suffix. By ... directory contains two types of files: Backup files - with names of the form .odb Recording files - with names of the form .odr A backup file is an ordinary ObjectDB database file that reflects the state

GROUP BY and HAVING clauses

. name , 1, 1) FROM Country c GROUP BY SUBSTRING(c. name , 1, 1); The FROM clause defines iteration ... the first letter of the country name . The next step is to pass the groups to the SELECT clause ... (which does not use aggregates) is equivalent to the following query: SELECT DISTINCT SUBSTRING(c. name , 1

Strings in JPQL and Criteria Queries

(usually a parameter or literal). For example: c. name LIKE '_r%' is TRUE for 'Brazil' and FALSE for 'Denmark' c. name LIKE '%' is always TRUE (for any c. name value). c. name NOT LIKE '%' is always FALSE (for any c. name value). To match an actual underscore or percent character it has to be preceded by

Auto Generated Values

The sequence strategy consists of two parts - defining a named sequence and using the named sequence ... a sequence and accepts a name , an initial value (the default is 1) and an allocation size (the default ... to the previously defined named sequence: @Entity // Define a sequence - might also be in

JPA Metamodel API

strAttr1 = managedType. getAttribute (" name "); // Get a specific attribute - excluding inherited: Attribute strAttr2 =   managedType. getDeclaredAttribute (" name "); Additional methods are defined ... only one additional method for getting the entity name : String entityName = entityType. getName

Posting Sample Code

{         private String name ;         MyEntity(String name ) {             this. name = name ;         }        

JPA Class Enhancer

. All rights reserved. Usage: java com.objectdb.Enhancer [ | | ] ... - name of a class (without .class ... ; :  path to input user classes -pu :  persistence unit name -s :  include sub directories ... .MyEmbeddable 2 NON persistable types have been enhanced: Main test.Manager You can also specify names

Privacy Policy

information may include, but is not limited to: email address, username, full name , user name , profile picture, profile signature, company name , phone number, billing address, country,  payment ... Service may see Your name , profile, pictures and description of Your activity. Similarly, other users

Running JPA Queries

the country names , a query using projection and retrieving country names directly instead ... = em. createQuery ( "SELECT c FROM Country c WHERE c. name = 'Canada'"); Country c = (Country)query ... . If the database contains multiple Country objects with the name 'Canada' (e.g. due to a bug

Comparison in JPQL and Criteria API

= :min AND x ) Predicate gt1 = cb. greaterThan ( name , nameParam); Predicate gt2 = cb. greaterThan ( name , "India"); Predicate gt3 = cb. gt (area, areaParam); Predicate gt4 = cb. gt (area ... . greaterThanOrEqualTo ( name , nameParam); Predicate ge2 = cb. greaterThanOrEqualTo ( name , "India"); Predicate ge3

JPA Persistence Unit

A persistence unit is defined by a persistence-unit XML element. The required name attribute ( “my-pu ... specify names of managed persistable classes (see below). The property elements specify general ... classes. However, it might be useful to register classes that define generators and named queries (by

Database Management Settings

when the database is closed. The name of the recovery file is based on the name of the database file ... a list of file name extensions that can be used for temporary databases (usually in tests). The content

Apache License, Version 2.0, January 2004

link (or bind by name ) to the interfaces of, the Work and Derivative Works thereof. "Contribution ... such Contributions. 6. Trademarks . This License does not grant permission to use the trade names , trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use

Setting and Tuning of JPA Queries

", 6000); For a  named query definition - using the hints  element: @NamedQuery ( name ="Country.findAll", query ="SELECT c FROM Country c",      hints ={@ QueryHint ( name

JPA Annotations for JPQL Queries

The following annotations are used to define static named JPA queries: The JPA Named Queries section of the ObjectDB Manual explains and demonstrates how to use these annotations to define named JPQL queries.

Step 2: Entity Class and Persistence Unit

Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Next to create the new entity class. In ... name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name

Step 2: Entity Class and Persistence Unit

  Next ). Enter Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Next to create the new ... name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click Finish ... String name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name

Step 2: Define a JPA Entity Class

) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Finish ... @GeneratedValue Long id; private String name ; private Date signingDate; // Constructors: public

Step 4: Add a Controller Class

) and selecting  New Class . The package name should be  guest . Enter  GuestController as the class name - use  exactly that case sensitive class name . Click  Finish to create ... name = request.getParameter(" name "); if ( name != null) guestDao.persist(new Guest( name

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... .http.HttpServletResponse; @WebServlet( name ="GuestServlet", urlPatterns={"/guest"}) public class

Step 4: Add a Servlet Class

; New Other... Web Servlet and clicking  Next . The Java package name should be guest. Enter GuestServlet as the class name - use exactly that case sensitive class name . Click Finish to create ... .http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet( name

Step 4: Add a Servlet Class

  New Other... Web Servlet and clicking  Next . The Java package name should be guest. Enter GuestServlet as the class name - use exactly that case sensitive class name . Click Finish ... a new guest (if any): String name = request.getParameter(" name "); if ( name != null) { em

Step 4: Add a Controller Class

New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class name . The Package should be guest. Click Finish to create the new Spring Controller class. Now ... (HttpServletRequest request) { // Handle a new guest (if any): String name = request.getParameter(" name

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... = emf.createEntityManager(); try { // Handle a new guest (if any): String name = request

Step 5: Add a JSP Page

) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name . The Folder should be WEB-INF (to prevent accessing the JSP directly not through Spring). Click ... content: JPA Guestbook Web Application Tutorial Name : The JSP generates the guestbook page output

Step 2: Define a JPA Entity Class

) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive class name . The package name should be tutorial . Click Finish to create the new class. Use copy

Step 6: Set the Spring XML

(whose name is derived from the name of the Spring dispatcher servlet in  web.xml ). To generate ...   spring-servlet as the File Name . Click  Finish to create the XML file. Now use 

Step 3: Add a Context Listener Class

Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as the class name - use exactly that case sensitive class name . Click Next and then Select

Step 1: Create a Java Project

New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ). The name of the Main class should be tutorial.Main . Verify that exactly this case sensitive fully qualified class name is set (you may use copy & paste). Click the Finish button to create

Step 6: Set the Spring XML

configuration is set in another XML file (whose name is derived from the name of the Spring dispatcher ... -servlet as the File Name . The Folder should be src\main\webapp\WEB-INF. Click Next and then Finish

JDOHelper.getPersistenceManagerFactory(name,resourceLoader,pmfLoader) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   String  name ,    ClassLoader resourceLoader,    ClassLoader pmfLoader ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 2.0

JDOHelper.getPersistenceManagerFactory(overrides,name,resourceLoader) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   Map overrides,    String  name ,    ClassLoader resourceLoader ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 2.1

JDOHelper.getPersistenceManagerFactory(name,loader) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   String  name ,    ClassLoader loader ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 1.0

JDOHelper.getPersistenceManagerFactory(name) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper PersistenceManagerFactory getPersistenceManagerFactory (   String  name ) Returns a named PersistenceManagerFactory or persistence unit. See Also: getPersistenceManagerFactory Since: JDO 2.1

javax.jdo.annotations.Index.name

JDO Annotation Attribute in javax.jdo.annotations.Index String name default "" Name of the index Since: JDO 2.1

javax.jdo.annotations.FetchGroup.name

JDO Annotation Attribute in javax.jdo.annotations.FetchGroup String name default "" Name of the fetch group. Since: JDO 2.1

javax.jdo.annotations.ForeignKey.name

JDO Annotation Attribute in javax.jdo.annotations.ForeignKey String name default "" Name of the foreign key. Since: JDO 2.1

javax.jdo.annotations.FetchPlan.name

JDO Annotation Attribute in javax.jdo.annotations.FetchPlan String name default "" Name of the fetch plan. Since: JDO 2.1

javax.jdo.annotations.Sequence.name

JDO Annotation Attribute in javax.jdo.annotations.Sequence String name default null The symbolic name of the datastore sequence. Since: JDO 2.1

javax.jdo.annotations.DiscriminatorStrategy.CLASS_NAME

JDO Enum Constant in javax.jdo.annotations.DiscriminatorStrategy CLASS_ NAME Since: JDO 2.1

[ODB1] Chapter 8 - ObjectDB Server

configuration file. ObjectDB is shipped with a default server configuration file named default.xml ... com.objectdb.Server -conf config.xml start If you name your configuration file server.xml , you do not ... element. The required name and password attributes specify a username and a password to be used

[ODB1] Chapter 5 - JDO Connections

a Properties instance. Each property consists of two strings, a name that identifies the property ... PersistenceManagerFactory instance. When using ObjectDB, the value should always be "com.objectdb.jdo.PMF" (the name ... .option.ConnectionURL=local.odb Assuming the name of the file is jdo.properties , it can be loaded by

[ODB1] Chapter 7 - JDOQL Queries

class contains a field with the name age and a type comparable to int . This section describes ... to the syntax of parameter declarations in Java. The name of a parameter has to be a valid identifier in Java ... when the query is executed. Class Person must have a persistent field with the name birthDate and type Date

[ODB1] Chapter 3 - Persistent Classes

class for this purpose (images can also be stored as external files, storing only the file names or ... : java com.objectdb.Enhancer [ | | ] ... - class name (without .class suffix) found in the CLASSPATH ... , you can specify class names (e.g. test.X ) and packages (e.g. test.pc.* ): $ java com.objectdb.Enhancer