proai.util
Class DBUtil

java.lang.Object
  extended by proai.util.DBUtil

public abstract class DBUtil
extends java.lang.Object


Constructor Summary
DBUtil()
           
 
Method Summary
static java.lang.String getLongString(java.sql.ResultSet rs, int pos)
          Get a long string, which could be a TEXT or CLOB type.
static java.lang.String quotedString(java.lang.String in, boolean backslashIsEscape)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBUtil

public DBUtil()
Method Detail

getLongString

public static java.lang.String getLongString(java.sql.ResultSet rs,
                                             int pos)
                                      throws java.sql.SQLException
Get a long string, which could be a TEXT or CLOB type. (CLOBs require special handling -- this method normalizes the reading of them)

Throws:
java.sql.SQLException

quotedString

public static java.lang.String quotedString(java.lang.String in,
                                            boolean backslashIsEscape)