E - The class of the actual position (an sub-class of AbstractElement and of Navigation).N - The class of the next position where the navigation go (an sub-class of AbstractElement and of Navigation).public abstract class PositionWithChanges<E extends AbstractElement & Navigation,N extends AbstractElement & Navigation> extends Object
| Constructor and Description |
|---|
PositionWithChanges(E myself,
Class<E> actualElementClass,
Class<N> nextElementClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getChangeDescription(Changes changes,
Change change,
int index,
ChangeType changeType,
String tableName)
Returns the description.
|
N |
getChangeInstance(Changes changes,
ChangeType changeType,
String tableName)
Gets an instance of change assert corresponding to the index and the type of change.
|
N |
getChangeInstance(Changes changes,
ChangeType changeType,
String tableName,
int index)
Gets an instance of change assert corresponding to the index and the type of change.
|
N |
getChangeInstanceWithPK(Changes changes,
String tableName,
Object... pksValues)
Gets an instance of change assert corresponding to the table and the primary keys.
|
protected abstract String |
getChangesDescription(ChangeType changeType,
String tableName)
Returns the description.
|
E |
getChangesInstance(Changes changes,
ChangeType changeType,
String tableName)
Gets an instance of changes corresponding to the index and the type of change.
|
public PositionWithChanges(E myself, Class<E> actualElementClass, Class<N> nextElementClass)
myself - Actual value.actualElementClass - Class of the actual element of navigation (used to make instance).nextElementClass - Class of the next element of navigation (used to make instance).public E getChangesInstance(Changes changes, ChangeType changeType, String tableName)
changes - The changeschangeType - Type of the change on which is the instance of change.tableName - Name of the table on which is the instance of change.public N getChangeInstance(Changes changes, ChangeType changeType, String tableName)
changes - The changeschangeType - Type of the change on which is the instance of change assert.tableName - Name of the table on which is the instance of change assert.public N getChangeInstance(Changes changes, ChangeType changeType, String tableName, int index)
changes - The changeschangeType - Type of the change on which is the instance of change assert.tableName - Name of the table on which is the instance of change assert.index - Index of the change on which is the instance of change assert.public N getChangeInstanceWithPK(Changes changes, String tableName, Object... pksValues)
changes - The changestableName - Name of the table on which is the instance of change assert.pksValues - The values of the primary key corresponding to the Change.protected abstract String getChangesDescription(ChangeType changeType, String tableName)
changeType - Type of the change.tableName - Name of the table.protected abstract String getChangeDescription(Changes changes, Change change, int index, ChangeType changeType, String tableName)
changes - The changeschange - The changeindex - Index of the value.changeType - Type of the change.tableName - Name of the table.Copyright © 2015–2017 AssertJ. All rights reserved.