java.lang.Object
org.apache.derby.impl.tools.ij.utilMain
org.apache.derby.impl.tools.ij.utilMain14
- All Implemented Interfaces:
- java.security.PrivilegedAction
- public class utilMain14
- extends utilMain
This class is utilities specific to the two ij Main's.
This factoring enables sharing the functionality for
single and dual connection ij runs.
| 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 |
JDBC_NOTSUPPORTED
private static final java.lang.String JDBC_NOTSUPPORTED
- See Also:
- Constant Field Values
utilMain14
public utilMain14(int numConnections,
org.apache.derby.iapi.tools.i18n.LocalizedOutput out)
throws ijFatalException
- Set up the test to run with 'numConnections' connections/users.
utilMain14
public utilMain14(int numConnections,
org.apache.derby.iapi.tools.i18n.LocalizedOutput out,
java.util.Hashtable ignoreErrors)
throws ijFatalException
- Set up the test to run with 'numConnections' connections/users.
getUtilMain
public utilMain getUtilMain()
- Return the right utilMain to use. (JDBC 1.1 or 2.0 or 3.0)
- Overrides:
getUtilMain in class utilMain
setHoldability
public java.sql.Connection setHoldability(java.sql.Connection conn,
int holdType)
throws java.sql.SQLException
- 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
- Overrides:
setHoldability in class utilMain
getHoldability
public int getHoldability(java.sql.Connection conn)
throws java.sql.SQLException
- JDBC 3.0
Retrieves the current holdability of ResultSet objects created using this
Connection object.
- Overrides:
getHoldability in class utilMain
createStatement
public java.sql.Statement createStatement(java.sql.Connection conn,
int scrollType,
int holdType)
throws java.sql.SQLException
- Create the right kind of statement (scrolling or not)
off of the specified connection.
- Overrides:
createStatement in class utilMain