|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.persistence.proxy.SQLTypes
public class SQLTypes
INTERNAL: Utility class for handling access to columns by proper SQL type. Note that all type integers are the same as the ones in java.sql.Types.
Field Summary | |
---|---|
static int |
SIZE_THRESHOLD
|
Constructor Summary | |
---|---|
SQLTypes()
|
Method Summary | |
---|---|
static Object |
getObject(ResultSet rs,
int index,
int sql_type,
boolean direct)
INTERNAL: Reads the object of the given type at the specified index from the result set. |
static int |
getType(Class klass)
INTERNAL: Gets the SQL type mapped to the given java class. |
static Class |
getType(int sql_type)
INTERNAL: Gets the java class mapped to by the given SQL type. |
static void |
setObject(PreparedStatement stmt,
int index,
Object value,
int sql_type)
INTERNAL: Binds the object of the given type at the specified index in the prepared statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SIZE_THRESHOLD
Constructor Detail |
---|
public SQLTypes()
Method Detail |
---|
public static int getType(Class klass)
public static Class getType(int sql_type)
public static Object getObject(ResultSet rs, int index, int sql_type, boolean direct) throws SQLException
SQLException
public static void setObject(PreparedStatement stmt, int index, Object value, int sql_type) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |