Package org.assertj.db.navigation
Class PositionWithColumnsChange<E extends AbstractElement<E> & Navigation,N extends AbstractElement<N> & Navigation>
java.lang.Object
org.assertj.db.navigation.PositionWithColumnsChange<E,N>
- Type Parameters:
E
- The class of the actual position (an sub-class ofAbstractElement
and ofNavigation
).N
- The class of the next position where the navigation go (an sub-class ofAbstractElement
and ofNavigation
).
public abstract class PositionWithColumnsChange<E extends AbstractElement<E> & Navigation,N extends AbstractElement<N> & Navigation>
extends Object
Position during navigation.
- Since:
- 1.1.0
- Author:
- Régis Pouiller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChangeColumnInstance
(Change change) Gets an instance of element corresponding to the index.getChangeColumnInstance
(Change change, int index) Gets an instance of element corresponding to the index.getChangeColumnInstance
(Change change, String columnName, CaseComparison comparison) Gets an instance of element corresponding to the column name in parameter.protected abstract String
getDescription
(int index, String columnName) Returns the description.Gets an instance of next modified element.getModifiedChangeColumnInstance
(Change change, int index) Gets an instance of modified element corresponding to the index.getModifiedChangeColumnInstance
(Change change, String columnName, CaseComparison comparison) Gets an instance of modified element corresponding to the column name in parameter.
-
Constructor Details
-
PositionWithColumnsChange
Constructor.- Parameters:
myself
- Actual value.elementClass
- Class of the element of navigation (used to make instance).
-
-
Method Details
-
getChangeColumnInstance
Gets an instance of element corresponding to the index. If this instance is already instanced, the method returns it from the cache.- Parameters:
change
- The change- Returns:
- The instance.
- Throws:
AssertJDBException
- If theindex
is out of the bounds.
-
getChangeColumnInstance
Gets an instance of element corresponding to the index. If this instance is already instanced, the method returns it from the cache.- Parameters:
change
- The changeindex
- Index of the instance.- Returns:
- The instance.
- Throws:
AssertJDBException
- If theindex
is out of the bounds.
-
getChangeColumnInstance
Gets an instance of element corresponding to the column name in parameter. If this instance is already instanced, the method returns it from the cache.- Parameters:
change
- The changecolumnName
- Name of the column of the element on which is the instance of element of navigation.comparison
- Case comparison for column name.- Returns:
- The instance.
- Throws:
AssertJDBException
- If theindex
is out of the bounds.
-
getModifiedChangeColumnInstance
Gets an instance of next modified element. If this instance is already instanced, the method returns it from the cache.- Parameters:
change
- The change- Returns:
- The instance.
- Throws:
AssertJDBException
- If theindex
is out of the bounds.
-
getModifiedChangeColumnInstance
Gets an instance of modified element corresponding to the index. If this instance is already instanced, the method returns it from the cache.- Parameters:
change
- The changeindex
- Index of the instance.- Returns:
- The instance.
- Throws:
AssertJDBException
- If theindex
is out of the bounds.
-
getModifiedChangeColumnInstance
public N getModifiedChangeColumnInstance(Change change, String columnName, CaseComparison comparison) Gets an instance of modified element corresponding to the column name in parameter. If this instance is already instanced, the method returns it from the cache.- Parameters:
change
- The changecolumnName
- Name of the column of the element on which is the instance of element of navigation.comparison
- Case comparison for column name.- Returns:
- The instance.
- Throws:
AssertJDBException
- If theindex
is out of the bounds.
-
getDescription
Returns the description.- Parameters:
index
- Index of the value.columnName
- Name of the column of the element.- Returns:
- The description
-