ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh
149

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 updates all accounts with status Status#10003
108

Object as parameter results in exception

is valid since objects such as a Company instance are expected to be passed to the query as parameters. Maybe EclipseLink defines an implicit parameter to resolve this query, and maybe this is what ObjectDB should do. Using a parameter is also recommended for the primary key. In the current form
64

getPosition()

Method javax.persistence.Parameter Integer getPosition() Return the parameter position, or null if the parameter is not a positional parameter. Returns: position of parameter Since: JPA 2.0
64

getParameterType()

Method javax.persistence.Parameter Class<T> getParameterType() Return the Java type of the parameter. Values bound to the parameter must be assignable to this type. This method is required ... language queries and native queries will not be portable. Returns: the Java type of the parameter Throws
64

getName()

Method javax.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: JPA 2.0
33

JPA Query API

Describes the API that JPA provides for running queries against the database.
21

date parameter not working (probably) in explorer

)' 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 is just ignored hgzwicker ... is to use a date literal (embedded in the query) instead of a date parameter. support Support
6

deletePersistentAll(parameters)

Method javax.jdo.Query long deletePersistentAll( Map parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters: parameters - for the query Returns: the number of instances of the candidate class that were deleted Since: JDO 2.0 See Also: deletePersistentAll()
6

deletePersistentAll(parameters)

Method javax.jdo.Query long deletePersistentAll( Object... parameters ) Deletes all the instances of the candidate class that pass the filter. Parameters: parameters - for the query Returns: the number of instances of the candidate class that were deleted Since: JDO 2.0 See Also: deletePersistentAll()
2

[ODB1] Chapter 7 - JDOQL Queries

other optional components, such as parameters, variables and import and order expressions ... all the elements that can be used in a JDOQL query filter, except for parameters and variables ... 7.3), parameters could be used instead of constant literals to make queries more generic. Parameter

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support