|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.amber.type.AmberType
com.caucho.amber.type.BooleanType
public class BooleanType
The type of a property.
Method Summary | |
---|---|
static BooleanType |
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. |
void |
generateSetNull(JavaWriter out,
java.lang.String pstmt,
java.lang.String index)
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 |
isBoolean()
Returns true for a boolean type. |
static java.lang.Boolean |
toBoolean(boolean value,
boolean wasNull)
Converts a value to a boolean. |
Methods inherited from class com.caucho.amber.type.AmberType |
---|
findItem, fromObject, generateCastFromObject, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoadForeign, generateNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getObject, init, isAssignableTo, isAutoIncrement, isNumeric, setParameter, toObject, toObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BooleanType create()
public java.lang.String getName()
getName
in class AmberType
public boolean isBoolean()
isBoolean
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 generateSetNull(JavaWriter out, java.lang.String pstmt, java.lang.String index) throws java.io.IOException
generateSetNull
in class AmberType
java.io.IOException
public static java.lang.Boolean toBoolean(boolean value, boolean wasNull)
public java.lang.Object getObject(java.sql.ResultSet rs, int index) throws java.sql.SQLException
getObject
in class AmberType
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |