ObjectDB ObjectDB

Internal Website Search

11-20 of 107 resultsRefresh
69

setParameter(name, value)

Method javax.persistence.Query Query setParameter( String name, Object value ) Bind an argument to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond
69

setParameter(name, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( String name, Calendar value, TemporalType temporalType ) Bind an instance of java.util.Calendar to a named parameter. Parameters: name - parameter name value - parameter value temporalType - temporal type Returns: the same query
69

setParameter(name, value)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( String name, Object value ) Bind an argument to a named parameter. Parameters: name - parameter name value - parameter value Returns: the same query instance Throws: IllegalArgumentException - if the parameter name does not correspond
69

setParameter(param, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( Parameter<Calendar> param, Calendar value, TemporalType temporalType ) Bind an instance of java.util.Calendar to a Parameter object. Parameters: param - parameter object value - parameter value temporalType - temporal type Returns
69

setParameter(param, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( Parameter<Date> param, Date value, TemporalType temporalType ) Bind an instance of java.util.Date to a Parameter object. Parameters: param - parameter object value - parameter value temporalType - temporal type Returns: the same query
69

setParameter(param, value)

Method javax.persistence.TypedQuery TypedQuery<X> setParameter( Parameter<T> 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
69

setParameter(param, value, temporalType)

Method javax.persistence.Query Query setParameter( Parameter<Calendar> param, Calendar value, TemporalType temporalType ) Bind an instance of java.util.Calendar to a Parameter object. Parameters: param - parameter object value - parameter value temporalType - temporal type Returns: the same query
69

setParameter(param, value, temporalType)

Method javax.persistence.Query Query setParameter( Parameter<Date> param, Date value, TemporalType temporalType ) Bind an instance of java.util.Date to a Parameter object. Parameters: param - parameter object value - parameter value temporalType - temporal type Returns: the same query instance
68

Query Parameters in JPA

( "SELECT c FROM Country c WHERE c.name = :name", Country.class); return query.setParameter ... for a real value. Before the query can be executed a parameter value has to be set using the setParameter method. The setParameter method supports method chaining (by returning the same TypedQuery instance
19

JPA Criteria API Queries

the parameter: TypedQuery<Country> query = em.createQuery(q); query.setParameter(p, 10000000); List<Country> results = query.getResultList(); The setParameter method takes a Parameter (or

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