This context is passed to
MockDataProvider#execute(MockExecuteContext), as a context object
containing all relevant information about a given query execution.
MockDataProvider
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Object[][] | |
| private final int[] | |
| private final String[] | |
| private final int[] | |
| private final String[] |
| Access | Constructor and Description |
|---|---|
| public | MockExecuteContext(String[]
The SQL statement(s) sql, Object[][] The bind variable(s) bindings)Create a new mock execution context. |
| public | MockExecuteContext(String[]
The SQL statement(s) sql, Object[][] The bind variable(s) bindings, int The corresponding value from
autoGeneratedKeys)MockStatementCreate a new mock execution context. |
| public | MockExecuteContext(String[]
The SQL statement(s) sql, Object[][] The bind variable(s) bindings, int[] The corresponding value from
columnIndexes)MockStatementCreate a new mock execution context. |
| public | MockExecuteContext(String[]
The SQL statement(s) sql, Object[][] The bind variable(s) bindings, String[] The corresponding value from
columnNames)MockStatementCreate a new mock execution context. |
| pack-priv | MockExecuteContext(String[] sql, Object[][] bindings, int autoGeneratedKeys, int[] columnIndexes, String[] columnNames, int[] outParameterTypes)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The corresponding value fromMockStatement.The corresponding value from |
| public boolean | Returns: Whether this execution context is a from a batch statement.Whether this execution context is a from a batch statement. |
| public Object[][] | Returns: All bind variables of a "single batch" statment, or an array of length1 with the bind variables of a single
statement.Get all bind variables of a "single batch" statement. |
| public boolean | Returns: Whether this execution context is from a "multi batch" statement.Whether this execution context is from a "multi batch" statement. |
| public boolean | Returns: Whether this execution context is from a "single batch" statement.Whether this execution context is from a "single batch" statement. |
| public String[] | Returns: All batch SQL statements of a "multi batch" statement, or an array of length1 with the single statement.Get all batch SQL statements of a "multi batch" statement. |
| public Object[] | Returns: The single (or first "single batch") set of bind variables.Get the single (or first "single batch") set of bind variables. |
| public int[] | Returns: The corresponding value fromMockStatement.The corresponding value from |
| public String[] | Returns: The corresponding value fromMockStatement.The corresponding value from |
| public int[] | Returns: the types of registered out parameters, if any.Get the types of registered out parameters, if any. |
| public String | Returns: The single (or first "multi batch") SQL statement.Get the single (or first "multi batch") SQL statement. |
| autoGeneratedKeys | back to summary |
|---|---|
| private final int autoGeneratedKeys | |
| bindings | back to summary |
|---|---|
| private final Object[][] bindings | |
| columnIndexes | back to summary |
|---|---|
| private final int[] columnIndexes | |
| columnNames | back to summary |
|---|---|
| private final String[] columnNames | |
| outParameterTypes | back to summary |
|---|---|
| private final int[] outParameterTypes | |
| sql | back to summary |
|---|---|
| private final String[] sql | |
| MockExecuteContext | back to summary |
|---|---|
| public MockExecuteContext(String[] sql, Object[][] bindings) Create a new mock execution context. | |
| MockExecuteContext | back to summary |
|---|---|
| public MockExecuteContext(String[] sql, Object[][] bindings, int autoGeneratedKeys) Create a new mock execution context. | |
| MockExecuteContext | back to summary |
|---|---|
| public MockExecuteContext(String[] sql, Object[][] bindings, int[] columnIndexes) Create a new mock execution context.
| |
| MockExecuteContext | back to summary |
|---|---|
| public MockExecuteContext(String[] sql, Object[][] bindings, String[] columnNames) Create a new mock execution context.
| |
| MockExecuteContext | back to summary |
|---|---|
| pack-priv MockExecuteContext(String[] sql, Object[][] bindings, int autoGeneratedKeys, int[] columnIndexes, String[] columnNames, int[] outParameterTypes) | |
| autoGeneratedKeys | back to summary |
|---|---|
| public int autoGeneratedKeys() The corresponding value from
| |
| batch | back to summary |
|---|---|
| public boolean batch() Whether this execution context is a from a batch statement.
| |
| batchBindings | back to summary |
|---|---|
| public Object[][] batchBindings() Get all bind variables of a "single batch" statement.
| |
| batchMultiple | back to summary |
|---|---|
| public boolean batchMultiple() Whether this execution context is from a "multi batch" statement.
| |
| batchSingle | back to summary |
|---|---|
| public boolean batchSingle() Whether this execution context is from a "single batch" statement.
| |
| batchSQL | back to summary |
|---|---|
| public String[] batchSQL() Get all batch SQL statements of a "multi batch" statement.
| |
| bindings | back to summary |
|---|---|
| public Object[] bindings() Get the single (or first "single batch") set of bind variables.
| |
| columnIndexes | back to summary |
|---|---|
| public int[] columnIndexes() The corresponding value from
| |
| columnNames | back to summary |
|---|---|
| public String[] columnNames() The corresponding value from
| |
| outParameterTypes | back to summary |
|---|---|
| public int[] outParameterTypes() Get the types of registered out parameters, if any.
| |
| sql | back to summary |
|---|---|
| public String sql() Get the single (or first "multi batch") SQL statement.
| |