|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.db.SQLCaster
public final class SQLCaster
SQL Caster
Method Summary | |
---|---|
static void |
setValue(PreparedStatement stat,
int parameterIndex,
SQLItem item)
|
static Object |
toCFType(Object value)
|
static Object |
toCFType(Object value,
int type)
|
static Object |
toCFType(Object value,
Object defaultValue)
|
static Object |
toCFTypeEL(SQLItem item)
|
static Object |
toCFTypex(SQLItem item)
cast a Value to a correspondance CF Type |
static int |
toIntType(String strType)
cast a String SQL Type to int Type |
static Object |
toSqlType(SQLItem item)
sets a Value to a PreparedStatement |
static String |
toString(SQLItem item)
Cast a SQL Item to a String (Display) Value |
static String |
toStringType(int type)
returns CF SQL Type as String |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object toSqlType(SQLItem item) throws PageException, DatabaseException
stat
- parameterIndex
- item
-
SQLException
PageException
DatabaseException
public static void setValue(PreparedStatement stat, int parameterIndex, SQLItem item) throws PageException, SQLException, DatabaseException
PageException
SQLException
DatabaseException
public static String toString(SQLItem item)
item
-
public static Object toCFTypex(SQLItem item) throws PageException
item
-
PageException
public static Object toCFTypeEL(SQLItem item)
public static Object toCFType(Object value, Object defaultValue)
public static Object toCFType(Object value) throws PageException
PageException
public static Object toCFType(Object value, int type) throws PageException
PageException
public static String toStringType(int type) throws DatabaseException
type
-
DatabaseException
public static int toIntType(String strType) throws DatabaseException
strType
-
DatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |