Class Operator
java.lang.Object
org.nervousync.database.operator.process.Operator
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RecordOperator
The type Operator.
- Version:
- $Revision : 1.0 $ $Date: 10/17/2020 2:14 PM $
- Author:
- Steven Wee wmkm0113@Hotmail.com
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOperator(OperatorMode operatorMode, boolean readOnly) Instantiates a new Operator.protectedOperator(OperatorMode operatorMode, TransactionalConfig transactionalConfig) Instantiates a new Operator. -
Method Summary
Modifier and TypeMethodDescriptionGets operate result.Gets the value of operatorModestatic longGets the value of serialVersionUIDGets transactional config.booleanIs read only boolean.voidsetOperateResult(OperateResult operateResult) Sets operate result.<T> TConvert to target class object
-
Field Details
-
logger
protected final transient org.slf4j.Logger loggerThe Logger.
-
-
Constructor Details
-
Operator
Instantiates a new Operator.- Parameters:
operatorMode- the operator modereadOnly- the read only
-
Operator
Instantiates a new Operator.- Parameters:
operatorMode- the operator modetransactionalConfig- the transactional config
-
-
Method Details
-
getSerialVersionUID
public static long getSerialVersionUID()Gets the value of serialVersionUID- Returns:
- the value of serialVersionUID
-
getOperatorMode
Gets the value of operatorMode- Returns:
- the value of operatorMode
-
isReadOnly
public boolean isReadOnly()Is read only boolean.- Returns:
- the boolean
-
getTransactionalConfig
Gets transactional config.- Returns:
- the transactional config
-
getOperateResult
Gets operate result.- Returns:
- operate result
-
setOperateResult
Sets operate result.- Parameters:
operateResult- operate result
-
unwrap
Convert to target class object- Type Parameters:
T- Template- Parameters:
clazz- Target class- Returns:
- Converted object
-