public class Changes extends AbstractDbElement<Changes>
myself
Constructor and Description |
---|
Changes()
Constructor.
|
Changes(DataSource dataSource)
Constructor.
|
Changes(Request request)
Constructor.
|
Changes(Source source)
Constructor.
|
Changes(Table... tables)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<Change> |
getChangesList()
Returns the list of the changes.
|
Changes |
getChangesOfTable(String tableName)
Returns
Changes only on the table name in parameter. |
Changes |
getChangesOfType(ChangeType changeType)
Returns
Changes only on the change type in parameter. |
Request |
getRequest()
Returns the
Request . |
Request |
getRequestAtEndPoint()
Returns the
Request at end point. |
Request |
getRequestAtStartPoint()
Returns the
Request at start point. |
List<Table> |
getTablesAtEndPointList()
Returns the list of the
Table s at end point. |
List<Table> |
getTablesAtStartPointList()
Returns the list of the
Table s at start point. |
List<Table> |
getTablesList()
Returns the list of
Table . |
Changes |
setEndPointNow()
Sets the end point for comparison.
|
Changes |
setRequest(Request request)
Sets the
Request . |
Changes |
setStartPointNow()
Sets the start point for comparison.
|
Changes |
setTables(Table... tables)
Sets the table on which are the comparison.
|
getCatalog, getColumnLetterCase, getConnection, getDataSource, getPrimaryKeyLetterCase, getSchema, getSource, getTableLetterCase, setDataSource, setSource
public Changes()
public Changes(Source source)
source
- The Source
to connect to the database (must be not null
).NullPointerException
- If source
is null
.public Changes(DataSource dataSource)
dataSource
- The DataSource
(must be not null
).NullPointerException
- If dataSource
is null
.public Changes(Table... tables)
tables
- Table on which are the comparison.public Changes(Request request)
request
- Request on which are the comparison.public Changes setTables(Table... tables)
tables
- Table on which are the comparison.this
actual instance.public List<Table> getTablesList()
Table
.Table
.public Changes setRequest(Request request)
Request
.request
- The Request
.this
actual instance.public List<Table> getTablesAtStartPointList()
Table
s at start point.Table
s at start point.setStartPointNow()
public List<Table> getTablesAtEndPointList()
Table
s at end point.Table
s at end point.setEndPointNow()
public Request getRequestAtStartPoint()
Request
at start point.Request
at start point.setStartPointNow()
public Request getRequestAtEndPoint()
Request
at end point.Request
at end point.setEndPointNow()
public Changes setStartPointNow()
this
actual instance.public Changes setEndPointNow()
this
actual instance.AssertJDBException
- If the start point is not setpublic List<Change> getChangesList()
AssertJDBException
- If the changes are on all the tables and if the number of tables change between the
start point and the end point. It is normally impossible.public Changes getChangesOfTable(String tableName)
Changes
only on the table name in parameter.tableName
- The table nameChanges
instance.public Changes getChangesOfType(ChangeType changeType)
Changes
only on the change type in parameter.changeType
- The change typeChanges
instance.Copyright © 2020 AssertJ. All rights reserved.