ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh
27

setParameter(param, value, temporalType)

Method javax.persistence.Query Query setParameter( Parameter<Calendar> param, Calendar value ... : param - parameter object value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query Since: JPA 2.0
27

getFirstResult()

Method javax.persistence.Query int getFirstResult() The position of the first result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Returns: position of the first result Since: JPA 2.0 Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual.
27

setParameter(param, value, temporalType)

Method javax.persistence.Query Query setParameter( Parameter<Date> param, Date value, TemporalType ... - parameter object value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if the parameter does not correspond to a parameter of the query Since: JPA 2.0
2

getFetchPlan()

Method javax.jdo.Query FetchPlan getFetchPlan() Returns the FetchPlan used by this Query. Modifications of the returned fetch plan will not cause this query's owning PersistenceManager's FetchPlan to be modified. Returns: the fetch plan used by this query Since: JDO 2.0
2

setUnique(unique)

Method javax.jdo.Query void setUnique( boolean unique ) Specify that only the first result of the query should be returned, rather than a collection. The execute method will return null if the query result size is 0. Parameters: unique - if true, only one element is returned Since: JDO 2.0
2

setResultClass(cls)

Method javax.jdo.Query void setResultClass( Class cls ) Specify the type of object in ... or set to null, the result class defaults to the candidate class of the query. If the result consists ... argument is the value from the query result. Portable result classes do not invoke any persistence
2

Query.value

Annotation Element javax.jdo.annotations.Query String value The query string (mandatory) Returns: the query string Since: JDO 2.1
2

Query.unmodifiable

Annotation Element javax.jdo.annotations.Query String unmodifiable Whether the query is unmodifiable. Returns: whether the query is unmodifiable Default value: "" Since: JDO 2.1
2

setRange(fromInclToExcl)

Method javax.jdo.Query void setRange( String fromInclToExcl ) Set the range of results to return ... , :to");. The execution of the query is modified to return only a subset of results. If the filter would normally return ... are ignored. An implementation should execute the query such that the range algorithm
2

Query.unique

Annotation Element javax.jdo.annotations.Query String unique Whether the query returns a single unique result. Returns: whether the query returns a single unique result Default value: "" Since: JDO 2.1

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