|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.phase.PhaseAction org.bibalex.daf.entities.phase.DatabaseAction
public class DatabaseAction
Responsible for applying the Database actions associted with a phase.
Field Summary | |
---|---|
private DatabaseDef |
definition
Holds the DatabaseDef that will be used when applying the action. |
private DatabaseInfoDef |
finishInfo
Holds the DatabaseInfoDef that contains the values of the DatabaseDef. The values is extracted from the finish entry of this phase, if that job has visited this phase previously. |
private Job |
job
The job to which the action is being applied. |
private DatabaseInfoDef |
startInfo
Holds the DatabaseInfoDef that contains the previous values of the DatabaseDef if any. The value is extratced from the start entry of this phase. The startInfo if exists takes precedene over the finishInfo. |
private org.w3c.dom.Node |
userData
Holds the user data that was collected by the IDatabaseDataEntry. |
Constructor Summary | |
---|---|
DatabaseAction(Job job,
DatabaseDef definition,
DatabaseInfoDef finishInfo,
DatabaseInfoDef startInfo)
Creates a new instance of DatabaseAction. |
Method Summary | |
---|---|
void |
applyAction()
Applies the action. |
org.w3c.dom.Node |
getUserData()
Gets the data, if any, that the user has entered. |
private void |
saveDatabaseInfo()
Saves the database information that the user has entered in the start entry of the job. Failing to save the informtion is not considered as an error. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Job job
private DatabaseDef definition
private DatabaseInfoDef finishInfo
private DatabaseInfoDef startInfo
private org.w3c.dom.Node userData
Constructor Detail |
---|
public DatabaseAction(Job job, DatabaseDef definition, DatabaseInfoDef finishInfo, DatabaseInfoDef startInfo)
job
- The job to which the DatabaseAction is being applied.definition
- The DatabaseDef to be applied.finishInfo
- The DatabaseInfoDef that holds the values of the given definition from the finish entry.startInfo
- The DatabaseInfoDef that holds the values of the given definition from the start entry.
This parameter can be null.Method Detail |
---|
public void applyAction() throws PhaseActionException
applyAction
in class PhaseAction
PhaseActionException
- If the action fails.private void saveDatabaseInfo()
public org.w3c.dom.Node getUserData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |