public abstract class RefactoringProcessor extends UpdateProcessor
Constructor and Description |
---|
RefactoringProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
processObjectCreate(DBObjectTransaction txn,
SystemObject obj)
The default processObjectDifference implementation calls this method
will every new object that will be created.
|
protected void |
processObjectDelete(DBObjectTransaction txn,
SystemObject obj)
The default processObjectDifference implementation calls this method
will every new object that will be deleted.
|
protected void |
processObjectDifference(DBObjectTransaction txn,
Difference objDiff)
This is called for every SystemObject Difference in the global update
Difference.
|
protected void |
processObjectUpdate(DBObjectTransaction txn,
Difference objDiff)
The default processObjectDifference implementation calls this method
for every object that is to be updated
|
void |
processUpdate(DBObjectTransaction txn,
Difference objDiff)
Called by a DBObjectProvider during a create or update process.
|
getLogger, getProcessorProperties, onlyProcessesPrimaryUpdates
public final void processUpdate(DBObjectTransaction txn, Difference objDiff) throws DBException
UpdateProcessor
processUpdate
in class UpdateProcessor
txn
- the overall transaction that is being performedobjDiff
- the Difference of two SystemObjects to be processedDBException
protected void processObjectDifference(DBObjectTransaction txn, Difference objDiff) throws DBException
processObjectCreate
,
processObjectDelete
or processObjectUpdate
as appropriate. Only override this method to provider a global
change for all types of diff.state
- the current refactoring stateobjDiff
- a SystemObject Difference (can be create, delete or
update).DBException
protected void processObjectCreate(DBObjectTransaction txn, SystemObject obj) throws DBException
state
- the overall refactoring stateobj
- an object that is to be createdDBException
protected void processObjectDelete(DBObjectTransaction txn, SystemObject obj) throws DBException
state
- the overall refactoring stateobj
- an object that is to be deletedDBException
protected void processObjectUpdate(DBObjectTransaction txn, Difference objDiff) throws DBException
state
- the overall refactoring stateobjDiff
- the difference for an object update (containing an
original and updated SystemObject).DBException