Method Summary |
|
public static Object | coerceToSQLType(int jdbcType, Object value) Coerces the input value into the correct type for the specified
jdbcType. |
public static byte[] | convertObjectToByteArray(Object value) Coverts the value into a byte array. |
public static Object | convertToObject(byte[] input) Coverts the input into an object. |
public static Object | convertToObject(InputStream input) Coverts the input into an object. |
public static byte[] | getByteArray(InputStream input) Read the entire input stream provided and return its content as a byte
array.
The method closes the passed in input stream!
Parameters: input - the InputStream from which a result isbeing retrieved. |
public static String | getJDBCTypeName(int jdbcType) Gets the JDBC type name corresponding to the given type code.
Only used in debug log messages.
Parameters: jdbcType - the integer JDBC type code. |
public static String | getLongString(ResultSet rs, int index) Get the indicated result set parameter as a character stream and return
it's entire content as a String.
Parameters: rs - the ResultSet from which a result isbeing retrieved. Parameters: index - index of the result column. |
public static Object | getParameter(Logger log, CallableStatement cs, int index, int jdbcType, Class destination) Used for all retrieval of parameters from CallableStatement s. |
public static JDBCParameterSetter | getParameterSetter(int jdbcType, Class javaType) |
public static JDBCResultSetReader | getResultReaderByType(Class destination) |
public static JDBCResultSetReader | getResultSetReader(int jdbcType, Class destination) |
public static void | safeClose(Connection con) |
public static void | safeClose(ResultSet rs) |
public static void | safeClose(Statement statement) |
public static void | safeClose(InputStream in) |
public static void | safeClose(OutputStream out) |
public static void | safeClose(Reader reader) |