Internal Website Search

1-50 of 200 results

Auto Generated Values

Marking a field with the @GeneratedValue annotation specifies that a value will be automatically ... also supports this annotation for non-key numeric persistent fields as well. Several different value generation ... number generator is also used to generate numeric values for primary key fields annotated by

JPA Annotations for Value Generation

Automatically generated values are mainly useful for primary key fields, but are supported by ... can also reference a value generator, which is defined at the class level by using one of the following annotations: More details about automatic value generation are provided at the Generated Value section of the ObjectDB Manual.

Comparison in JPQL and Criteria API

. Besides the different notation, there is also a difference in the way that NULL values are handled by these operators. Comparing NULL values The following table shows how NULL values are handled by each comparison operator. One column presents a comparison of NULL value with a non NULL value

In.value(value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder$In CriteriaBuilder.In value (   T  value ) Add to list of values to be tested against. Parameters: value - value Return: in predicate Since: JPA 2.0

In.value(value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder$In CriteriaBuilder.In value (    Expression   value ) Add to list of values to be tested against. Parameters: value - expression Return: in predicate Since: JPA 2.0

Coalesce.value(value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder$Coalesce CriteriaBuilder.Coalesce value (   T  value ) Add an argument to the coalesce expression. Parameters: value - value Return: coalesce expression Since: JPA 2.0

Coalesce.value(value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder$Coalesce CriteriaBuilder.Coalesce value (    Expression   value ) Add an argument to the coalesce expression. Parameters: value - expression Return: coalesce expression Since: JPA 2.0

Numbers in JPQL and Criteria Queries

Numeric values may appear in JPQL queries in many forms: as  numeric literals - e.g. 123 , -12.5 . as parameters - when numeric values are assigned as arguments. as  path expressions - in ... functions - when the return value is numeric, e.g. INDEX, SIZE. as string functions - when the return

GROUP BY and HAVING clauses

: The properties that are used for grouping (each group has a unique value combination). Aggregate calculations ... of SQL: COUNT - returns a long value representing the number of elements. SUM - returns the sum of numeric values . AVG - returns the average of numeric values as a double value . MIN - returns the minimum

JPA Persistable Types

, Date and Math types. Multi value types - Collections, Maps and Arrays. Miscellaneous types: Enum ... classes that function as value types. As with other non entity types, instances of an embeddable ... Value Types The following multi value types are persistable: Collection types from package java.util

Query Parameters in JPA

with different parameter values to retrieve different results. Running the same query multiple times with different parameter values (arguments) is more efficient than using a new query string for every query ... ). getSingleResult (); } The WHERE clause reduces the query results to Country objects whose name field value

JPA Primary Key

keys and automatic sequential value generation . This is a very powerful feature of ObjectDB ... and its primary key. Primary key values are unique per entity class. Instances of different entity classes, however, may share the same primary key value . Only entity objects have primary keys

JPA Entity Fields

that do not participate in persistence and their values are never stored in the database (similar ... the database every persistent field must contain either null or a value of one of the supported ... a generic java.lang.Object , as long as the type of the actual value at runtime is persistable (or null

Index Definition

that prevents duplicate values in the indexed field. A PersistenceException is thrown on commit (or flush) if different entities have the same value in a unique field (similar to how primary keys behave ... every indexed field must contain either null or a value of one of the following persistable types

javax.persistence.DiscriminatorValue.value

JPA Annotation Attribute in javax.persistence.DiscriminatorValue String value default null (Optional) The value that indicates that the row is an entity of the annotated entity type ... function will be used to generate a value representing the entity type. If the DiscriminatorType

Query.setParameter(name,value,temporalType) - JPA Method

;   Calendar  value ,     TemporalType  temporalType ) Bind an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

Query.setParameter(name,value) - JPA Method

JPA Method in javax.persistence.Query Query setParameter (   String name,    Object  value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Return: the same query instance Throws: IllegalArgumentException

Query.setParameter(position,value,temporalType) - JPA Method

;   Date  value ,     TemporalType  temporalType ) Bind an instance of java.util.Date to a positional parameter. Parameters: position - position value - parameter value ... - if position does not correspond to a positional parameter of the query or if the value argument is of incorrect type Since: JPA 1.0

Query.setParameter(position,value,temporalType) - JPA Method

;   Calendar  value ,     TemporalType  temporalType ) Bind an instance of java.util.Calendar to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

Query.setParameter(name,value,temporalType) - JPA Method

;   Date  value ,     TemporalType  temporalType ) Bind an instance of java.util.Date to a named parameter. Parameters: name - parameter name value - parameter value ... - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 1.0

Query.setParameter(position,value) - JPA Method

JPA Method in javax.persistence.Query Query setParameter (   int position,    Object  value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Return: the same query instance Throws: IllegalArgumentException

Query.setParameter(param,value) - JPA Method

JPA Method in javax.persistence.Query Query setParameter (    Parameter  param,    T  value ) Bind the value of a Parameter object. Parameters: param - parameter object value - parameter value Return: the same query instance Throws: IllegalArgumentException

TypedQuery.setParameter(name,value) - JPA Method

JPA Method in javax.persistence.TypedQuery TypedQuery setParameter (   String name,    Object  value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Return: the same query instance Throws

TypedQuery.setParameter(param,value) - JPA Method

JPA Method in javax.persistence.TypedQuery TypedQuery setParameter (    Parameter  param,    T  value ) Bind the value of a Parameter object. Parameters: param - parameter object value - parameter value Return: the same query instance Throws

javax.persistence.ForeignKey.value

JPA Annotation Attribute in javax.persistence.ForeignKey ConstraintMode value default CONSTRAINT ... generation is in effect. A value of CONSTRAINT will cause the persistence provider to generate a foreign key ... ) to which the foreign key annotation is applied. A value of NO_CONSTRAINT will result in no constraint

StoredProcedureQuery.setParameter(position,value) - JPA Method

JPA Method in javax.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (   int position,    Object  value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Return: the same query instance

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

; int position,    Calendar  value ,     TemporalType   ... - position value - parameter value temporalType - temporal type Return: the same query instance ... of the query or if the value argument is of incorrect type Since: JPA 2.1

StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method

; String name,    Date  value ,     TemporalType   ... value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 2.1

StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method

; String name,    Calendar  value ,     TemporalType   ... - parameter name value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 2.1

StoredProcedureQuery.setParameter(name,value) - JPA Method

JPA Method in javax.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (   String name,    Object  value ) Bind an argument value to a named parameter. Parameters: name - parameter name value - parameter value Return: the same query instance Throws

CriteriaBuilder.literal(value) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression literal (   T  value ) Create an expression for a literal. Parameters: value - value represented by the expression Return: expression literal Throws: IllegalArgumentException - if value is null 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

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

; int position,    Date  value ,     TemporalType   ... - position value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument is of incorrect type 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

TypedQuery.setParameter(position,value,temporalType) - JPA Method

,    Calendar  value ,     TemporalType  temporalType ) Bind an instance of java.util.Calendar to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Return: the same query instance Throws

TypedQuery.setParameter(position,value,temporalType) - JPA Method

,    Date  value ,     TemporalType  temporalType ) Bind an instance of java.util.Date to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Return: the same query instance Throws

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

StoredProcedureQuery.setParameter(param,value) - JPA Method

JPA Method in javax.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    Parameter  param,    T  value ) Bind the value of a Parameter object. Parameters: param - parameter object value - parameter value Return: the same query instance Throws

TypedQuery.setParameter(position,value) - JPA Method

JPA Method in javax.persistence.TypedQuery TypedQuery setParameter (   int position,    Object  value ) Bind an argument value to a positional parameter. Parameters: position - position value - parameter value Return: the same query instance Throws

TypedQuery.setParameter(name,value,temporalType) - JPA Method

,    Date  value ,     TemporalType  temporalType ) Bind an instance of java.util.Date to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

