com.zphinx.spine.vo
Class CommandComponent

java.lang.Object
  extended by com.zphinx.spine.vo.CommandComponent
All Implemented Interfaces:
DataTransferAssembler, Serializable
Direct Known Subclasses:
ResultObject

public class CommandComponent
extends Object
implements DataTransferAssembler

CommandComponent is a DataTransferAssember for objects needed to initialize the BusinessDelegates used in the business layer. It assembles all the objects needed by the system to communicate between different layers and mimics the command design pattern.

Version:
1.0

created 10-Jan-2005 13:47:49

copyright © Zphinx Software Solutions

Author:
David Ladapo
See Also:
Serialized Form

Constructor Summary
CommandComponent()
          Public constructor
 
Method Summary
 DAOInput getDaoConstructor()
          Gets the DaoConstructor object associated with this object
 Object getDataObject()
          Get the object needed to initiate a data connection e.g DataSource for databases
 String getDataObjectClass()
          Gets the name of the DataAccessObject to use
 int getDataType()
          Gets the int which represents which type of persistence layer this object will be passed to i.e the index of the DataProxy in use.
 Object getObj()
          Return the object used to store data passed to the persistence layer
 int getOperation()
          Gets the present operation been run
 void setDaoConstructor(DAOInput daoConstructor)
          Sets the DaoConstructor object associated with this object
 void setDataObject(Object dataObject)
          Set the object needed to initiate a data connection e.g DataSource for databases
 void setDataObjectClass(String dataObjectClass)
          Sets the name of the DataAccessObject to use
 void setDataType(int dataType)
          Sets the int which represents which type of persistence layer this object will be passed to i.e the index of the DataProxy in use.
 void setObj(Object obj)
          Set the object used to store data passed to the persistence layer
 void setOperation(int i)
          Sets the present operation been run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandComponent

public CommandComponent()
Public constructor

Method Detail

getObj

public Object getObj()
Description copied from interface: DataTransferAssembler
Return the object used to store data passed to the persistence layer

Specified by:
getObj in interface DataTransferAssembler
Returns:
Returns the obj.

setObj

public void setObj(Object obj)
Description copied from interface: DataTransferAssembler
Set the object used to store data passed to the persistence layer

Specified by:
setObj in interface DataTransferAssembler
Parameters:
obj - The obj to set.

getDataObject

public Object getDataObject()
Description copied from interface: DataTransferAssembler
Get the object needed to initiate a data connection e.g DataSource for databases

Specified by:
getDataObject in interface DataTransferAssembler
Returns:
Returns the dataObject.

setDataObject

public void setDataObject(Object dataObject)
Description copied from interface: DataTransferAssembler
Set the object needed to initiate a data connection e.g DataSource for databases

Specified by:
setDataObject in interface DataTransferAssembler
Parameters:
dataObject - The dataObject to set.

getDataType

public int getDataType()
Description copied from interface: DataTransferAssembler
Gets the int which represents which type of persistence layer this object will be passed to i.e the index of the DataProxy in use.

Specified by:
getDataType in interface DataTransferAssembler
Returns:
Returns the dataType.

setDataType

public void setDataType(int dataType)
Description copied from interface: DataTransferAssembler
Sets the int which represents which type of persistence layer this object will be passed to i.e the index of the DataProxy in use.

Specified by:
setDataType in interface DataTransferAssembler
Parameters:
dataType - The dataType to set.

getDataObjectClass

public String getDataObjectClass()
Description copied from interface: DataTransferAssembler
Gets the name of the DataAccessObject to use

Specified by:
getDataObjectClass in interface DataTransferAssembler
Returns:
The name of the DataAccessObject to use

setDataObjectClass

public void setDataObjectClass(String dataObjectClass)
Description copied from interface: DataTransferAssembler
Sets the name of the DataAccessObject to use

Specified by:
setDataObjectClass in interface DataTransferAssembler
Parameters:
dataObjectClass - The dataObjectClass to set.

getDaoConstructor

public DAOInput getDaoConstructor()
Gets the DaoConstructor object associated with this object

Specified by:
getDaoConstructor in interface DataTransferAssembler
Returns:
Returns the daoConstructor.

setDaoConstructor

public void setDaoConstructor(DAOInput daoConstructor)
Sets the DaoConstructor object associated with this object

Specified by:
setDaoConstructor in interface DataTransferAssembler
Parameters:
daoConstructor - The daoConstructor to set.

getOperation

public int getOperation()
Gets the present operation been run

Specified by:
getOperation in interface DataTransferAssembler
Returns:
An int representing an opeartion to perform

setOperation

public void setOperation(int i)
Sets the present operation been run

Specified by:
setOperation in interface DataTransferAssembler
Parameters:
i - The value of the operation been run in the several layers where this component been transported