| Package | Description |
|---|---|
| org.specrunner.sql | |
| org.specrunner.sql.database | |
| org.specrunner.sql.database.impl | |
| org.specrunner.sql.meta | |
| org.specrunner.sql.meta.impl | |
| org.specrunner.sql.report |
| Modifier and Type | Method and Description |
|---|---|
String |
PluginCompareBase.createTableSelect(Schema schema,
Table table)
Creates the SQL to be used by comparison algorithm.
|
IResultEnumerator |
PluginCompareBase.getEnumerator(Table table,
ResultSet rsExpected,
ResultSet rsReceived)
Abstraction of enumeration.
|
void |
PluginCompareBase.populateTableReport(Schema schema,
IDataFilter dataFilter,
SchemaReport report,
Table table,
ResultSet rsExpected,
ResultSet rsReceived)
Populate schema report.
|
| Constructor and Description |
|---|
ResultSetEnumerator(Table table,
Boolean virtual,
ResultSet expected,
ResultSet received)
Result set enumerator.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
DatabaseTableEvent.getTable() |
Table |
DatabaseRegisterEvent.getTable() |
| Modifier and Type | Method and Description |
|---|---|
SqlWrapper |
ISqlWrapperFactory.createInputWrapper(Table table,
CommandType command,
IRegister register,
int expectedCount)
Create wrapper for inputs.
|
SqlWrapper |
ISqlWrapperFactory.createOutputWrapper(Table table,
CommandType command,
IRegister register,
int expectedCount)
Create wrapper for outputs.
|
PreparedStatement |
IStatementFactory.getInput(Connection connection,
String sql,
Table table)
Get statement by SQL.
|
PreparedStatement |
IStatementFactory.getOutput(Connection connection,
String sql,
Table table)
Get statement by SQL.
|
void |
IIdManager.readKeys(SqlWrapper wrapper,
Table table,
IRegister register,
PreparedStatement pstmt)
Read keys from a prepared statement.
|
| Constructor and Description |
|---|
DatabaseRegisterEvent(IContext context,
IResultSet result,
IDatabase database,
Connection connection,
Table table,
IRegister register,
SqlWrapper wrapper,
Map<Integer,Object> indexesToValues) |
DatabaseTableEvent(IContext context,
IResultSet result,
TableAdapter adapter,
IDatabase database,
Connection connection,
Table table,
EMode mode) |
| Modifier and Type | Method and Description |
|---|---|
Table |
RegisterDefault.getParent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DatabaseDefault.addMissingValues(EMode mode,
Table table,
IDataFilter afilter,
IRegister register,
Map<String,Value> filled,
Map<String,CellAdapter> missing)
Add missing values to insert value set.
|
protected void |
DatabaseCountListener.checkCount(Connection con,
Table table,
int rows)
Check if the given table count match the number of expected items.
|
protected SqlWrapper |
SqlWrapperFactoryDefault.createDeleteWrapper(Table table,
IRegister register,
int expectedCount)
Creates a delete wrapper.
|
SqlWrapper |
SqlWrapperFactoryDefault.createInputWrapper(Table table,
CommandType command,
IRegister register,
int expectedCount) |
protected SqlWrapper |
SqlWrapperFactoryDefault.createInsertWrapper(Table table,
IRegister register,
int expectedCount)
Creates an insert wrapper.
|
protected PreparedStatement |
AbstractStatementFactory.createInStatement(Connection connection,
String sql,
Table table)
Create the prepared statement.
|
SqlWrapper |
SqlWrapperFactoryDefault.createOutputWrapper(Table table,
CommandType command,
IRegister register,
int expectedCount) |
protected String |
IdManagerDefault.createSelect(Table table)
Create select SQL.
|
protected SqlWrapper |
SqlWrapperFactoryDefault.createSelectWrapper(Table table,
CommandType command,
IRegister register,
int expectedCount)
Creates an select wrapper based on command type.
|
protected SqlWrapper |
SqlWrapperFactoryDefault.createUpdateWrapper(Table table,
IRegister register,
int expectedCount)
Creates an update wrapper.
|
PreparedStatement |
StatementFactoryUncached.getInput(Connection connection,
String sql,
Table table) |
PreparedStatement |
StatementFactoryDefault.getInput(Connection connection,
String sql,
Table table) |
PreparedStatement |
StatementFactoryUncached.getOutput(Connection connection,
String sql,
Table table) |
PreparedStatement |
StatementFactoryDefault.getOutput(Connection connection,
String sql,
Table table) |
protected void |
DatabaseDefault.performDelete(IContext context,
IResultSet result,
Connection connection,
Table table,
IRegister register,
int expectedCount)
Perform database deletes.
|
protected void |
DatabaseDefault.performIn(IContext context,
IResultSet result,
Connection connection,
SqlWrapper wrapper,
Table table,
IRegister register)
Perform database commands.
|
protected void |
DatabaseDefault.performInsert(IContext context,
IResultSet result,
Connection connection,
EMode mode,
Table table,
IDataFilter afilter,
IRegister register,
Map<String,Value> filled,
Map<String,CellAdapter> missing)
Perform database inserts.
|
protected void |
DatabaseDefault.performOut(IContext context,
IResultSet result,
Connection connection,
SqlWrapper wrapper,
Table table,
IRegister register)
Perform database selects.
|
protected void |
DatabaseDefault.performSelect(IContext context,
IResultSet result,
Connection connection,
Table table,
CommandType command,
IRegister register,
int expectedCount)
Perform database select verifications.
|
protected void |
DatabaseDefault.performUpdate(IContext context,
IResultSet result,
Connection connection,
Table table,
IRegister register,
int expectedCount)
Perform database updates.
|
protected Map<Integer,Object> |
DatabaseDefault.prepareInputValues(IContext context,
Table table,
IRegister register,
Map<String,Integer> namesToIndexes)
Prepare values to use in insert/update/delete.
|
protected void |
DatabaseDefault.processTable(IContext context,
IResultSet result,
TableAdapter adapter,
Connection connection,
EMode mode,
IDataFilter afilter,
Table table)
Process a data table.
|
protected void |
DatabaseDefault.readHeadersColumns(IContext context,
EMode mode,
Table table,
List<CellAdapter> headers,
Column[] columns,
IDataFilter afilter)
Read headers information.
|
void |
IdManagerDefault.readKeys(SqlWrapper wrapper,
Table table,
IRegister register,
PreparedStatement pstmt) |
protected StringBuilder |
SqlWrapperFactoryDefault.sqlDelete(Table table,
IRegister register,
Map<String,Integer> namesToIndexes)
Creates the delete SQL.
|
protected StringBuilder |
SqlWrapperFactoryDefault.sqlInsert(Table table,
IRegister register,
Map<String,Integer> namesToIndexes)
Creates the insert SQL.
|
protected StringBuilder |
SqlWrapperFactoryDefault.sqlSelect(Table table,
IRegister register,
Map<String,Integer> namesToIndexes)
Creates the select SQL.
|
protected StringBuilder |
SqlWrapperFactoryDefault.sqlUpdate(Table table,
IRegister register,
Map<String,Integer> namesToIndexes)
Creates the update SQL.
|
| Constructor and Description |
|---|
RegisterDefault(Table parent)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
Table.add(Column column)
Add a column.
|
Table |
Table.copy() |
Table |
Schema.getAlias(String alias)
Get a table by its alias.
|
Table |
Schema.getName(String name)
Get a table by its name.
|
Table |
IRegister.getParent()
Parent table.
|
Table |
Column.getParent()
Get the column table.
|
Table |
Table.setAlias(String alias)
Set table alias.
|
Table |
Table.setColumns(List<Column> columns)
Set the columns.
|
Table |
Table.setName(String name)
Set the name.
|
Table |
Table.setParent(Schema parent)
Set the schema.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Table> |
Schema.getAliasToTables()
Gets the alias mapping.
|
Map<String,Table> |
Schema.getNamesToTables()
Gets the name mapping.
|
List<Table> |
Schema.getTables()
Get the column set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IDataFilter.accept(EMode mode,
Table table)
Check if a table in a schema is accepted.
|
Schema |
Schema.add(Table table)
Add a table to the schema.
|
void |
Table.merge(Table other) |
Column |
Column.setParent(Table parent)
Set the table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Schema.setAliasToTables(Map<String,Table> aliasToTables)
Set the alias mapping.
|
void |
Schema.setNamesToTables(Map<String,Table> namesToTables)
Sets the name mapping.
|
Schema |
Schema.setTables(List<Table> tables)
Set the tables.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DataFilterNegative.accept(EMode mode,
Table table) |
boolean |
DataFilterDefault.accept(EMode mode,
Table table) |
static void |
UtilSchema.setupColumn(IContext context,
Table table,
Column column,
INodeHolder holder)
Setup a column in a conservative way.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
TableReport.getTable()
Get the report table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TableReport.setTable(Table table)
Set the report table.
|
| Constructor and Description |
|---|
TableReport(Table table)
Constructor.
|
Copyright © 2017. All rights reserved.