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
-
Field Summary
Modifier and TypeFieldDescriptionThe type of the DbEntity this operation is executed on.protected Exception
protected DbOperationType
The type of the operation.protected int
protected DbOperation.State
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getState()
boolean
isFailed()
void
recycle()
void
setEntityType
(Class<? extends DbEntity> entityType) void
setFailure
(Exception failure) void
setOperationType
(DbOperationType operationType) void
setRowsAffected
(int rowsAffected) void
setState
(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:
recycle
in interfaceRecyclable
-
getEntityType
-
setEntityType
-
getOperationType
-
setOperationType
-
getRowsAffected
public int getRowsAffected() -
setRowsAffected
public void setRowsAffected(int rowsAffected) -
isFailed
public boolean isFailed() -
getState
-
setState
-
getFailure
-
setFailure
-