ObjectDB Database Search
1-50 of 200 resultsQuery Parameters in JPA
Query parameters enable you to define reusable queries. You can execute these queries with different parameter values to retrieve different results. Executing the same query multiple times with different parameter values is more efficient than using a new query string for each execution
|
|
jakarta.persistence.TypedQuery.setParameter(Parameter,Date,TemporalType)
; Parameter param , Date value , TemporalType temporalType ) Bind an instance of Date to a Parameter object. Parameters : temporalType - temporal type param - parameter object value - parameter value Returns: the same query instance. Throws: IllegalArgumentException
|
|
jakarta.persistence.TypedQuery.setParameter(Parameter,T)
; Parameter param , T value ) Bind the value of a Parameter object. Parameters : param - parameter object value - parameter value Returns: the same query instance. Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.TypedQuery.setParameter(Parameter,Calendar,TemporalType)
; Parameter param , Calendar value , TemporalType temporalType ) Bind an instance of Calendar to a Parameter object. Parameters : temporalType - temporal type param - parameter object value - parameter value Returns: the same query instance. Throws
|
|
jakarta.persistence.StoredProcedureQuery.setParameter(Parameter,Date,TemporalType)
setParameter ( Parameter param , Date value , TemporalType temporalType ) Bind an instance of Date to a Parameter object. Parameters : temporalType - temporal type param - parameter object value - parameter value Returns: the same query instance. Throws
|
|
jakarta.persistence.criteria.CriteriaBuilder.parameter(Class,String)
ParameterExpression parameter ( Class paramClass , String name ) Create a parameter expression with the given name. Parameters : name - name that can be used to refer to the parameter paramClass - parameter class Returns: parameter expression. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.Parameter.getPosition()
Jakarta Persistence (JPA) Method in jakarta.persistence. Parameter Integer getPosition() Return the parameter position, or null if the parameter is not a positional parameter . Returns: position of parameter . Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.Parameter.getParameterType()
Jakarta Persistence (JPA) Method in jakarta.persistence. Parameter Class getParameterType() Return the Java type of the parameter . Values bound to the parameter must be assignable to this type ... : the Java type of the parameter . Throws: IllegalStateException - if invoked on a parameter obtained from
|
|
jakarta.persistence.Parameter.getName()
Jakarta Persistence (JPA) Method in jakarta.persistence. Parameter String getName() Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned. Returns: parameter name. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.criteria.CriteriaBuilder.parameter(Class)
Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder ParameterExpression parameter ( Class paramClass ) Create a parameter expression. Parameters : paramClass - parameter class Returns: parameter expression. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.NamedStoredProcedureQuery.parameters
Jakarta Persistence (JPA) Method in jakarta.persistence.NamedStoredProcedureQuery StoredProcedureParameter[] parameters Information about all parameters of the stored procedure. Parameters must be specified in the order in which they occur in the parameter list of the stored procedure. Default: {} Since: Jakarta Persistence (JPA) 1.0
|
|
Entity object parameter in Explorer parameter
Hello, I cannot set an entity object in a parameter for a bulk update in the explorer query execution. The format Entity#001 works well for the parameter in the WHERE clause, but it doesn't work in ... Parameters : a: Status#10002 b: Status#10003 That query
|
|
jakarta.persistence.criteria.CriteriaBuilder
an expression that returns the absolute value of its argument. Parameters : x - expression Returns ... an all expression over the subquery results. Parameters : subquery - subquery Returns: all expression ... of the given boolean expressions. Parameters : x - boolean expression y - boolean expression Returns
|
|
jakarta.persistence.TypedQuery
Jakarta Persistence (JPA) Interface jakarta.persistence.TypedQuery Type Parameters : - query result ... . See Also: Query Parameter Since: Jakarta Persistence (JPA) 2.0 Chapter 4 - JPA Queries (JPQL / Criteria ... Parameter getParameter ( String name ) Get the parameter object corresponding to the declared parameter
|
|
Collections in JPQL and Criteria Queries
Collections can appear in JPQL queries in the following ways: As parameters when a collection ... to check other collections, such as a collection passed as a query parameter . For example: 'English' IN :languages evaluates to TRUE if the languages parameter collection contains 'English' , and FALSE
|
|
JPA Connections and Transactions
of persistence unit properties as a second parameter : Map properties = new HashMap (); properties ... of the database file on the server, relative to the server data root path. Connection URL Parameters The following parameters are supported as part of an ObjectDB connection URL: user : Specifies
|
|
jakarta.persistence.EntityManager
, the persistence provider must mark the transaction for rollback. Parameters : function - the function Returns ... to the current persistence context. Parameters : entity - entity instance Returns: boolean value indicating ... mutable EntityGraph , allowing dynamic definition of an entity graph. Parameters : rootType - class
|
|
jakarta.persistence.criteria.PluralJoin
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.PluralJoin Type Parameters ... reassigned. Returns the same selection item. Inherited from Selection Parameters : name - alias ... failure. Inherited from Expression Parameters : type - intended type of the expression Returns: new
|
|
jakarta.persistence.criteria.MapJoin
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.MapJoin Type Parameters ... Parameters : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as ... : may result in a runtime failure. Inherited from Expression Parameters : type - intended type
|
|
jakarta.persistence.criteria.SetJoin
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.SetJoin Type Parameters ... reassigned. Returns the same selection item. Inherited from Selection Parameters : name - alias Returns ... . Inherited from Expression Parameters : type - intended type of the expression Returns: new expression
|
|
jakarta.persistence.criteria.CollectionJoin
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CollectionJoin Type Parameters ... Parameters : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as ( Class ... : may result in a runtime failure. Inherited from Expression Parameters : type - intended type
|
|
jakarta.persistence.criteria.ListJoin
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.ListJoin Type Parameters ... reassigned. Returns the same selection item. Inherited from Selection Parameters : name - alias Returns ... . Inherited from Expression Parameters : type - intended type of the expression Returns: new
|
|
jakarta.persistence.criteria.Join
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Join Type Parameters ... Selection Parameters : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression ... . Warning: may result in a runtime failure. Inherited from Expression Parameters : type - intended type
|
|
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.Root
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Root Type Parameters ... Selection Parameters : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 ... . Warning: may result in a runtime failure. Inherited from Expression Parameters : type - intended type
|
|
jakarta.persistence.criteria.From
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.From Type Parameters ... the same selection item. Inherited from Selection Parameters : name - alias Returns: selection item ... Expression Parameters : type - intended type of the expression Returns: new expression of the given
|
|
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 = country. get ("population"); Expression param = cb. parameter (Integer.class); // Addition
|
|
jakarta.persistence.criteria.Subquery
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Subquery Type Parameters ... Parameters : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression ... . Warning: may result in a runtime failure. Inherited from Expression Parameters : type - intended type
|
|
jakarta.persistence.criteria.ParameterExpression
Parameters : - the type of the parameter expression Super Interfaces: Parameter , Expression , Selection , TupleElement Type of criteria query parameter expressions. Since: Jakarta Persistence (JPA) 2.0 Public ... Selection Parameters : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0
|
|
jakarta.persistence.EntityGraph
Jakarta Persistence (JPA) Interface jakarta.persistence.EntityGraph Type Parameters : - The type ... if there is no existing node. Inherited from Graph Parameters : attributeName - name of the attribute ... . Inherited from Graph Parameters : attribute - attribute Returns: the attribute node. Throws
|
|
jakarta.persistence.metamodel.IdentifiableType
Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.IdentifiableType Type Parameters ... of the managed type that corresponds to the specified name. Inherited from ManagedType Parameters ... ManagedType Parameters : name - the name of the represented attribute elementType - the element type
|
|
jakarta.persistence.metamodel.EntityType
Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.EntityType Type Parameters ... that corresponds to the specified name. Inherited from ManagedType Parameters : name - the name ... . Inherited from ManagedType Parameters : name - the name of the represented attribute elementType
|
|
jakarta.persistence.metamodel.MappedSuperclassType
Parameters : - The represented mapped superclass type Super Interfaces: IdentifiableType , ManagedType ... Parameters : name - the name of the represented attribute Returns: attribute with given name. Throws ... ManagedType Parameters : name - the name of the represented attribute elementType - the element type
|
|
jakarta.persistence.Graph
. Parameters : attributeName - name of the attribute Returns: the attribute node. Throws ... attribute node if there is no existing node. Parameters : attribute - attribute Returns: the attribute ... , that particular argument is ignored and has no effect. Parameters : attributeName - name
|
|
JPA Criteria Query Expressions
predicate ├─ Path # Navigation path (attributes) ├─ ParameterExpression # Query parameter ... of a query parameter used for binding runtime values. Advanced expressions Additional interfaces
|
|
Literals in JPQL and Criteria Queries
type literals (for example, Country ). Use JPQL literals sparingly. Queries that use parameters ... times with different parameter values. Embed literals in JPQL queries only when a single, constant
|
|
WHERE clause (JPQL / Criteria API)
retrieves only countries with a population greater than the value of the parameter p : SELECT c ... . select (c); ParameterExpression p = cb. parameter (Integer.class); q. where (cb. gt (c
|
|
jakarta.persistence.metamodel.ManagedType
Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.ManagedType Type Parameters ... to the specified name. Parameters : name - the name of the represented attribute Returns: attribute ... of the managed type that corresponds to the specified name and Java element type. Parameters : name
|
|
jakarta.persistence.metamodel.EmbeddableType
Jakarta Persistence (JPA) Interface jakarta.persistence.metamodel.EmbeddableType Type Parameters ... to the specified name. Inherited from ManagedType Parameters : name - the name of the represented attribute ... to the specified name and Java element type. Inherited from ManagedType Parameters : name - the name
|
|
jakarta.persistence.criteria.CriteriaQuery
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CriteriaQuery Type Parameters ... AbstractQuery.distinct Parameters : distinct - boolean value specifying whether duplicate results ... from AbstractQuery Parameters : entityClass - the entity class Returns: query root corresponding
|
|
jakarta.persistence.criteria.AbstractQuery
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.AbstractQuery Type Parameters ... . Parameters : distinct - boolean value specifying whether duplicate results must be eliminated from ... to the given entity, forming a cartesian product with any existing roots. Parameters : entityClass - the entity
|
|
jakarta.persistence.criteria.CriteriaBuilder.SimpleCase
reassigned. Returns the same selection item. Inherited from Selection Parameters : name - alias Returns ... . Inherited from Expression Parameters : type - intended type of the expression Returns: new ... Parameters : type - a basic type Returns: a scalar expression of the given basic type. Since: Jakarta
|
|
jakarta.persistence.criteria.Path
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Path Type Parameters : - the type ... . Inherited from Selection Parameters : name - alias Returns: selection item. Since: Jakarta Persistence ... is not changed. Warning: may result in a runtime failure. Inherited from Expression Parameters : type
|
|
jakarta.persistence.criteria.CriteriaBuilder.Case
reassigned. Returns the same selection item. Inherited from Selection Parameters : name - alias Returns ... . Inherited from Expression Parameters : type - intended type of the expression Returns: new expression ... Parameters : type - a basic type Returns: a scalar expression of the given basic type. Since: Jakarta
|
|
jakarta.persistence.criteria.CriteriaUpdate
Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.CriteriaUpdate Type Parameters ... that is being updated. Parameters : entityClass - the entity class Returns: query root corresponding to the given entity ... root, the entity that is being updated. Parameters : entity - metamodel entity representing the entity
|
|
jakarta.persistence.criteria.CriteriaBuilder.In
cannot be changed or reassigned. Returns the same selection item. Inherited from Selection Parameters ... : may result in a runtime failure. Inherited from Expression Parameters : type - intended type of the expression ... . Inherited from Expression Parameters : type - a basic type Returns: a scalar expression of the given basic
|
|
jakarta.persistence.criteria.CriteriaBuilder.Coalesce
. Returns the same selection item. Inherited from Selection Parameters : name - alias Returns ... . Inherited from Expression Parameters : type - intended type of the expression Returns: new expression ... . Support for typecasts between other basic types is not required. Inherited from Expression Parameters
|
|
date parameter not working (probably) in explorer
.classIdentifier = '(PR)' and o.created ?1 we try to set the parameter (its a java.util.Date) in the parameters table. None of the following works: 2020-12-01 2020.12.01 {d '2020-12-01'} the parameter ... '. A workaround for previous versions is to use a date literal (embedded in the query) instead of a date parameter . support Support
|
|
[ODB1] Chapter 8 - ObjectDB Server
configuration file. You can use the –conf command line parameter to specify the location of your server ... , you do not need to use the –conf command line parameter , because ObjectDB will automatically look for a server/server.xml file if the –conf parameter is not used. Also, if you do not use the –conf parameter
|
|
[ODB1] Chapter 6 - Persistent Objects
for representing objects in web applications (in which parameters are represented by strings). If getObjectID( ... ) is called with a transient parameter , it returns null . If it is called with a new
|