public class BigIntegerType extends AmberType
Modifier and Type | Method and Description |
---|---|
static BigIntegerType |
create()
Returns the singleton BigInteger 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.
|
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.math.BigInteger |
toBigInteger(java.math.BigDecimal value,
boolean wasNull)
Converts a value to a int.
|
findItem, fromObject, generateCastFromObject, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoadForeign, generateNull, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, toObject, toObject
public static BigIntegerType create()
public java.lang.String getName()
public boolean isNumeric()
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 setParameter(java.sql.PreparedStatement pstmt, int index, java.lang.Object value) throws java.sql.SQLException
setParameter
in class AmberType
java.sql.SQLException
public java.lang.Object getObject(java.sql.ResultSet rs, int index) throws java.sql.SQLException
public java.lang.String generateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale)
AmberType
generateCreateColumnSQL
in class AmberType
public static java.math.BigInteger toBigInteger(java.math.BigDecimal value, boolean wasNull)