|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.sourceforge.jxutil.sql.type.AbstractType
|
+--org.sourceforge.jxutil.sql.type.AbstractDATE
A type defining the generics of the DATE type.
| Field Summary |
| Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
BD_ONE, BD_ZERO, name |
| Constructor Summary | |
protected |
AbstractDATE(String name)
|
| Method Summary | |
abstract Date |
getDate(Object row,
Calendar cal,
ConversionContext ctx)
Get the DATE value. |
Class |
getJavaClass()
Get the Java Class returned when calling getObject on this type. |
Class |
getJavaType()
Get the Java Class of the primitive type best representing data of this database type. |
int |
getJDBCType()
Get the type's closest representation as a JDBC type. |
String |
getLiteralPrefix()
Get the prefix to use for literal data of this type. |
String |
getLiteralSuffix()
Get the suffix to use for literal data of this type. |
Object |
getObject(Object row,
Map map,
ConversionContext ctx)
Get the DATE value as an Object. |
String |
getString(Object row,
ConversionContext ctx)
Get the DATE value as a String. |
Timestamp |
getTimestamp(Object row,
Calendar cal,
ConversionContext ctx)
Get the DATE value as a Timestamp. |
abstract void |
setDate(Object row,
Date val,
Calendar cal,
ConversionContext ctx)
Set the DATE value. |
void |
setString(Object row,
String val,
ConversionContext ctx)
Set the DATE value from a String. |
void |
setTimestamp(Object row,
Timestamp val,
Calendar cal,
ConversionContext ctx)
Set the DATE value from a Timestamp. |
| Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
dataTruncationRead, dataTruncationWrite, deriveType, getArray, getAsciiStream, getAutoInc, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCaseSensitive, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getDouble, getFloat, getInt, getLiteral, getLocalName, getLong, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getPrecision, getRef, getScale, getSearchable, getShort, getTime, getTime, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setStruct, setTime, setTime, setTimestamp, setURL, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected AbstractDATE(String name)
| Method Detail |
public abstract Date getDate(Object row,
Calendar cal,
ConversionContext ctx)
throws SQLException
getDate in class AbstractTypeSQLExceptionpublic final Class getJavaClass()
AbstractType
getJavaClass in class AbstractTypepublic final Class getJavaType()
AbstractType
getJavaType in class AbstractTypepublic final int getJDBCType()
AbstractType
getJDBCType in class AbstractTypeTypespublic String getLiteralPrefix()
AbstractType
getLiteralPrefix in class AbstractTypepublic String getLiteralSuffix()
AbstractType
getLiteralSuffix in class AbstractType
public final Object getObject(Object row,
Map map,
ConversionContext ctx)
throws SQLException
getObject in class AbstractTypeSQLExceptionAbstractType.getDate(Object, ConversionContext)
public final String getString(Object row,
ConversionContext ctx)
throws SQLException
getString in class AbstractTypeSQLException
public final Timestamp getTimestamp(Object row,
Calendar cal,
ConversionContext ctx)
throws SQLException
getTimestamp in class AbstractTypeSQLException
public abstract void setDate(Object row,
Date val,
Calendar cal,
ConversionContext ctx)
throws SQLException
setDate in class AbstractTypeSQLException
public final void setString(Object row,
String val,
ConversionContext ctx)
throws SQLException
setString in class AbstractTypeSQLException
public final void setTimestamp(Object row,
Timestamp val,
Calendar cal,
ConversionContext ctx)
throws SQLException
setTimestamp in class AbstractTypeSQLException
|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||