public class PrimitiveLongType extends PrimitiveType
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveLongType |
create()
Returns the boolean type.
|
java.lang.String |
generateCastFromObject(java.lang.String value)
Converts the value.
|
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 |
generateLoadForeign(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 |
generateSetNull(JavaWriter out,
java.lang.String pstmt,
java.lang.String index)
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.
|
AmberType |
getForeignType()
Returns the type as a foreign key.
|
java.lang.String |
getName()
Returns the type name.
|
java.lang.Object |
getObject(java.sql.ResultSet rs,
int index)
Gets the value.
|
boolean |
isNumeric()
Returns true for a numeric type.
|
void |
setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
Sets the value.
|
static java.lang.Long |
toForeignLong(long value,
boolean wasNull)
Converts a value to a int.
|
java.lang.String |
toObject(java.lang.String value)
Converts to an object.
|
generateEquals, generateIsNull, generateNullfindItem, fromObject, generateIncrementVersion, generateLoad, getColumnCount, getForeignTypeName, getJavaTypeName, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, toObjectpublic static PrimitiveLongType create()
public java.lang.String getName()
public boolean isNumeric()
public AmberType getForeignType()
getForeignType in class AmberTypepublic 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 int generateLoadForeign(JavaWriter out, java.lang.String rs, java.lang.String indexVar, int index) throws java.io.IOException
generateLoadForeign 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 generateSetNull(JavaWriter out, java.lang.String pstmt, java.lang.String index) throws java.io.IOException
generateSetNull in class AmberTypejava.io.IOExceptionpublic void generateSetVersion(JavaWriter out, java.lang.String pstmt, java.lang.String index, java.lang.String value) throws java.io.IOException
generateSetVersion in class AmberTypejava.io.IOExceptionpublic java.lang.String toObject(java.lang.String value)
public java.lang.String generateCastFromObject(java.lang.String value)
generateCastFromObject in class AmberTypepublic java.lang.Object getObject(java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
public static java.lang.Long toForeignLong(long value,
boolean wasNull)
public void setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
throws java.sql.SQLException
setParameter in class AmberTypejava.sql.SQLException