org.melati.poem
Class TimestampPoemType
java.lang.Object
org.melati.poem.BasePoemType<T>
org.melati.poem.AtomPoemType
org.melati.poem.TimestampPoemType
- All Implemented Interfaces:
- Cloneable, PoemType, SQLPoemType, SQLType
public class TimestampPoemType
- extends AtomPoemType
A Timestamp.
Methods inherited from class org.melati.poem.BasePoemType |
_possibleRaws, assertValidCooked, assertValidRaw, canRepresent, clone, cookedOfRaw, getLimitRaw, getLowRaw, getNullable, getRaw, possibleRaws, quotedRaw, rawOfCooked, rawOfString, saveColumnInfo, setRaw, setRawRange, sqlDefinition, sqlTypeCode, sqlTypeDefinition, stringOfCooked, stringOfRaw, toString, withNullable |
format
public static final DateFormat format
- Simple date format.
TimestampPoemType
public TimestampPoemType(boolean nullable)
- Constructor.
- Parameters:
nullable
- whether nullable
TimestampPoemType
public TimestampPoemType(int sqlTypeCode,
String sqlTypeName,
boolean nullable)
- Constructor.
- See Also:
SQLServer
_assertValidRaw
protected void _assertValidRaw(Object raw)
- Specified by:
_assertValidRaw
in class BasePoemType
_getRaw
protected Object _getRaw(ResultSet rs,
int col)
throws SQLException
- Specified by:
_getRaw
in class BasePoemType
- Throws:
SQLException
_setRaw
protected void _setRaw(PreparedStatement ps,
int col,
Object raw)
throws SQLException
- Specified by:
_setRaw
in class BasePoemType
- Throws:
SQLException
_stringOfRaw
protected String _stringOfRaw(Object raw)
- Overrides:
_stringOfRaw
in class AtomPoemType
_rawOfString
protected Object _rawOfString(String raw)
- Description copied from class:
BasePoemType
- Converts a non-null string to an appropriate value
for insertion into the underlying DBMS.
- Specified by:
_rawOfString
in class BasePoemType
_stringOfCooked
protected String _stringOfCooked(Object cooked,
PoemLocale locale,
int style)
- Overrides:
_stringOfCooked
in class AtomPoemType
_canRepresent
protected boolean _canRepresent(SQLPoemType other)
- Specified by:
_canRepresent
in class BasePoemType
toDsdType
public String toDsdType()
- The field type used in the Data Structure Definition language.
- Returns:
- the Type name
- See Also:
PoemType.toDsdType()
_saveColumnInfo
protected void _saveColumnInfo(ColumnInfo columnInfo)
throws AccessPoemException
- Specified by:
_saveColumnInfo
in class BasePoemType
- Throws:
AccessPoemException
_quotedRaw
protected String _quotedRaw(Object raw)
- Overrides:
_quotedRaw
in class AtomPoemType
Copyright © 2000-2010 PanEris. All Rights Reserved.