| Modifier and Type | Field and Description |
|---|---|
protected java.util.Calendar |
dbCalendar |
static byte |
TU_DAY |
static byte |
TU_F1 |
static byte |
TU_F2 |
static byte |
TU_F3 |
static byte |
TU_F4 |
static byte |
TU_F5 |
static byte |
TU_FRAC |
static byte |
TU_HOUR |
static byte |
TU_MINUTE |
static byte |
TU_MONTH |
static byte |
TU_SECOND |
static byte |
TU_YEAR |
conn, encodedLength, extendedID, extendedName, extendedOwner, ifxType, isNull, jdbcType, sourceType, trace, typeMap, used_in_update| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Determine if two objects are equal.
|
void |
fromCalendar(java.util.Calendar calendar) |
void |
fromCalendar(java.util.GregorianCalendar calendar)
Have the implementation specific class due to limitations in using reflection
from the code in IfxObject, so we cannot use the Calendar interface
|
void |
fromDate(java.sql.Date date)
Convert from a JDBC date to IfxDateTime
|
void |
fromDate(java.util.Date date)
Convert from a java.util.Date (which is a very common date object to use )
into IfxDateTime
|
void |
fromIfx(byte[] b,
int offset,
int length,
short prec)
Set value to the given Informix network format
|
void |
fromIfx(byte[] b,
short prec)
Set value to the given Informix network format
|
void |
fromRawDateTime(byte[] b,
short prec) |
void |
fromString(java.lang.String str)
Convert from a String to a IfxDatetime
|
void |
fromTime(java.sql.Time time) |
void |
fromTimestamp(java.sql.Timestamp ts) |
void |
fromTimestamp(java.sql.Timestamp ts,
short qual) |
short |
getEncodedLength()
Default method for getting encoded length.
|
static byte |
getEndCode(short qualifier)
Extract an ending field code from a qualifier
|
int |
getNanos()
Return the nanos set for this datetime object if set.
|
int |
getRawEncodedLength() |
static byte |
getStartCode(short qual)
Given a qualifier extract the start code
|
boolean |
isTimeValue() |
void |
setDateTimeByStCode(byte startCode) |
void |
setDateTimeByStEndCode(byte startCode,
byte endCode) |
void |
setDateTimeType(int nanos,
byte startCode,
byte endCode) |
void |
setNanos(int nanos)
Set the nanos for this datetime object.
|
java.util.Calendar |
toCalendar() |
java.sql.Date |
toDate()
Convert IfxDateTime to a JDBC date
|
byte[] |
toIfx()
Convert value to Informix network type
|
byte[] |
toIfxTuple()
Convert value to Informix network tuple format
|
java.lang.Object |
toObject()
Returns the equivalent Java object
|
java.lang.String |
toString()
Convert a IfxDateTime value to a string based on GLS DATETIME
non-ANSI format if USE_DTENV property is set, otherwise
use ANSI format.
|
java.sql.Time |
toTime()
Return the Time value
|
java.sql.Timestamp |
toTimestamp()
Return the timestamp value
|
java.lang.String |
toUnloadString()
Convert to string format which is compatible with format generated by
SQL unload command.
|
boolean |
truncateDataForPut(byte colDefEndCode)
Truncates the data from given timestamp to match the
column definition as returned by server describe information
To be used only in case on INSERT operation, note that for
normal inserts server will anyway do this, however if
IFX_USEPUT is set then it is driver responsibility to
truncate the data for datetime column.
|
clear, clearWarning, fromAsciiStream, fromAsciiStream, fromBinaryStream, fromBinaryStream, fromBlob, fromBoolean, fromBoolean, fromByte, fromByte, fromBytes, fromCharacterStream, fromCharacterStream, fromClob, fromDecimal, fromDecimal, fromDouble, fromDouble, fromFloat, fromFloat, fromIfx, fromIfx, fromIfx, fromIfx, fromInputStream, fromInputStream, fromInt, fromInt, fromIntervalDF, fromIntervalYM, fromLong, fromLong, fromNClob, fromObject, fromObject, fromObject, fromRowId, fromShort, fromShort, fromSQLXML, fromString, get_used_in_update, getWarning, isNull, nullify, set_used_in_update, setConnection, setExtendedTypeName, setIfxType, setTypeMap, toAsciiStream, toBinaryStream, toBlob, toBoolean, toByte, toBytes, toCharacterStream, toClob, toDecimal, toDouble, toFloat, toIfxBSONObject, toInputStream, toInt, toInterval, toIntervalDF, toIntervalYM, toLong, toNClob, toObject, toRowId, toShort, toSQLXML, unnullifyprotected java.util.Calendar dbCalendar
public static final byte TU_YEAR
public static final byte TU_MONTH
public static final byte TU_DAY
public static final byte TU_HOUR
public static final byte TU_MINUTE
public static final byte TU_SECOND
public static final byte TU_FRAC
public static final byte TU_F1
public static final byte TU_F2
public static final byte TU_F3
public static final byte TU_F4
public static final byte TU_F5
public byte[] toIfx()
public byte[] toIfxTuple()
toIfxTuple in class IfxObjectpublic void fromIfx(byte[] b,
short prec)
public void fromIfx(byte[] b,
int offset,
int length,
short prec)
public java.lang.Object toObject()
public java.sql.Date toDate()
public void fromDate(java.sql.Date date)
public void fromCalendar(java.util.GregorianCalendar calendar)
calendar - public java.util.Calendar toCalendar()
public void fromCalendar(java.util.Calendar calendar)
public void fromDate(java.util.Date date)
public java.sql.Timestamp toTimestamp()
toTimestamp in class IfxObjectpublic void fromTimestamp(java.sql.Timestamp ts)
fromTimestamp in class IfxObjectpublic void fromRawDateTime(byte[] b,
short prec)
public void fromTimestamp(java.sql.Timestamp ts,
short qual)
public void fromTime(java.sql.Time time)
throws java.sql.SQLException
public java.lang.String toString()
public java.lang.String toUnloadString()
IfxObjecttoUnloadString in class IfxObjectpublic void fromString(java.lang.String str)
throws java.sql.SQLException
fromString in class IfxObjectstr - the String valuejava.sql.SQLException - if the conversion failspublic boolean equals(java.lang.Object other)
public static byte getStartCode(short qual)
qual - The qualifierpublic static byte getEndCode(short qualifier)
qualifier - The qualifierpublic short getEncodedLength()
IfxObjectgetEncodedLength in class IfxObjectpublic int getRawEncodedLength()
public boolean isTimeValue()
public void setDateTimeType(int nanos,
byte startCode,
byte endCode)
public void setDateTimeByStCode(byte startCode)
public void setDateTimeByStEndCode(byte startCode,
byte endCode)
public int getNanos()
public void setNanos(int nanos)
nanos - public boolean truncateDataForPut(byte colDefEndCode)
colDefEndCode -