public class SqlTimestampValueFactory extends AbstractDateTimeValueFactory<java.sql.Timestamp>
Timestamp
instances. Timestamp instances are created from fields returned from the db without a timezone. In order
to create a point-in-time, a time zone must be provided to interpret the fields.jdbcCompliantTruncationForReads, pset
Constructor and Description |
---|
SqlTimestampValueFactory(PropertySet pset,
java.util.Calendar calendar,
java.util.TimeZone tz) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTargetTypeName()
Get the actual class name of
T parameter. |
java.sql.Timestamp |
localCreateFromDate(InternalDate idate)
Create a Timestamp from a DATE value.
|
java.sql.Timestamp |
localCreateFromTime(InternalTime it)
Create a Timestamp from a TIME value.
|
java.sql.Timestamp |
localCreateFromTimestamp(InternalTimestamp its) |
createFromBytes, createFromDate, createFromTime, createFromTimestamp, createFromYear
createFromBigDecimal, createFromBigInteger, createFromBit, createFromDouble, createFromLong, createFromNull, setPropertySet, unsupported
public SqlTimestampValueFactory(PropertySet pset, java.util.Calendar calendar, java.util.TimeZone tz)
pset
- PropertySet
calendar
- Calendar used to interpret the fields.tz
- The time zone used to interpret the fields.public java.sql.Timestamp localCreateFromDate(InternalDate idate)
public java.sql.Timestamp localCreateFromTime(InternalTime it)
public java.sql.Timestamp localCreateFromTimestamp(InternalTimestamp its)
public java.lang.String getTargetTypeName()
ValueFactory
T
parameter.