Package guru.mikelue.jdut.operation
Interface DataRowOperator
-
- All Known Implementing Classes:
IdentityInsertOperator
,TableBasedOperator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DataRowOperator
Operator to execute code by fedDataRow
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DataRowOperator.SurroundOperator
The operator for surrounding ofDataRowOperator
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static DataRow
none(Connection conn, DataRow dataRow)
Does nothing.DataRow
operate(Connection connection, DataRow dataRow)
OperatesDataRow
byConnection
.default DataRowOperator
surroundedBy(DataRowOperator.SurroundOperator surroundOperator)
Surrounds this instance byDataRowOperator.SurroundOperator
.default DataGrainOperator
toDataGrainOperator()
Converts this instance toDataGrainOperator
.default DataRowsOperator
toDataRowsOperator()
Converts this instance toDataRowsOperator
.
-
-
-
Method Detail
-
none
static DataRow none(Connection conn, DataRow dataRow)
Does nothing.- Parameters:
conn
- The connection objectdataRow
- The object of data row- Returns:
- The same data row
-
toDataGrainOperator
default DataGrainOperator toDataGrainOperator()
Converts this instance toDataGrainOperator
.- Returns:
- The operator for
DataGrain
-
toDataRowsOperator
default DataRowsOperator toDataRowsOperator()
Converts this instance toDataRowsOperator
.
-
surroundedBy
default DataRowOperator surroundedBy(DataRowOperator.SurroundOperator surroundOperator)
Surrounds this instance byDataRowOperator.SurroundOperator
.- Parameters:
surroundOperator
- The operator to surrounding self- Returns:
- new operator of data row
-
operate
DataRow operate(Connection connection, DataRow dataRow) throws SQLException
OperatesDataRow
byConnection
.- Parameters:
connection
- The connection of databasedataRow
- The data grain to be operated- Returns:
- The processed data row
- Throws:
SQLException
- The SQL exception defined by JDBC
-
-