Home » Search

About setParameter

11-20 of 94Refresh
JPA Doc
63

setParameter(param, value, temporalType)

Method javax.persistence.Query Query setParameter(   Parameter 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
JPA Doc
63

setParameter(param, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   Parameter 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
JPA Doc
63

setParameter(param, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   Parameter 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
JPA Doc
63

setParameter(position, value)

Method javax.persistence.Query Query setParameter(   int position,   Object value ) Bind an argument to a positional parameter. Parameters: position - position value - parameter value Returns: the same query instance Throws: IllegalArgumentException - if position does not correspond to a positional
JPA Doc
63

setParameter(position, value)

Method javax.persistence.TypedQuery TypedQuery setParameter(   int position,   Object value ) Bind an argument to a positional parameter. Parameters: position - position value - parameter value Returns: the same query instance Throws: IllegalArgumentException - if position does not correspond
JPA Doc
63

setParameter(position, value, temporalType)

Method javax.persistence.Query Query setParameter(   int position,   Date value,   TemporalType temporalType ) Bind an instance of java.util.Date to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Returns: the same query instance Throws
JPA Doc
63

setParameter(position, value, temporalType)

Method javax.persistence.Query Query setParameter(   int position,   Calendar value,   TemporalType temporalType ) Bind an instance of java.util.Calendar to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Returns: the same query instance
JPA Doc
63

setParameter(position, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   int position,   Calendar value,   TemporalType temporalType ) Bind an instance of java.util.Calendar to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Returns: the same
JPA Doc
63

setParameter(position, value, temporalType)

Method javax.persistence.TypedQuery TypedQuery setParameter(   int position,   Date value,   TemporalType temporalType ) Bind an instance of java.util.Date to a positional parameter. Parameters: position - position value - parameter value temporalType - temporal type Returns: the same query
Manual
22

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