|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.core.viewprocessors.ViewProcessor
com.zphinx.spine.core.viewprocessors.MultiViewProcessor
public class MultiViewProcessor
MultiViewProcessor processes invocations which require multiple delegates and DataTransferObjects while using a single ViewProcessor.
It allows the programmer access to more than one delegate or process flow from the same ViewProcessor whilst possessing the ability to use an optional builder to create and run generic methods in each of the generated SpineBeans.
Copyright ©Zphinx Software Solutions
| Field Summary |
|---|
| Fields inherited from class com.zphinx.spine.core.viewprocessors.ViewProcessor |
|---|
DATABASE_DATASOURCE, GENERAL_EXCEPTION, messages, newClass |
| Constructor Summary | |
|---|---|
MultiViewProcessor()
|
|
| Method Summary | |
|---|---|
AbstractBusinessDelegate |
delegateFactory(CommandComponent command,
int pageIndex)
Creates and initializes a suitable AbstractBusinessDelegate |
ResultObject |
delegateFactoryAndRun(CommandComponent command,
int pageIndex)
Creates and initializes a suitable AbstractBusinessDelegate then calls the run method of the instantiated Business Delegate. |
protected Object |
findBuilder(String delegateSubClass)
Gets the builder for the named BusinessDelegate i.e the delegateSubClass |
ResultObject |
processData(DataTransferObject dto,
Object obj,
DAOInput daoConstructor,
int operation)
Deprecated. |
ResultObject |
processData(DataTransferObject dto,
Object obj,
DAOInput daoConstructor,
int operation,
int pageIndex)
Calls the methods of this ViewProcessor,creates and sends the DataTransferAssembler to the business layer |
int |
processNavigation(ResultObject result)
Processes the navigation rules for this processor |
| Methods inherited from class com.zphinx.spine.core.viewprocessors.ViewProcessor |
|---|
createAssembler, delegateFactory, getDelegate, getProcessorAliasName, processData, resetDelegateName, resetPackageName, setDelegateFullName, setProcessorAliasName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiViewProcessor()
| Method Detail |
|---|
public int processNavigation(ResultObject result)
processNavigation in class ViewProcessorresult - The resultObject instance to be parsed for information
public ResultObject processData(DataTransferObject dto,
Object obj,
DAOInput daoConstructor,
int operation,
int pageIndex)
DataTransferAssembler to the business layer
dto - The DataTransferObject used to create a DataTransferAssemblerobj - The object used to initialize this transaction, usually a dataSource when a database proxy is in usedaoConstructor - The construct object used to instantiate a daooperation - The operation to call within the dtopageIndex - The int representing the position of the DAO defination in spine.xml
ResultObject obtained from the bussiness layer
public ResultObject processData(DataTransferObject dto,
Object obj,
DAOInput daoConstructor,
int operation)
processData(DataTransferObject, Object, DAOInput, int, int)
processData in class ViewProcessordto - The DataTransferObject used to create a DataTransferAssemblerobj - The object used to initialize this transaction, usually a dataSource when a DataBaseProxy is in usedaoConstructor - The construct object used to instantiate a daooperation - The operation to call within the dto
ResultObject obtained from the bussiness layer
public ResultObject delegateFactoryAndRun(CommandComponent command,
int pageIndex)
AbstractBusinessDelegate then calls the run method of the instantiated Business Delegate.
command - The DataTransferAssembler used by this processorpageIndex - The int representing the position of the DAO defination in spine.xml
DataTransferAssembler in the form of a ResultObject
public AbstractBusinessDelegate delegateFactory(CommandComponent command,
int pageIndex)
throws SpineException
AbstractBusinessDelegate
command - The DataTransferAssembler used by this processorpageIndex - The int representing the position of the DAO defination in spine.xml
AbstractBusinessDelegate Object
SpineExceptionprotected Object findBuilder(String delegateSubClass)
delegateSubClass - The full class name of the delegate subclass defined as subClass in configuration
AbstractBuilder Object which was defined in configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||