| java.lang.Object org.apache.derby.impl.tools.ij.utilMain org.apache.derby.impl.tools.ij.utilMain14
utilMain14 | class utilMain14 extends utilMain (Code) | | This class is utilities specific to the two ij Main's.
This factoring enables sharing the functionality for
single and dual connection ij runs.
author: jerry |
Constructor Summary | |
| utilMain14(int numConnections, LocalizedOutput out) Set up the test to run with 'numConnections' connections/users. | | utilMain14(int numConnections, LocalizedOutput out, Hashtable ignoreErrors) Set up the test to run with 'numConnections' connections/users.
Parameters: numConnections - The number of connections/users to test. Parameters: ignoreErrors - A list of errors to ignore. |
utilMain14 | utilMain14(int numConnections, LocalizedOutput out) throws ijFatalException(Code) | | Set up the test to run with 'numConnections' connections/users.
Parameters: numConnections - The number of connections/users to test. |
utilMain14 | utilMain14(int numConnections, LocalizedOutput out, Hashtable ignoreErrors) throws ijFatalException(Code) | | Set up the test to run with 'numConnections' connections/users.
Parameters: numConnections - The number of connections/users to test. Parameters: ignoreErrors - A list of errors to ignore. If null,all errors are printed out and nothingis fatal. If non-null, if an error ishit and it is in this list, it is silently ignore. Otherwise, an ijFatalException isthrown. ignoreErrors is used for stresstests. |
createStatement | Statement createStatement(Connection conn, int scrollType, int holdType) throws SQLException(Code) | | Create the right kind of statement (scrolling or not)
off of the specified connection.
Parameters: conn - The connection. Parameters: scrollType - The scroll type of the cursor. The statement. |
getHoldability | int getHoldability(Connection conn) throws SQLException(Code) | | JDBC 3.0
Retrieves the current holdability of ResultSet objects created using this
Connection object.
The holdability, one of ResultSet.HOLD_CURSORS_OVER_COMMITor ResultSet.CLOSE_CURSORS_AT_COMMIT |
setHoldability | Connection setHoldability(Connection conn, int holdType) throws SQLException(Code) | | Connections by default create ResultSet objects with holdability true. This method can be used
to change the holdability of the connection by passing one of ResultSet.HOLD_CURSORS_OVER_COMMIT
or ResultSet.CLOSE_CURSORS_AT_COMMIT
Parameters: conn - The connection. Parameters: holdType - The new holdability for the Connection object. The connection object with holdability set to passed value. |
Methods inherited from org.apache.derby.impl.tools.ij.utilMain | ijResult absolute(ResultSet rs, int row) throws SQLException(Code)(Java Doc) ijResult afterLast(ResultSet rs) throws SQLException(Code)(Java Doc) ijResult beforeFirst(ResultSet rs) throws SQLException(Code)(Java Doc) Statement createStatement(Connection conn, int scrollType, int holdType) throws SQLException(Code)(Java Doc) static void doPrompt(boolean newStatement, LocalizedOutput out, String tag)(Code)(Java Doc) ijResult first(ResultSet rs) throws SQLException(Code)(Java Doc) Properties getConnAttributeDefaults()(Code)(Java Doc) int getCurrentRowNumber(ResultSet rs) throws SQLException(Code)(Java Doc) int getHoldability(Connection conn) throws SQLException(Code)(Java Doc) public void go(LocalizedInput[] in, LocalizedOutput out, Properties connAttributeDefaults) throws ijFatalException(Code)(Java Doc) public int goScript(Connection conn, LocalizedInput in)(Code)(Java Doc) public void initFromEnvironment()(Code)(Java Doc) ijResult last(ResultSet rs) throws SQLException(Code)(Java Doc) void newInput(String fileName)(Code)(Java Doc) void newResourceInput(String resourceName)(Code)(Java Doc) ijResult previous(ResultSet rs) throws SQLException(Code)(Java Doc) ijResult relative(ResultSet rs, int row) throws SQLException(Code)(Java Doc) final public Object run()(Code)(Java Doc) Connection setHoldability(Connection conn, int holdType) throws SQLException(Code)(Java Doc) void setMtUse(boolean b)(Code)(Java Doc)
|
|
|