public class SQLTypes extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SIZE_THRESHOLD |
Constructor and Description |
---|
SQLTypes() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int SIZE_THRESHOLD
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