Internal Website Search

1-50 of 200 results

Setting and Tuning of JPA Queries

The  Query and  TypedQuery interfaces define various setting and tuning methods ... at the level of a specific query, by overriding the default EntityManager setting : // Enable query ... adds support for pessimistic locking . The setLockMode method sets a lock mode that has to be applied

Entity Management Settings

The configuration element specifies front end settings that are relevant on the client side and in ... The element specifies enhancement related settings : The agent attribute (whose value is "true" or "false ... The element specifies settings of the two cache mechanisms for entities: The ref attribute specifies

Database Management Settings

The configuration element specifies back end (database engine) settings that are relevant ... :    The element The element specifies the database file and page size settings : The initial ... the database. The element specifies the recovery file settings : The enabled attribute (whose value

UPDATE SET Queries in JPA/JPQL

three equivalent queries increase the population size of all the countries by 10%: UPDATE Country SET population = population * 11 / 10 UPDATE Country c SET c.population = c.population * 11 / 10 UPDATE Country AS c SET c.population = c.population * 11 / 10 The UPDATE clause defines exactly one range

General Settings and Logging

The configuration element specifies ObjectDB settings that are relevant to both the server ... , such as query results that contain millions of objects. The element specifies temporary file settings ... the Explorer easier. The element General logging settings are specified in the element: The path

Control and Setting

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets . To create the data set : Open the [New Data Set ] dialog box by right clicking the Data Sets node in the [Data Explorer] window and selecting New Data Set . Select the data source that was created in the previous step (e.g. ObjectDB

Step 6: Set the Spring XML

.DispatcherServlet 2 spring *.html 30 index.jsp The settings above routes web requests with  .html suffix to the Spring dispatcher servlet. Additional spring configuration is set in another XML file ... content: The settings above guides Spring to support annotations (for components, controllers

Step 6: Set the Spring XML

: spring org.springframework.web.servlet.DispatcherServlet 2 spring *.html 30 index.jsp The settings ... configuration is set in another XML file (whose name is derived from the name of the Spring dispatcher ... with the following new content: The settings above guides Spring to support annotations (for components

Database Explorer

the shell file, setting the paths to the objectdb.jar file and to the JVM). Connecting to the Database ... can be specified as a comma separated list of elements. Use the [First] and [Max] fields to set the result ... the following commands: The Edit Set Reference Set to Null command is used to set a reference to null

From.join(set) - JPA Method

JPA Method in javax.persistence.criteria.From SetJoin join (    SetAttribute   set ) Create an inner join to the specified Set -valued attribute. Parameters: set - target of the join Return: the resulting join Since: JPA 2.0

From.join(set,jt) - JPA Method

JPA Method in javax.persistence.criteria.From SetJoin join (    SetAttribute   set ,     JoinType  jt ) Create a join to the specified Set -valued attribute using the given join type. Parameters: set - target of the join jt - join type Return: the resulting join Since: JPA 2.0

javax.persistence.metamodel.PluralAttribute$CollectionType.SET

JPA Enum Constant in javax.persistence.metamodel.PluralAttribute $CollectionType SET Set -valued attribute Since: JPA 2.0

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in javax.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 Return: the modified update query Since: JPA 2.1

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in javax.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 Return: the modified update query Since: JPA 2.1

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    SingularAttribute  attribute,     Expression  value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Return: the modified update query Since: JPA 2.1

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    SingularAttribute  attribute,    X value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Return: the modified update query Since: JPA 2.1

CriteriaUpdate.set(attributeName,value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaUpdate CriteriaUpdate set (   String attributeName,    Object value ) Update the value of the specified attribute. Parameters: attributeName - name of the attribute to be updated value - new value Return: the modified update query Since: JPA 2.1

JDO Annotations for Fetch Settings

All about JDO Annotations for Fetch Settings in Java/JPA database - explanations, examples, references, links and related information.

Query Parameters in JPA

can be executed a parameter value has to be set using the setParameter method. The setParameter ... string. A query can be run only after setting values for all its parameters (no matter in which order ... to JPA, which generally excels in its thin and simple API. There are 9 methods for setting parameters

Shared (L2) Entity Cache

client machines. Setting the Shared Cache The shared (L2) cache is configured in three scopes: Globally ... the cache a positive value has to be specified. Persistence Unit Settings The shared cache ... ;   ...    The  javax.persistence.sharedCache.mode property can be set

JPA Entity Fields

Hibernate) or to change default field settings . For example: @Entity public class EntityWithFieldSettings ... to be thrown on any attempt to store an entity with a null value in that field. Cascade and fetch settings ... ( mappedBy ="department") Set employees; } The mappedBy element (above) specifies that the employees

JPA Metamodel API

. Three methods can be used to retrieve sets of types: // Get all the managed classes: // (entity classes, embeddable classes, mapped super classes) Set allManagedTypes = metamodel. getManagedTypes (); // Get all the entity classes: Set allEntityTypes = metamodel. getEntities (); // Get all the embeddable

BIRT/ODA ObjectDB Driver

and Reporting Tools (BIRT) that adds support of ObjectDB as a data source and JPQL as a data set query ... of the ObjectDB data source. Data Sets and JPQL To create the data set : Open the [New Data Set ] dialog box by right clicking the Data Sets node in the [Data Explorer] window and selecting New Data Set

Locking in JPA

_WRITE - which represents an exclusive lock. Setting a Pessimistic Lock An entity object can be locked ... can be set to allow waiting for a pessimistic lock for a specified number of milliseconds. The hint can be set in several scopes: For the entire persistence unit - using a persistence.xml  

JPA Primary Key

is a sequential 64 bit number ( long ) that is set automatically by ObjectDB for every new entity object ... a primary key field: @Entity public class Project { @Id @GeneratedValue long id; // still set ... generation is discussed in detail in the Generated Values section. Application Set Primary Key

SELECT clause (JPQL / Criteria API)

;provides several ways for setting the SELECT clause. Single Selection Setting a single expression ... ); The select method takes one argument of type Selection  and sets it as the SELECT clause content (overriding previously set SELECT content if any). Every valid criteria API expression

Chapter 6 - Configuration

explicitly by setting the "objectdb.home" system property: System.setProperty("objectdb.home", "/odb"); // new $objectdb As with any other system property it can also be set as an argument to the JVM ... file is loaded from $objectdb/objectdb.conf . You can specify an alternative path by setting

ObjectDB Object Database Features

ObjectDB provides a rich set of features. Many features are implemented as part of ObjectDB's ... to ObjectDB. Persistence is set using JPA/JDO annotations (e.g. @Entity , @Id , @Index ). Transparent ... : java.lang.BigInteger and java.lang.BigDecimal. Collection types : Collection, List, Set , 

Database Replication and Clustering

with the master database. Setting a Master Database A master ObjectDB database is an ordinary database ... has to be enabled, but no other preparations or settings are required. Setting Slave Databases Setting slave

Retrieving JPA Entity Objects

its content, such as when a reference to it has to be set from another entity object. Retrieval by ... the primary key is set but other persistent fields are uninitialized until the object fields are accessed ... an explicit FetchType.EAGER setting : @Entity class Employee { : @ManyToMany ( fetch = FetchType . EAGER

JPA Class Enhancer

should be used (e.g. by using the get and set methods). If you follow this practice only user defined ... server has to be run with the Java agent JVM argument. Setting a Java Agent Enhancer in the IDE In Eclipse JVM arguments can be set globally at: Window Preferences Java Installed JREs Edit Default VM

WHERE clause (JPQL / Criteria API)

that exceeds a specified limit and also have an official language from a specified set of languages ... two where methods for setting the WHERE clause. Single Restriction The first where method takes one Expression argument and uses it as the WHERE clause content (overriding previously set WHERE content

Eclipse Public License - v 1.0

that although each Contributor grants the licenses to its Contributions set forth herein, no assurances ... the copyright license set forth in this Agreement. 3. REQUIREMENTS A Contributor may choose ... Contributor must pay those damages. 5. NO WARRANTY EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT

Deleting JPA Entity Objects

. Due to the CascadeType.REMOVE setting , when an Employee instance is removed the operation is automatically ... =true is specified, CascadeType.REMOVE is redundant. The difference between the two settings is in the response to disconnecting a relationship. For example, such as when setting the address field

Comparison in JPQL and Criteria API

ObjectDB supports two sets of comparison operators, as shown in the following table:   Set 1 - 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

JPA Criteria API Queries

are represented by a TypedQuery instance - query execution  and query setting  is similar ... . The where method sets the WHERE clause. As shown above, The CriteriaQuery interface supports method chaining. See the links in the next sections of this page for detailed explanations on how to set

GROUP BY and HAVING clauses

and HAVING in Criteria Queries The CriteriaQuery interface provides methods for setting the GROUP BY ... another form of groupBy ). Setting a HAVING clause is very similar to setting a WHERE clause . As ... (and uses an AND conjunction). When a  groupBy or a  having method is invoked, previously set values (if any) are discarded.

Storing JPA Entity Objects

object or alternatively by setting automatic cascading persist. Cascading Persist Marking a reference ... , which is another entity class. Due to the CascadeType.PERSIST   setting , when an Employee instance ... reference field, it can be specified globally for any persistent reference, either by setting

JPA Persistable Types

can be set explicitly by using the name attribute of the Entity annotation: @Entity ( name ="MyName ... share the same class name, explicit entity name setting is required to avoid clashes. Mapped ... .e. java.util.Collection , java.util.List , java.util. Set , java.util.Map ), and that is also a good

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and in JPA criteria queries enable composition of complex JPQL boolean expressions out of simple JPQL boolean expressions. Logical Operators ObjectDB supports 2 sets of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR

[ODB1] Chapter 9 - ObjectDB Explorer

the content of a database. Section 9.5 explains how to define views and set other options ... a multi line string. Use the " Set Reference" command to set a reference field to a new object ... . Deleting a reference field sets the value to null without deleting any referenced persistent object

Spring MVC JPA Tutorial - IntelliJ Project

the Server: Select  File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat ... +F10 ). If the browser fails to open check the settings at  File Settings Web Browsers .

Step 6: Design a BIRT Report Table

) layout. Set the column number to 2 , number of details to 1 , select the data set (e.g. Points by X ... the data set in the [Data Explorer] window (under the data set node) and dropping them on the second

JPA Web App Tutorial - IntelliJ Project

: Select File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat ... at the toolbar and click the green run icon (or Shift+F10 ). If the browser fails to open check the settings at File Settings Web Browsers .

Java EE 6 JPA Tutorial - IntelliJ Project

directory and click  OK . Define the Server: Select  File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat has to be downloaded separately). Define Run Configuration ... and click the green run icon (or  Shift+F10 ). If the browser fails to open check the settings at  File Settings Web Browsers .

javax.jdo.spi.JDOPermission.SET_STATE_MANAGER

JDO Static Field in javax.jdo.spi.JDOPermission SET _STATE_MANAGER An instance of JDOPermission to be used for setStateManager permission checking. Since: JDO 1.0

[ODB1] Chapter 8 - ObjectDB Server

), but you can override this setting using the –port command line option to specify another port, as shown ... with two sub elements, and . The sub element specifies general server settings , and the sub element ... for new connections. Usually, it should be set to 6136, which is the default port of ObjectDB. If a port

[ODB1] Chapter 5 - JDO Connections

of the database requires an active transaction. The focus of this chapter is on setting up a runtime ... that identifies the property, and a value for that property. The two properties that are set in the code ... five flags that can be set or cleared. All these optional modes are supported by ObjectDB. Flags

[ODB1] Chapter 3 - Persistent Classes

and Hashtable , and the interfaces - Collection , Set , List and Map . java.math.BigInteger and java.math ... value. Similarly, a field whose type is one of the persistent collection interfaces ( Collection , Set ... the command line. First, the classpath has to be set to include ObjectDB and JDO jar files