Package guru.mikelue.jdut.operation
Class TableBasedOperator
- java.lang.Object
-
- guru.mikelue.jdut.operation.TableBasedOperator
-
- All Implemented Interfaces:
DataRowOperator
public class TableBasedOperator extends Object implements DataRowOperator
This operator operates every table only once.
This object is not thread-safe. For a thread-safe version, please use
TableBasedOperator.buildThreadSafe
to instantiate this class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface guru.mikelue.jdut.operation.DataRowOperator
DataRowOperator.SurroundOperator
-
-
Constructor Summary
Constructors Constructor Description TableBasedOperator(DataRowOperator newDataRowOperator)
Constructs with the implementation of operator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TableBasedOperator
buildThreadSafe(DataRowOperator newDataRowOperator)
Builds this operator with thread-safe property.DataRow
operate(Connection conn, DataRow dataRow)
OperatesDataRow
byConnection
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface guru.mikelue.jdut.operation.DataRowOperator
surroundedBy, toDataGrainOperator, toDataRowsOperator
-
-
-
-
Constructor Detail
-
TableBasedOperator
public TableBasedOperator(DataRowOperator newDataRowOperator)
Constructs with the implementation of operator.- Parameters:
newDataRowOperator
- The operator to be called
-
-
Method Detail
-
buildThreadSafe
public static TableBasedOperator buildThreadSafe(DataRowOperator newDataRowOperator)
Builds this operator with thread-safe property.- Parameters:
newDataRowOperator
- The operator to be wrapped- Returns:
- The new instance of thread-safe
-
operate
public DataRow operate(Connection conn, DataRow dataRow) throws SQLException
OperatesDataRow
byConnection
.- Specified by:
operate
in interfaceDataRowOperator
- Parameters:
conn
- The connection of databasedataRow
- The data grain to be operated- Returns:
- The processed data row
- Throws:
SQLException
- The SQL exception defined by JDBC
-
-