|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.tools.ij.utilMain
org.apache.derby.impl.tools.ij.utilMain14
This class is utilities specific to the two ij Main's. This factoring enables sharing the functionality for single and dual connection ij runs.
Field Summary | |
private static java.lang.String |
JDBC_NOTSUPPORTED
|
Fields inherited from class org.apache.derby.impl.tools.ij.utilMain |
BUFFEREDFILESIZE, charStream, commandGrabber, connEnv, currCE, ijParser, ijTokMgr, isJCC, langUtil, oldGrabbers |
Constructor Summary | |
utilMain14(int numConnections,
LocalizedOutput out)
Set up the test to run with 'numConnections' connections/users. |
|
utilMain14(int numConnections,
LocalizedOutput out,
java.util.Hashtable ignoreErrors)
Set up the test to run with 'numConnections' connections/users. |
Method Summary | |
java.sql.Statement |
createStatement(java.sql.Connection conn,
int scrollType,
int holdType)
Create the right kind of statement (scrolling or not) off of the specified connection. |
int |
getHoldability(java.sql.Connection conn)
JDBC 3.0 Retrieves the current holdability of ResultSet objects created using this Connection object. |
utilMain |
getUtilMain()
Return the right utilMain to use. |
java.sql.Connection |
setHoldability(java.sql.Connection conn,
int holdType)
Connections by default create ResultSet objects with holdability true. |
Methods inherited from class org.apache.derby.impl.tools.ij.utilMain |
absolute, afterLast, beforeFirst, doPrompt, first, getConnAttributeDefaults, getCurrentRowNumber, go, handleSQLException, last, newInput, newResourceInput, previous, relative, run, setMtUse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String JDBC_NOTSUPPORTED
Constructor Detail |
public utilMain14(int numConnections, LocalizedOutput out) throws ijFatalException
numConnections
- The number of connections/users to test.public utilMain14(int numConnections, LocalizedOutput out, java.util.Hashtable ignoreErrors) throws ijFatalException
numConnections
- The number of connections/users to test.ignoreErrors
- A list of errors to ignore. If null,
all errors are printed out and nothing
is fatal. If non-null, if an error is
hit and it is in this list, it is silently
ignore. Otherwise, an ijFatalException is
thrown. ignoreErrors is used for stress
tests.Method Detail |
public utilMain getUtilMain()
getUtilMain
in class utilMain
public java.sql.Connection setHoldability(java.sql.Connection conn, int holdType) throws java.sql.SQLException
setHoldability
in class utilMain
conn
- The connection.holdType
- The new holdability for the Connection object.
java.sql.SQLException
public int getHoldability(java.sql.Connection conn) throws java.sql.SQLException
getHoldability
in class utilMain
java.sql.SQLException
public java.sql.Statement createStatement(java.sql.Connection conn, int scrollType, int holdType) throws java.sql.SQLException
createStatement
in class utilMain
conn
- The connection.scrollType
- The scroll type of the cursor.
java.sql.SQLException
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |