public abstract class DbOperation extends Object implements Recyclable
Modifier and Type | Field and Description |
---|---|
protected Class<? extends DbEntity> |
entityType
The type of the DbEntity this operation is executed on.
|
protected DbOperationType |
operationType
The type of the operation.
|
protected int |
rowsAffected |
Constructor and Description |
---|
DbOperation() |
Modifier and Type | Method and Description |
---|---|
Class<? extends DbEntity> |
getEntityType() |
DbOperationType |
getOperationType() |
int |
getRowsAffected() |
abstract boolean |
isFailed() |
void |
recycle() |
void |
setEntityType(Class<? extends DbEntity> entityType) |
void |
setOperationType(DbOperationType operationType) |
void |
setRowsAffected(int rowsAffected) |
protected DbOperationType operationType
protected int rowsAffected
public void recycle()
recycle
in interface Recyclable
public abstract boolean isFailed()
public DbOperationType getOperationType()
public void setOperationType(DbOperationType operationType)
public int getRowsAffected()
public void setRowsAffected(int rowsAffected)
Copyright © 2019. All rights reserved.