|
||||||||||
| 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.PrimitiveType
com.caucho.amber.type.PrimitiveDoubleType
public class PrimitiveDoubleType
The primitive double type.
| Method Summary | |
|---|---|
static PrimitiveDoubleType |
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 |
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. |
AmberType |
getForeignType()
Returns the type as a foreign key. |
java.lang.String |
getName()
Returns the type name. |
boolean |
isNumeric()
Returns true for a numeric type. |
void |
setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
Sets the value. |
java.lang.String |
toObject(java.lang.String value)
Converts to an object. |
| Methods inherited from class com.caucho.amber.type.PrimitiveType |
|---|
generateEquals, generateIsNull, generateNull |
| Methods inherited from class com.caucho.amber.type.AmberType |
|---|
findItem, fromObject, generateIncrementVersion, generateLoad, generateLoadForeign, generateSetVersion, getColumnCount, getForeignTypeName, getJavaTypeName, getObject, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, toObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PrimitiveDoubleType create()
public java.lang.String getName()
getName in class AmberTypepublic boolean isNumeric()
isNumeric in class AmberTypepublic AmberType getForeignType()
getForeignType 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 AmberTypejava.io.IOException
public int generateLoadNative(JavaWriter out,
int index)
throws java.io.IOException
generateLoadNative in class AmberTypejava.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 AmberTypejava.io.IOException
public void generateSetNull(JavaWriter out,
java.lang.String pstmt,
java.lang.String index)
throws java.io.IOException
generateSetNull in class AmberTypejava.io.IOExceptionpublic java.lang.String toObject(java.lang.String value)
toObject in class AmberTypepublic java.lang.String generateCastFromObject(java.lang.String value)
generateCastFromObject in class AmberType
public void setParameter(java.sql.PreparedStatement pstmt,
int index,
java.lang.Object value)
throws java.sql.SQLException
setParameter in class AmberTypejava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||