public class SqlTimestampType extends AmberType
Modifier and Type | Method and Description |
---|---|
static SqlTimestampType |
create()
Returns the singleton SqlTimestamp type.
|
java.lang.String |
generateCreateColumnSQL(AmberPersistenceUnit manager,
int length,
int precision,
int scale)
Generates the type for the table.
|
java.lang.String |
generateIncrementVersion(java.lang.String value)
Generates the increment version.
|
int |
generateLoad(JavaWriter out,
java.lang.String rs,
java.lang.String indexVar,
int index)
Generates a string to load the property.
|
int |
generateLoadNative(JavaWriter out,
int index)
Generates a string to load the property.
|
void |
generateSet(JavaWriter out,
java.lang.String pstmt,
java.lang.String index,
java.lang.String value)
Generates a string to set the property.
|
void |
generateSetVersion(JavaWriter out,
java.lang.String pstmt,
java.lang.String index,
java.lang.String value)
Generates a string to set the property.
|
java.lang.String |
getName()
Returns the type name.
|
java.lang.Object |
getObject(java.sql.ResultSet rs,
int index)
Gets the value.
|
boolean |
isAssignableTo(java.lang.Class javaType)
Returns true if the value is assignable to the Java type.
|
void |
setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
Sets the value.
|
findItem, fromObject, generateCastFromObject, generateEquals, generateIsNull, generateLoad, generateLoadForeign, generateNull, generateSetNull, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getObject, init, isAutoIncrement, isBoolean, isNumeric, toObject, toObject
public static SqlTimestampType create()
public java.lang.String getName()
public boolean isAssignableTo(java.lang.Class javaType)
isAssignableTo
in class AmberType
public java.lang.String generateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale)
generateCreateColumnSQL
in class AmberType
public int generateLoad(JavaWriter out, java.lang.String rs, java.lang.String indexVar, int index) throws java.io.IOException
generateLoad
in class AmberType
java.io.IOException
public int generateLoadNative(JavaWriter out, int index) throws java.io.IOException
generateLoadNative
in class AmberType
java.io.IOException
public void generateSet(JavaWriter out, java.lang.String pstmt, java.lang.String index, java.lang.String value) throws java.io.IOException
generateSet
in class AmberType
java.io.IOException
public void generateSetVersion(JavaWriter out, java.lang.String pstmt, java.lang.String index, java.lang.String value) throws java.io.IOException
generateSetVersion
in class AmberType
java.io.IOException
public java.lang.String generateIncrementVersion(java.lang.String value) throws java.io.IOException
generateIncrementVersion
in class AmberType
java.io.IOException
public void setParameter(java.sql.PreparedStatement pstmt, int index, java.lang.Object value) throws java.sql.SQLException
setParameter
in class AmberType
java.sql.SQLException