ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh
110

Fields in objects not populated in query result.

the same query from the Explorer gives the results as expected. Any ideas what I'm doing wrong
108

String Contains Query Result - Possible?

Lessons 10-Pack I would like to know if it is possible to have a query return the "Program" object
22

setMaxResults(maxResult)

Method javax.persistence.Query Query setMaxResults( int maxResult ) Set the maximum number of results to retrieve. Parameters: maxResult - maximum number of results to retrieve Returns: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0
22

setFirstResult(startPosition)

Method javax.persistence.Query Query setFirstResult( int startPosition ) Set the position of the first result to retrieve. Parameters: startPosition - position of the first result, numbered from 0 Returns: the same query instance Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0
22

getMaxResults()

Method javax.persistence.Query int getMaxResults() The maximum number of results the query object was set to retrieve. Returns Integer.MAX_VALUE if setMaxResults was not applied to the query object. Returns: maximum number of results Since: JPA 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

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
2

Query.resultClass

Annotation Element javax.jdo.annotations.Query Class resultClass Result class into which to put the results. Returns: the class of the result Default value: void.class Since: JDO 2.1
2

setClass(cls)

Method javax.jdo.Query void setClass( Class cls ) Set the class of the candidate instances of the query. The class specifies the class of the candidates of the query. Elements of the candidate collection that are of the specified class are filtered before being put into the result Collection
2

setOrdering(ordering)

Method javax.jdo.Query void setOrdering( String ordering ) Set the ordering specification for the result Collection. The ordering specification is a String containing one or more ordering ... the results followed by one of the following words: "ascending" or "descending". The field must be declared

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