public class StringType extends AmberType
| Modifier and Type | Method and Description |
|---|---|
static StringType |
create()
Returns the string type.
|
java.lang.String |
generateCreateColumnSQL(AmberPersistenceUnit manager,
int length,
int precision,
int scale)
Generates the type for the table.
|
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.
|
java.lang.String |
getName()
Returns the type name.
|
java.lang.Object |
getObject(java.sql.ResultSet rs,
int index)
Gets the value.
|
void |
setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
Sets the value.
|
void |
setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.String value)
Sets the value.
|
static void |
setString(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
Sets the value.
|
static void |
setString(java.sql.PreparedStatement pstmt,
int index,
java.lang.String value)
Sets the value.
|
findItem, fromObject, generateCastFromObject, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoadForeign, generateNull, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, toObject, toObjectpublic static StringType create()
public java.lang.String getName()
public java.lang.String generateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale)
generateCreateColumnSQL in class AmberTypepublic int generateLoad(JavaWriter out, java.lang.String rs, java.lang.String indexVar, int index) throws java.io.IOException
generateLoad in class AmberTypejava.io.IOExceptionpublic int generateLoadNative(JavaWriter out, int index) throws java.io.IOException
generateLoadNative in class AmberTypejava.io.IOExceptionpublic void generateSet(JavaWriter out, java.lang.String pstmt, java.lang.String index, java.lang.String value) throws java.io.IOException
generateSet in class AmberTypejava.io.IOExceptionpublic void setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
throws java.sql.SQLException
setParameter in class AmberTypejava.sql.SQLExceptionpublic void setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.String value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getObject(java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
public static void setString(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void setString(java.sql.PreparedStatement pstmt,
int index,
java.lang.String value)
throws java.sql.SQLException
java.sql.SQLException