About setParameter

21-30 of 98Refresh
Manual
21

JPA Criteria API Queries

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

Online Backup

");     backupQuery.setParameter("target", new java.io.File("c:\\backup"));     backupQuery.getSingleResult ... .setParameter("target", "backup"); backupQuery.getSingleResult(); When a string is specified as
JPA Doc
19

javax.persistence.TypedQuery

- if the argument is negative Since: JPA 2.0 Query setParameter(int position, Object value) Bind an argument ... Since: JPA 1.0 Query setParameter( Parameter param, T value) Bind the value of a Parameter ... correspond to a parameter of the query Since: JPA 2.0 Query setParameter(String name, Object value) Bind
Manual
15

DELETE Queries in JPA/JPQL

= em.createQuery(       "DELETE FROM Country c WHERE c.population < :p");   int deletedCount = query.setParameter(p, 100000).executeUpdate();
Manual
15

UPDATE SET Queries in JPA/JPQL

* 11 / 10 " +       "WHERE population < :p");   int updateCount = query.setParameter(p, 100000).executeUpdate();
Manual
15

UPDATE SET Queries in JPA/JPQL [2011-11-22]

* 11 / 10 " +       "WHERE c.population < :p");   int updateCount = query.setParameter(p, 100000).executeUpdate();
JPA Doc
13

javax.persistence.Query

Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0 Query setParameter(int ... of the query or if the argument is of incorrect type Since: JPA 1.0 Query setParameter( ParametersetParameter(String name, Object value) Bind an argument to a named parameter. Bind an argument
JPA Doc
4

javax.persistence.NamedQuery

") .setParameter("custName", "Smith") .getResultList(); Since: JPA 1.0 Learn how to define and use
Forum
3

JPA query of a Set of terms

WHERE si.term MEMBER OF :terms",     Page.class); query.setParameter("terms", terms); I am afraid ... = :t1 AND s2.page = p AND s2.term = :t2", Page.class); query.setParameter("t1", t1).setParameter("t2", t2); By the way, since ObjectDB supports indexed collections you may also consider
Forum
3

Database is locked when in use

    query.setParameter("target", new java.io.File("c:\\backup")); And i want all the odb files ... that you may try:     query.setParameter("name", "your-dir-name");   Just to confirm for the usage of query.setParameter("name", "your-dir-name"); Is the second agruement a string or