Package guru.mikelue.jdut.operation
Interface DataRowsOperator
-
- 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 DataRowsOperator
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDataRowsOperator.SurroundOperatorThe operator for surrounding ofDataRowsOperator.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static List<DataRow>none(Connection conn, List<DataRow> dataRows)Does nothing.List<DataRow>operate(Connection connection, List<DataRow> dataRows)default DataRowsOperatorsurroundedBy(DataRowsOperator.SurroundOperator surroundOperator)Surrounds this instance byDataRowsOperator.SurroundOperator.default DataGrainOperatortoDataGrainOperator()Converts this instance toDataGrainOperator.
-
-
-
Method Detail
-
none
static List<DataRow> none(Connection conn, List<DataRow> dataRows)
Does nothing.- Parameters:
conn- The connection objectdataRows- The data of rows- Returns:
- The same data rows
-
toDataGrainOperator
default DataGrainOperator toDataGrainOperator()
Converts this instance toDataGrainOperator.- Returns:
- The operator for
DataGrain
-
surroundedBy
default DataRowsOperator surroundedBy(DataRowsOperator.SurroundOperator surroundOperator)
Surrounds this instance byDataRowsOperator.SurroundOperator.- Parameters:
surroundOperator- The operator to surrounding staff- Returns:
- new operator of data rows
-
operate
List<DataRow> operate(Connection connection, List<DataRow> dataRows) throws SQLException
- Parameters:
connection- The connection of databasedataRows- The data grain to be operated- Returns:
- The processed data rows
- Throws:
SQLException- The SQL exception defined by JDBC
-
-