Class DbOperation
java.lang.Object
org.camunda.bpm.engine.impl.db.entitymanager.operation.DbOperation
- All Implemented Interfaces:
Recyclable
- Direct Known Subclasses:
DbBulkOperation,DbEntityOperation
A database operation.
- Author:
- Daniel Meyer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe type of the DbEntity this operation is executed on.protected Exceptionprotected DbOperationTypeThe type of the operation.protected intprotected DbOperation.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetState()booleanisFailed()voidrecycle()voidsetEntityType(Class<? extends DbEntity> entityType) voidsetFailure(Exception failure) voidsetOperationType(DbOperationType operationType) voidsetRowsAffected(int rowsAffected) voidsetState(DbOperation.State state)
-
Field Details
-
operationType
The type of the operation. -
rowsAffected
protected int rowsAffected -
failure
-
state
-
entityType
The type of the DbEntity this operation is executed on.
-
-
Constructor Details
-
DbOperation
public DbOperation()
-
-
Method Details
-
recycle
public void recycle()- Specified by:
recyclein interfaceRecyclable
-
getEntityType
-
setEntityType
-
getOperationType
-
setOperationType
-
getRowsAffected
public int getRowsAffected() -
setRowsAffected
public void setRowsAffected(int rowsAffected) -
isFailed
public boolean isFailed() -
getState
-
setState
-
getFailure
-
setFailure
-