Package org.openbravo.service.db
Class DalBaseProcess
- java.lang.Object
-
- org.openbravo.service.db.DalBaseProcess
-
- All Implemented Interfaces:
Process
- Direct Known Subclasses:
AcctServerProcess
,AssetLinearDepreciationMethodProcess
,CalculatePromotions
,ConvertQuotationIntoOrder
,CostingBackground
,ExecutePendingPayments
,FIN_AddPaymentFromJournal
,FIN_AddPaymentFromJournalLine
,FIN_PaymentMonitorProcess
,GenerateAggregatedDataBackground
,ImportReprocessErrorEntries
,LogCleanUpProcess
,MisfirePolicyTest.EmptyProcess
,MRPManufacturingPlanProcess
,MRPPurchaseCreateReservations
,PriceDifferenceBackground
,ProcedureProcess
,ProcessBatch
,ProcessGroup
,ProcessSchedulingTest.MyCDIProcess
,ProcessSchedulingTest.MyProcess
,ProcessSchedulingTest.ParseTranslationDalBaseProcess
,RecordID2Filling
,UpdateActuals
,VariantChDescUpdateBackgroundProcess
,VariantChDescUpdateProcess
,VerifyBOM
public abstract class DalBaseProcess extends Object implements Process
This class implements transaction and user context handling for backend process tasks which need to make use of the DAL. It assumes to be run inside of a web container which has an initialized dal layer. A subclass needs to implement the doExecute method (or override the execute method).- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from interface org.openbravo.scheduling.Process
COMPLETE, ERROR, EXECUTION_ID, KILLED, MISFIRED, PREVENT_CONCURRENT_EXECUTIONS, PROCESS_ID, PROCESS_NAME, PROCESSING, SCHEDULED, SUCCESS, SYSTEM_RESTART, UNSCHEDULED
-
-
Constructor Summary
Constructors Constructor Description DalBaseProcess()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doExecute(ProcessBundle bundle)
void
execute(ProcessBundle bundle)
Is called by the process scheduler.boolean
isDoCommit()
void
setDoCommit(boolean doCommit)
-
-
-
Method Detail
-
isDoCommit
public boolean isDoCommit()
-
setDoCommit
public void setDoCommit(boolean doCommit)
-
execute
public void execute(ProcessBundle bundle) throws Exception
Is called by the process scheduler. The execute method sets the usercontext and does transaction handling.
-
doExecute
protected abstract void doExecute(ProcessBundle bundle) throws Exception
- Throws:
Exception
-
-