public class DatabaseEqualityState extends Object
| Constructor and Description |
|---|
DatabaseEqualityState(String firstSnapshotName,
String secondSnapshotName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumnPresentInOneSnapshotOnly(String snapshotName,
String table,
String column) |
void |
addDifferentNumberOfRows(String firstSnapshotName,
String secondSnapshotName,
int firstNumberOfRows,
int secondNumberOfRows,
String table) |
void |
addDifferentPrimaryKeys(String firstSnapshotName,
String secondSnapshotName,
String firstPrimaryKey,
String secondPrimaryKey,
String table) |
void |
addIndexPresentInOneSnapshotOnly(String snapshotName,
String table,
String indexName,
String index) |
void |
addRowPresentInOneSnapshotOnly(String snapshotName,
String table,
String rowValues) |
void |
addTablePresentInOneSnapshotOnly(String snapshotName,
String table) |
List<Map<String,String>> |
getColumnsPresentInOneSnapshotOnly(String snapshot,
String table)
Get a list of unique columns for the given table and snapshot.
|
List<String> |
getColumnsPresentInOneSnapshotOnlyAsStrings(String snapshot,
String table)
Get a list of unique columns for the given table and snapshot.
|
Integer |
getDifferentNumberOfRows(String snapshot,
String table)
Get the number of rows for the given table and snapshot.
|
String |
getDifferentPrimaryKeys(String snapshot,
String table)
Get the different primary keys per table and snapshot.
|
String |
getFirstSnapshotName() |
List<Map<String,String>> |
getIndexesPresentInOneSnapshotOnly(String snapshot,
String table)
Get a list of unique indexes for the given table and snapshot.
|
List<String> |
getIndexesPresentInOneSnapshotOnlyAsStrings(String snapshot,
String table)
Get a list of unique indexes for the given table and snapshot.
|
List<Map<String,String>> |
getRowsPresentInOneSnapshotOnly(String snapshot,
String table)
Get a list of unique rows for the given table and snapshot.
|
List<String> |
getRowsPresentInOneSnapshotOnlyAsStrings(String snapshot,
String table)
Get a list of unique rows for the given table and snapshot.
|
String |
getSecondSnapshotName() |
List<String> |
getTablesPresentInOneSnapshotOnly(String snapshot) |
List<String> |
getTablesWithColumnsPresentInOneSnapshotOnly(String snapshot)
Get list of tables with unique columns
|
List<String> |
getTablesWithDifferentNumberOfRows(String snapshot)
Get list of tables with different number of rows
Note that the list of tables is the same for both snapshots
|
List<String> |
getTablesWithDifferentPrimaryKeys(String snapshot)
Get list of tables with different primary keys
Note that the list of tables is the same for both snapshots
|
List<String> |
getTablesWithIndexesPresentInOneSnapshotOnly(String snapshot)
Get list of tables with unique indexes
|
List<String> |
getTablesWithRowsPresentInOneSnapshotOnly(String snapshot)
Get list of tables with unique rows
|
boolean |
hasDifferences() |
public String getFirstSnapshotName()
public String getSecondSnapshotName()
public boolean hasDifferences()
public List<String> getTablesPresentInOneSnapshotOnly(String snapshot)
snapshot - snapshot namepublic void addTablePresentInOneSnapshotOnly(String snapshotName, String table)
public List<String> getTablesWithDifferentPrimaryKeys(String snapshot)
snapshot - snapshot namepublic String getDifferentPrimaryKeys(String snapshot, String table)
snapshot - snapshot nametable - table namepublic void addDifferentPrimaryKeys(String firstSnapshotName, String secondSnapshotName, String firstPrimaryKey, String secondPrimaryKey, String table)
public List<String> getTablesWithDifferentNumberOfRows(String snapshot)
snapshot - snapshot namepublic Integer getDifferentNumberOfRows(String snapshot, String table)
snapshot - snapshot nametable - table namepublic void addDifferentNumberOfRows(String firstSnapshotName, String secondSnapshotName, int firstNumberOfRows, int secondNumberOfRows, String table)
public List<String> getTablesWithColumnsPresentInOneSnapshotOnly(String snapshot)
snapshot - snapshot namepublic List<Map<String,String>> getColumnsPresentInOneSnapshotOnly(String snapshot, String table)
snapshot - snapshot nametable - table namepublic List<String> getColumnsPresentInOneSnapshotOnlyAsStrings(String snapshot, String table)
snapshot - snapshot nametable - table namepublic void addColumnPresentInOneSnapshotOnly(String snapshotName, String table, String column)
public List<String> getTablesWithIndexesPresentInOneSnapshotOnly(String snapshot)
snapshot - snapshot namepublic List<Map<String,String>> getIndexesPresentInOneSnapshotOnly(String snapshot, String table)
snapshot - snapshot nametable - table namepublic List<String> getIndexesPresentInOneSnapshotOnlyAsStrings(String snapshot, String table)
snapshot - snapshot nametable - table namepublic void addIndexPresentInOneSnapshotOnly(String snapshotName, String table, String indexName, String index)
public List<String> getTablesWithRowsPresentInOneSnapshotOnly(String snapshot)
snapshot - snapshot namepublic List<Map<String,String>> getRowsPresentInOneSnapshotOnly(String snapshot, String table)
snapshot - snapshot nametable - table namepublic List<String> getRowsPresentInOneSnapshotOnlyAsStrings(String snapshot, String table)
snapshot - snapshot nametable - table nameCopyright © 2017 Axway Software. All rights reserved.