Class DbOperation
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.entitymanager.operation.DbOperation
-
- All Implemented Interfaces:
Recyclable
- Direct Known Subclasses:
DbBulkOperation
,DbEntityOperation
public abstract class DbOperation extends Object implements Recyclable
A database operation.- Author:
- Daniel Meyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbOperation.State
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends DbEntity>
entityType
The type of the DbEntity this operation is executed on.protected Exception
failure
protected DbOperationType
operationType
The type of the operation.protected int
rowsAffected
protected DbOperation.State
state
-
Constructor Summary
Constructors Constructor Description DbOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends DbEntity>
getEntityType()
Exception
getFailure()
DbOperationType
getOperationType()
int
getRowsAffected()
DbOperation.State
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 Detail
-
operationType
protected DbOperationType operationType
The type of the operation.
-
rowsAffected
protected int rowsAffected
-
failure
protected Exception failure
-
state
protected DbOperation.State state
-
-
Method Detail
-
recycle
public void recycle()
- Specified by:
recycle
in interfaceRecyclable
-
getOperationType
public DbOperationType getOperationType()
-
setOperationType
public void setOperationType(DbOperationType operationType)
-
getRowsAffected
public int getRowsAffected()
-
setRowsAffected
public void setRowsAffected(int rowsAffected)
-
isFailed
public boolean isFailed()
-
getState
public DbOperation.State getState()
-
setState
public void setState(DbOperation.State state)
-
getFailure
public Exception getFailure()
-
setFailure
public void setFailure(Exception failure)
-
-