Home » Search

About TemporalType

11-20 of 53Refresh
JPA Doc
65

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
65

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
65

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
65

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
65

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
63

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
61

TemporalType.DATE

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

TemporalType.TIME

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

TemporalType.TIMESTAMP

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

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