| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| pack-priv UCode_CharStream | |
| private StatementFinder[] | |
| pack-priv ConnectionEnv[] | |
| private int | |
| private boolean | |
| private boolean | |
| private Hashtable | |
| private final String | ijExceptionTrace
Value of the system property ij.execptionTrace |
| pack-priv ij | |
| pack-priv ijTokenManager | |
| private boolean | |
| pack-priv LocalizedResource | |
| private boolean | |
| private final int | |
| pack-priv Stack | |
| private LocalizedOutput | |
| private final boolean | showErrorCode
True if to display the error code when displaying a SQLException. |
| Access | Constructor and Description |
|---|---|
| pack-priv | utilMain(int
The number of connections/users to test. numConnections, LocalizedOutput out)Set up the test to run with 'numConnections' connections/users. |
| pack-priv | utilMain(int
The number of connections/users to test. numConnections, LocalizedOutput out, boolean loadSystemProperties)Set up the test to run with 'numConnections' connections/users. |
| public | utilMain(int
The number of connections/users to test. numConnections, LocalizedOutput out, Hashtable<K, V> 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. ignoreErrors)Set up the test to run with 'numConnections' connections/users. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ijResult | |
| pack-priv ijResult | |
| pack-priv ijResult | Returns: NULL.The specified ResultSet. rs)Position before the first row of the specified ResultSet and return NULL to the user. |
| private void | checkScrollableCursor(ResultSet
the ResultSet to check rs, String which operation this is checked for operation)Check that the cursor is scrollable. |
| private void | |
| private void | |
| private boolean | |
| pack-priv static void | doPrompt(boolean newStatement, LocalizedOutput out, String tag)
REMIND: eventually this might be part of StatementFinder, used at each carriage return to show that it is still "live" when it is reading multi-line input. |
| private void | |
| pack-priv ijResult | |
| pack-priv int | Returns: The current row numberThe specified ResultSet. rs)Get the current row number |
| public void | go(LocalizedInput[]
source for input to ij in, LocalizedOutput sink for output from ij out)run ij over the specified input, sending output to the specified output. |
| public int | |
| private void | handleSQLException(LocalizedOutput out, SQLException e)
This routine displays SQL exceptions and decides whether they are fatal or not, based on the ignoreErrors field. |
| public void | |
| pack-priv ijResult | |
| pack-priv void | |
| pack-priv void | |
| pack-priv ijResult | |
| pack-priv ijResult | |
| private int | |
| pack-priv void | |
| private void |
| BUFFEREDFILESIZE | back to summary |
|---|---|
| public static final int BUFFEREDFILESIZE | |
| charStream | back to summary |
|---|---|
| pack-priv UCode_CharStream charStream | |
| commandGrabber | back to summary |
|---|---|
| private StatementFinder[] commandGrabber | |
| connEnv | back to summary |
|---|---|
| pack-priv ConnectionEnv[] connEnv | |
| currCE | back to summary |
|---|---|
| private int currCE | |
| fileInput | back to summary |
|---|---|
| private boolean fileInput | |
| firstRun | back to summary |
|---|---|
| private boolean firstRun | |
| ignoreErrors | back to summary |
|---|---|
| private Hashtable<K, V> ignoreErrors | |
| ijExceptionTrace | back to summary |
|---|---|
| private final String ijExceptionTrace Value of the system property ij.execptionTrace | |
| ijParser | back to summary |
|---|---|
| pack-priv ij ijParser | |
| ijTokMgr | back to summary |
|---|---|
| pack-priv ijTokenManager ijTokMgr | |
| initialFileInput | back to summary |
|---|---|
| private boolean initialFileInput | |
| langUtil | back to summary |
|---|---|
| pack-priv LocalizedResource langUtil | |
| mtUse | back to summary |
|---|---|
| private boolean mtUse | |
| numConnections | back to summary |
|---|---|
| private final int numConnections | |
| oldGrabbers | back to summary |
|---|---|
| pack-priv Stack<StatementFinder> oldGrabbers | |
| out | back to summary |
|---|---|
| private LocalizedOutput out | |
| showErrorCode | back to summary |
|---|---|
| private final boolean showErrorCode True if to display the error code when displaying a SQLException. | |
| utilMain | back to summary |
|---|---|
| pack-priv utilMain(int numConnections, LocalizedOutput out) throws ijFatalException Set up the test to run with 'numConnections' connections/users.
| |
| utilMain | back to summary |
|---|---|
| pack-priv utilMain(int numConnections, LocalizedOutput out, boolean loadSystemProperties) throws ijFatalException Set up the test to run with 'numConnections' connections/users. This overload allows the choice of whether the system properties will be used or not.
| |
| utilMain | back to summary |
|---|---|
| public utilMain(int numConnections, LocalizedOutput out, Hashtable<K, V> ignoreErrors) throws ijFatalException Set up the test to run with 'numConnections' connections/users.
| |
| absolute | back to summary |
|---|---|
| pack-priv ijResult absolute(ResultSet rs, int row) throws SQLException Position on the specified row of the specified ResultSet.
| |
| afterLast | back to summary |
|---|---|
| pack-priv ijResult afterLast(ResultSet rs) throws SQLException Position after the last row of the specified ResultSet and return NULL to the user.
| |
| beforeFirst | back to summary |
|---|---|
| pack-priv ijResult beforeFirst(ResultSet rs) throws SQLException Position before the first row of the specified ResultSet and return NULL to the user.
| |
| checkScrollableCursor | back to summary |
|---|---|
| private void checkScrollableCursor(ResultSet rs, String operation) throws ijException, SQLException Check that the cursor is scrollable.
| |
| cleanupGo | back to summary |
|---|---|
| private void cleanupGo(LocalizedInput[] in) Perform cleanup after a script has been run. Close the input streams if required and shutdown derby on an exit. | |
| displayResult | back to summary |
|---|---|
| private void displayResult(LocalizedOutput out, ijResult result, Connection conn) throws SQLException | |
| doCatch | back to summary |
|---|---|
| private boolean doCatch(String command) catch processing on failed commands. This really ought to be in ij somehow, but it was easier to catch in Main. | |
| doPrompt | back to summary |
|---|---|
| pack-priv static void doPrompt(boolean newStatement, LocalizedOutput out, String tag) REMIND: eventually this might be part of StatementFinder, used at each carriage return to show that it is still "live" when it is reading multi-line input. | |
| doTrace | back to summary |
|---|---|
| private void doTrace(Throwable t) stack trace dumper | |
| first | back to summary |
|---|---|
| pack-priv ijResult first(ResultSet rs) throws SQLException Position on the first row of the specified ResultSet and return that row to the user.
| |
| getCurrentRowNumber | back to summary |
|---|---|
| pack-priv int getCurrentRowNumber(ResultSet rs) throws SQLException Get the current row number
| |
| go | back to summary |
|---|---|
| public void go(LocalizedInput[] in, LocalizedOutput out) throws ijFatalException run ij over the specified input, sending output to the specified output. Any prior input and output will be lost.
| |
| goScript | back to summary |
|---|---|
| public int goScript(Connection conn, LocalizedInput in) Support to run a script. Performs minimal setup to set the passed in connection into the existing ij setup, ConnectionEnv. | |
| handleSQLException | back to summary |
|---|---|
| private void handleSQLException(LocalizedOutput out, SQLException e) throws ijFatalException This routine displays SQL exceptions and decides whether they are fatal or not, based on the ignoreErrors field. If they are fatal, an ijFatalException is thrown. Lifted from ij/util.java:ShowSQLException | |
| initFromEnvironment | back to summary |
|---|---|
| public void initFromEnvironment() Initialize the connections from the environment. | |
| last | back to summary |
|---|---|
| pack-priv ijResult last(ResultSet rs) throws SQLException Position on the last row of the specified ResultSet and return that row to the user.
| |
| newInput | back to summary |
|---|---|
| pack-priv void newInput(String fileName) | |
| newResourceInput | back to summary |
|---|---|
| pack-priv void newResourceInput(String resourceName) | |
| previous | back to summary |
|---|---|
| pack-priv ijResult previous(ResultSet rs) throws SQLException Position on the previous row of the specified ResultSet and return that row to the user.
| |
| relative | back to summary |
|---|---|
| pack-priv ijResult relative(ResultSet rs, int row) throws SQLException Move the cursor position by the specified amount.
| |
| runScriptGuts | back to summary |
|---|---|
| private int runScriptGuts() Run the guts of the script. Split out to allow calling from the full ij and the minimal goScript.
| |
| setMtUse | back to summary |
|---|---|
| pack-priv void setMtUse(boolean b) | |
| supportIJProperties | back to summary |
|---|---|
| private void supportIJProperties(ConnectionEnv env) | |