Package net.ontopia.topicmaps.db2tm
Class JDBCUtils
- java.lang.Object
-
- net.ontopia.topicmaps.db2tm.JDBCUtils
-
public class JDBCUtils extends Object
INTERNAL: Data source that reads tables via JDBC.
-
-
Field Summary
Fields Modifier and Type Field Description protected static DateFormat
df_date
protected static DateFormat
df_datetime
-
Constructor Summary
Constructors Constructor Description JDBCUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getHighPrecisionString(ResultSet rs, int ix, int sql_type)
static String
getString(ResultSet rs, int ix, int sql_type)
static void
setHighPrecisionObject(PreparedStatement stmt, int ix, String value, int sql_type)
static void
setObject(PreparedStatement stmt, int ix, String value, int sql_type)
-
-
-
Field Detail
-
df_date
protected static DateFormat df_date
-
df_datetime
protected static DateFormat df_datetime
-
-
Method Detail
-
getString
public static String getString(ResultSet rs, int ix, int sql_type) throws SQLException
- Throws:
SQLException
-
setObject
public static void setObject(PreparedStatement stmt, int ix, String value, int sql_type) throws SQLException
- Throws:
SQLException
-
getHighPrecisionString
public static String getHighPrecisionString(ResultSet rs, int ix, int sql_type) throws Exception
- Throws:
Exception
-
setHighPrecisionObject
public static void setHighPrecisionObject(PreparedStatement stmt, int ix, String value, int sql_type) throws SQLException
- Throws:
SQLException
-
-