About TemporalType

11-20 of 53Refresh
JPA Doc
66

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
66

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
66

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
66

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
JPA Doc
65

valueOf(name)

Static Method javax.persistence.TemporalType TemporalType valueOf(   String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant
JPA Doc
62

TemporalType.DATE

Enum Constant javax.persistence.TemporalType DATE Map as java.sql.Date Since: JPA 1.0
JPA Doc
62

TemporalType.TIME

Enum Constant javax.persistence.TemporalType TIME Map as java.sql.Time Since: JPA 1.0
JPA Doc
62

TemporalType.TIMESTAMP

Enum Constant javax.persistence.TemporalType TIMESTAMP Map as java.sql.Timestamp Since: JPA 1.0
Manual
50

JPA Persistable Types

Only: java.sql.Date date1; @Temporal(TemporalType.DATE) java.util.Date date2 @Temporal(TemporalType.DATE) java.util.Calendar date3; // Time Only: java.sql.Time time1; @Temporal(TemporalType.TIME) java.util.Date time2; @Temporal(TemporalType.TIME) java.util.Calendar
JPA Doc
34

javax.persistence.TypedQuery

if the argument is of incorrect type Since: JPA 2.0 Query setParameter(int position, Date value, TemporalType temporalType) Bind an instance of java.util.Date to a positional parameter. Bind an instance ... temporalType - temporal type Returns: the same query instance Throws: IllegalArgumentException