|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wgen.op.db.DatabaseUtils
| Field Summary | |
private static org.apache.log4j.Logger |
LOG
|
static int |
MAX_ROWS_ALLOWED
Currently set to 50,000, until we have a better sense of what will break when we knock this down to 5,000.!! |
static int |
MAX_ROWS_WARNED
|
| Constructor Summary | |
DatabaseUtils()
|
|
| Method Summary | |
static java.lang.String |
buildCallWithBindVariables(java.lang.String functionName,
int numInputs,
boolean withOutput)
Builds a SQL call statement with a question-mark bind variable for each of the function's arguments. |
static java.sql.PreparedStatement |
buildSqlStatement(DatabaseCall call,
java.sql.Connection connection)
Builds a java.sql.PreparedStatement (or java.sql.Callablestatement) from a DatabaseCall. |
static void |
closeConnectionQuietly(java.sql.Connection connection)
Close a connection without concern for any exceptions. |
static void |
closeResultSetQuietly(java.sql.ResultSet rs)
Close a ResultSet without concern for any exceptions. |
static void |
closeStatementQuietly(java.sql.Statement statement)
Close a statement without concern for any exceptions. |
static LobHandler |
getLobHandler(DatabaseCall dbCall,
java.sql.Connection connection)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MAX_ROWS_ALLOWED
public static final int MAX_ROWS_WARNED
private static final org.apache.log4j.Logger LOG
| Constructor Detail |
public DatabaseUtils()
| Method Detail |
public static void closeConnectionQuietly(java.sql.Connection connection)
connection - the connection to closepublic static void closeStatementQuietly(java.sql.Statement statement)
statement - the statement to closepublic static void closeResultSetQuietly(java.sql.ResultSet rs)
rs - the ResultSet to close
public static java.lang.String buildCallWithBindVariables(java.lang.String functionName,
int numInputs,
boolean withOutput)
public static LobHandler getLobHandler(DatabaseCall dbCall,
java.sql.Connection connection)
dbCall - connection -
public static java.sql.PreparedStatement buildSqlStatement(DatabaseCall call,
java.sql.Connection connection)
throws java.sql.SQLException
call - the DatabaseCall representing the statement we wish to useconnection - the connection against which this statement will be called
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||