Package com.iizix.db.actionactor
Class DatabaseActionActor
java.lang.Object
com.iizix.db.actionactor.DatabaseActionActor
- All Implemented Interfaces:
- IActionActor<DatabaseActionActor.Settings>
- Direct Known Subclasses:
- EditorDatabaseActionActor
public class DatabaseActionActor extends Object implements IActionActor<DatabaseActionActor.Settings>
The Database transaction Action Actor.
- Author:
- Christopher Mindus
- Nested Class SummaryNested ClassesModifier and TypeClassDescription- static classSettings property container.
- Constructor SummaryConstructorsConstructorDescription- DatabaseActionActor- (VSAction action, DatabaseActionActor.Settings settings) Creates a new instance.
- Method SummaryModifier and TypeMethodDescription- booleanChecks if the VirtualSpace is modified by the Action Actor.Gets a description of the Action Actor to be used for the Designer or logging.Gets a description of the Action Actor to be used for the Designer or logging.- getEnabledState- (IAppSessionGyro appGyro, VSAction action) Checks if the runnable is enabled for the current VirtualSpace.Gets the VS Action that issued the database transaction.- newTXPNode- (VSActionTXProcess actionProcess, VSAction action, DatabaseActionActor.Settings settings) Creates a new TXP Node instance to be used for a TXP process.- Methods inherited from class java.lang.Object- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait- Methods inherited from interface com.iizix.actionactor.IActionActor- delegateNewTXPNode
- Constructor Details- DatabaseActionActorCreates a new instance.- Parameters:
- action- The action initiator.
- settings- The settings to use, null in the Designer instance.
 
 
- Method Details- newTXPNodepublic AbstractActionActorTXPNode<DatabaseActionActor.Settings> newTXPNode- (VSActionTXProcess actionProcess, VSAction action, DatabaseActionActor.Settings settings) throws ClassNotFoundException, ActionActorException Creates a new TXP Node instance to be used for a TXP process.- Specified by:
- newTXPNodein interface- IActionActor<DatabaseActionActor.Settings>
- Parameters:
- actionProcess- The action process.
- action- The VirtualSpace Action instance that initiates the actor.
- settings- The settings for the action actor implementation.
- Returns:
- A new TXP node implementation ready to be added to a TXP process.
- Throws:
- ClassNotFoundException- If the Action Actor class is not found.
- ActionActorException- If a new node could not be created.
 
- getDefaultDescriptionGets a description of the Action Actor to be used for the Designer or logging.- Specified by:
- getDefaultDescriptionin interface- IActionActor<DatabaseActionActor.Settings>
- Returns:
- A short description.
 
- getDescriptionGets a description of the Action Actor to be used for the Designer or logging.- Specified by:
- getDescriptionin interface- IActionActor<DatabaseActionActor.Settings>
- Returns:
- A short description.
 
- getEnabledStateChecks if the runnable is enabled for the current VirtualSpace. This method is checked to see if the action is enabled and also in the Designer.- Specified by:
- getEnabledStatein interface- IActionActor<DatabaseActionActor.Settings>
- Parameters:
- appGyro- The application session gyro instance.
- action- The action calling the action actor.
- Returns:
- null If enabled, otherwise an message why it's not enabled.
 
- doesModifyVirtualSpacepublic boolean doesModifyVirtualSpace()Checks if the VirtualSpace is modified by the Action Actor.- Specified by:
- doesModifyVirtualSpacein interface- IActionActor<DatabaseActionActor.Settings>
- Returns:
- true if any field in the VS is modified (excludes focus). For Database Action actor this is always true.
 
- getVSActionGets the VS Action that issued the database transaction.- Returns:
- The action trigger.