Fast Object Database for Java - with JPA/JDO support

Internal Website Search

51-60 of 200 resultsRefresh
30

getParameters()

Method javax.persistence.Query Set> getParameters() Get the parameter objects corresponding to the declared parameters of the query. Returns empty set if the query has no parameters. This method is not required to be supported for native queries. Returns: set of the parameter objects
30

CRUD Database Operations with JPA

persisting objects in the database in more detail. JPA Queries with JPQL We can get the number of Point objects in the database by using a simple query: Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p"); System.out.println("Total Points: " + q1.getSingleResult()); The query string ("SELECT
30

setParameter(param, value)

Method javax.persistence.Query Query setParameter( 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: JPA 2.0
30

Queries.value

Annotation Element javax.jdo.annotations.Queries Query[] value The named queries Returns: The named queries Since: JDO 2.1
30

setParameter(position, value, temporalType)

Method javax.persistence.Query Query setParameter( int position, Calendar value, TemporalType ... - position value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query
30

setParameter(position, value, temporalType)

Method javax.persistence.Query Query setParameter( int position, Date value, TemporalType ... value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the value argument is of incorrect type Since: JPA 1.0
30

setParameter(position, value)

Method javax.persistence.Query Query setParameter( int position, Object value ) Bind an argument ... query instance Throws: IllegalArgumentException - if position does not correspond to a positional parameter of the query or if the argument is of incorrect type Since: JPA 1.0
30

getParameter(position, type)

Method javax.persistence.Query Parameter getParameter( int position, Class type ) Get the parameter object corresponding to the declared positional parameter with the given position and type ... on a native query or Java Persistence query language query when the implementation does not support this use Since: JPA 2.0
30

setParameter(name, value, temporalType)

Method javax.persistence.Query Query setParameter( String name, Calendar value, TemporalType ... name value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 1.0
30

setParameter(name, value, temporalType)

Method javax.persistence.Query Query setParameter( String name, Date value, TemporalType ... value - parameter value temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type Since: JPA 1.0

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