ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
28

setLockMode(lockMode)

Method javax.persistence.Query Query setLockMode( LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Returns: the same query instance Throws: IllegalStateException - if the query is found not to be a Java Persistence query language SELECT query or a Criteria API query Since: JPA 2.0
28

getResultList()

Method javax.persistence.Query List getResultList() Execute a SELECT query and return the query ... for a Java Persistence query language UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled
28

getSingleResult()

Method javax.persistence.Query Object getSingleResult() Execute a SELECT query that returns ... query language UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back TransactionRequiredException - if a lock
2

newQuery(query)

Method javax.jdo.PersistenceManager Query newQuery( String query ) Create a Construct a new query instance using the specified String as the single-string representation of the query. Parameters: query - the single-string query Returns: the new Query Since: JDO 2.0
2

newQuery(language, query)

Method javax.jdo.PersistenceManager Query newQuery( String language, Object query ) Create a new Query using the specified language. Parameters: language - the language of the query parameter query - the query, which is of a form determined by the language Returns: the new Query Since: JDO 1.0
2

addSubquery(sub, variableDeclaration, candidateCollectionExpression, parameter)

Method javax.jdo.Query void addSubquery( Query sub, String variableDeclaration, String candidateCollectionExpression, String parameter ) Add a subquery to this query. The String version of the method ... . Parameters: sub - the subquery to add to this Query variableDeclaration - the name of the variable
2

addSubquery(sub, variableDeclaration, candidateCollectionExpression)

Method javax.jdo.Query void addSubquery( Query sub, String variableDeclaration, String candidateCollectionExpression ) Add a subquery to this query. Parameters: sub - the subquery to add to this Query variableDeclaration - the name of the variable in the outer query to bind the results
2

setResult(data)

Method javax.jdo.Query void setResult( String data ) Specifies what type of data this query should return. If this is unset or set to null, this query returns instances of the query's candidate class. If set, this query will return expressions, including field values (projections) and aggregate
2

Query.JDOQL

Static Field javax.jdo.Query String JDOQL The string constant used as the first argument to PersistenceManager.newQuery(String,Object) to identify that the created query should obey the JDOQL syntax and semantic rules. This is the default query language used when creating a query with any
2

javax.jdo.annotations.Queries

javax.jdo.annotations Annotation Queries Target: Classes Annotation for a group of named queries. Since: JDO 2.1 Query[] value The named queries The named queries Returns: The named queries 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