TypedQuery.setParameter(name,value,temporalType) - JPA Method

,    Calendar  value ,     TemporalType  temporalType ) Bind an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Return: the same query instance Throws

Query.setParameter(param,value,temporalType) - JPA Method

,    Date  value ,     TemporalType  temporalType ) Bind an instance of java.util.Date to a Parameter object. Parameters: param - parameter object value - parameter value temporalType - temporal type Return: the same query instance Throws: IllegalArgumentException

[ODB1] Chapter 4 - JDO Metadata

attribute makes it possible to change the default. Specifying a persistent value , as demonstrated by field ... at runtime only values of persistent types. Specifying a none value , as demonstrated by field f1 , changes ... transactional , like f2 above, has similar behavior to transient because its value is never stored in

[ODB1] Chapter 5 - JDO Connections

that identifies the property, and a value for that property. The two properties that are set in the code ... of the constructed PersistenceManagerFactory instance. When using ObjectDB, the value should always be "com ... values in ObjectDB (but not in JDO, which does not specify a default). Opposite values

[ODB1] Chapter 8 - ObjectDB Server

how often (in seconds) the server checks the configuration file for changes. For instance, a value ... specify a value of "0" for the reload attribute. In this case the server has to be restarted manually ... above, there is no point to specifying different values for the max and user-max attributes (if different values

javax.jdo.annotations.Value

JDO Annotation Value Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the value of a map relation. Corresponds to the xml element " value ". Since: JDO 2.1 Public Annotation Attributes String column default "" Name of the column to store the value in

[ODB1] Chapter 7 - JDOQL Queries

if the field exists but its type cannot be compared with an int value , a JDOUserException is thrown ... more generic. Parameter values are provided when the query is executed so that the same query can be executed with different parameter values . The 'this' Keyword During query evaluation, each object in

Query.addExtension(key,value) - JDO Method

JDO Method in javax.jdo.Query void addExtension (   String key,    Object  value ) Add a vendor-specific extension to this query. The key and value are not standard ... of the extension value - the value of the extension Since: JDO 2.0