public abstract class DbOperation extends Object implements Recyclable
Modifier and Type | Class and Description |
---|---|
static class |
DbOperation.State |
Modifier and Type | Field and 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 and Description |
---|
DbOperation() |
Modifier and Type | Method and 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) |
protected DbOperationType operationType
protected int rowsAffected
protected Exception failure
protected DbOperation.State state
public void recycle()
recycle
in interface Recyclable
public DbOperationType getOperationType()
public void setOperationType(DbOperationType operationType)
public int getRowsAffected()
public void setRowsAffected(int rowsAffected)
public boolean isFailed()
public DbOperation.State getState()
public void setState(DbOperation.State state)
public Exception getFailure()
public void setFailure(Exception failure)
Copyright © 2020. All rights reserved.