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 java.lang.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 java.lang.Class<? extends DbEntity>
entityType
The type of the DbEntity this operation is executed on.protected java.lang.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 java.lang.Class<? extends DbEntity>
getEntityType()
java.lang.Exception
getFailure()
DbOperationType
getOperationType()
int
getRowsAffected()
DbOperation.State
getState()
boolean
isFailed()
void
recycle()
void
setEntityType(java.lang.Class<? extends DbEntity> entityType)
void
setFailure(java.lang.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 java.lang.Exception failure
-
state
protected DbOperation.State state
-
entityType
protected java.lang.Class<? extends DbEntity> entityType
The type of the DbEntity this operation is executed on.
-
-
Method Detail
-
recycle
public void recycle()
- Specified by:
recycle
in interfaceRecyclable
-
getEntityType
public java.lang.Class<? extends DbEntity> getEntityType()
-
setEntityType
public void setEntityType(java.lang.Class<? extends DbEntity> entityType)
-
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 java.lang.Exception getFailure()
-
setFailure
public void setFailure(java.lang.Exception failure)
-
-