Package net.ontopia.persistence.proxy
Class SQLTypes
java.lang.Object
net.ontopia.persistence.proxy.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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectINTERNAL: Reads the object of the given type at the specified index from the result set.static ClassgetType(int sql_type) INTERNAL: Gets the java class mapped to by the given SQL type.static intINTERNAL: Gets the SQL type mapped to the given java class.static voidsetObject(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.
-
Field Details
-
SIZE_THRESHOLD
public static final int SIZE_THRESHOLD- See Also:
-
-
Constructor Details
-
SQLTypes
public SQLTypes()
-
-
Method Details
-
getType
INTERNAL: Gets the SQL type mapped to the given java class. -
getType
INTERNAL: Gets the java class mapped to by the given SQL type. -
getObject
public static Object getObject(ResultSet rs, int index, int sql_type, boolean direct) throws SQLException INTERNAL: Reads the object of the given type at the specified index from the result set.- Throws:
SQLException
-
setObject
public static void setObject(PreparedStatement stmt, int index, Object value, int sql_type) throws SQLException INTERNAL: Binds the object of the given type at the specified index in the prepared statement.- Throws:
SQLException
-