|
||||||||||
| 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 java.lang.Object |
getObject(java.sql.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(java.lang.Class klass)
INTERNAL: Gets the SQL type mapped to the given java class. |
static java.lang.Class |
getType(int sql_type)
INTERNAL: Gets the java class mapped to by the given SQL type. |
static void |
setObject(java.sql.PreparedStatement stmt,
int index,
java.lang.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(java.lang.Class klass)
public static java.lang.Class getType(int sql_type)
public static java.lang.Object getObject(java.sql.ResultSet rs,
int index,
int sql_type,
boolean direct)
throws java.sql.SQLException
java.sql.SQLException
public static void setObject(java.sql.PreparedStatement stmt,
int index,
java.lang.Object value,
int sql_type)
throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||