public class TransactionExecutor implements FullExecutor
Executor for the Transaction root action Handles the management of transactions in the database
FullExecutor.DefaultImpls
Constructor and Description |
---|
TransactionExecutor()
Executor for the Transaction root action
Handles the management of transactions in the database
|
Modifier and Type | Method and Description |
---|---|
void |
createTransaction(java.lang.String[] args,
net.namibsun.papio.lib.db.DbHandler dbHandler,
boolean expense)
Executes the 'create' option
|
void |
executeCreate(java.lang.String[] args,
net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'create' option for a normal transaction
|
void |
executeDelete(java.lang.String[] args,
net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'delete' option
|
void |
executeDisplay(java.lang.String[] args,
net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'display' option
|
void |
executeList(java.lang.String[] args,
net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'list' option
|
execute, executeCreate, executeDelete, executeDisplay, executeList
execute, getUserConfirmation, handleParserError
public TransactionExecutor()
Executor for the Transaction root action Handles the management of transactions in the database
public void executeCreate(java.lang.String[] args, net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'create' option for a normal transaction
args
- : The command line arguments without root and action mode argumentsdbHandler
- : The database handler to usepublic void createTransaction(java.lang.String[] args, net.namibsun.papio.lib.db.DbHandler dbHandler, boolean expense)
Executes the 'create' option
args
- : The command line arguments without root and action mode argumentsdbHandler
- : The database handler to useexpense
- : Flag that switches to and from 'expense' mode, which negates the value of
the transaction beforehandpublic void executeDelete(java.lang.String[] args, net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'delete' option
args
- : The command line arguments without root and action mode argumentsdbHandler
- : The database handler to usepublic void executeList(java.lang.String[] args, net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'list' option
args
- : The command line arguments without root and action mode argumentsdbHandler
- : The database handler to usepublic void executeDisplay(java.lang.String[] args, net.namibsun.papio.lib.db.DbHandler dbHandler)
Executes the 'display' option
args
- : The command line arguments without root and action mode argumentsdbHandler
- : The database handler to use