uk.nominet.catnap.utility
Class SQLUtility

java.lang.Object
  extended byuk.nominet.catnap.utility.SQLUtility

public class SQLUtility
extends java.lang.Object

Created by IntelliJ IDEA. User: Administrator Date: 14-Oct-2004 Time: 14:59:59 To change this template use File | Settings | File Templates.


Constructor Summary
SQLUtility()
           
 
Method Summary
static java.lang.Object constructObjectFromSQLColumn(java.sql.ResultSet rs, java.lang.String columnName, java.lang.Class classType)
           
static java.lang.Object convertToSQLObjectFromJavaObject(java.lang.Object javaObject)
          Convert from a java object to an appropriate sql object if required.
static int getSqlTypeForObject(java.lang.Object object)
           
static int getVendorSpecificCursorReturnType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLUtility

public SQLUtility()
Method Detail

getSqlTypeForObject

public static int getSqlTypeForObject(java.lang.Object object)

convertToSQLObjectFromJavaObject

public static java.lang.Object convertToSQLObjectFromJavaObject(java.lang.Object javaObject)
Convert from a java object to an appropriate sql object if required. currently only dates need this treatment.

Parameters:
javaObject -
Returns:

constructObjectFromSQLColumn

public static java.lang.Object constructObjectFromSQLColumn(java.sql.ResultSet rs,
                                                            java.lang.String columnName,
                                                            java.lang.Class classType)
                                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getVendorSpecificCursorReturnType

public static int getVendorSpecificCursorReturnType()