gps.core
Class ObjectMaker

java.lang.Object
  extended by gps.core.EISConnectionDealer
      extended by gps.core.ObjectMaker

public abstract class ObjectMaker
extends EISConnectionDealer


Constructor Summary
ObjectMaker()
          default constructor, initiates model architect which takes care model construction
 
Method Summary
 java.util.Vector createModel(java.lang.Object userObject, int explosionMode, int noOfExpLevels, boolean processFlag)
          creates model for the given user object, explosion mode and no.
 java.util.Hashtable fdtExecutor(java.util.Vector inputValue, int fdtNameIndex)
          Method fdtExecutor is to execute the fdt using modelValidationrules Hashtable with FDT name, parameter, and input to be given for where clause
 void freeResources()
           
abstract  java.lang.String getAliasName()
          gets get controller alias name Implementor must implement this method
 java.util.Vector getAlternateNodes(HierarchyNode node)
          gets alternate nodes for the given node
 java.util.Vector getChildNodes(HierarchyNode node)
          get child nodes for the given node
 java.lang.String getFdtAliasName()
          gets assigned fdt alias name Implementor must implement this method
 com.triniti.Exception.GetControllerException getGetControllerException()
           
 java.util.Vector getNextNodes(gps.wfb.core.ProcessNode node)
          gets next nodes for the given node - process modeler implementation
 GPSNode getNodeWithCompleteData(GPSNode gpsNode)
          gets node with complete data for the given node with partial data
 int getNoOfLevels()
           
 java.util.Hashtable getParameterHashtable()
           
 java.util.Vector getParentNodes(HierarchyNode node)
          gets parent nodes for the given node
 java.util.Vector getPreviousNodes(gps.wfb.core.ProcessNode node)
          gets previous nodes for the given node - process modeler implementation
 java.util.Vector invokeGetController()
           
 boolean isModelFlushable()
          tells whether model can be used for flushing or not The model is created from this object maker If the implemented object maker wants not to flush the models which are created from it, then this method should be implemented to false
 void makeUserObject(java.lang.Object userObject, java.util.Vector columnVector, java.util.Vector dataVector)
          Method makeUserObject checks whether column vector contains the field name in the userobject and then sets the fields with datavector values
 void setConnection(java.sql.Connection connection)
          sets database connection
 void setFdtUrlToLovExecutor()
          Method setFdtUrlToLovExecutor sets fdturl to LovExecutor
 void setGetControllerException(com.triniti.Exception.GetControllerException getControllerException)
           
 void setGPSUrl(java.lang.String gpsUrl)
           
 void setNoOfLevels(int noOfLevels)
           
 void setParameterHashtable(java.util.Hashtable parameterHashtable)
           
 GPSModel startModelConstruction(java.lang.Object object)
          Changed parameter Hashmap into Object and return type as GPSModel starts model construction for the given property values
 
Methods inherited from class gps.core.EISConnectionDealer
addEISConnecitonListener, free, getConnection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMaker

public ObjectMaker()
default constructor, initiates model architect which takes care model construction

Method Detail

setConnection

public void setConnection(java.sql.Connection connection)
sets database connection

Parameters:
Connection - connection

getAliasName

public abstract java.lang.String getAliasName()
gets get controller alias name Implementor must implement this method

Returns:
String alias name

getFdtAliasName

public java.lang.String getFdtAliasName()
gets assigned fdt alias name Implementor must implement this method

Returns:
String fdt alias name

invokeGetController

public java.util.Vector invokeGetController()

setGPSUrl

public void setGPSUrl(java.lang.String gpsUrl)

setParameterHashtable

public void setParameterHashtable(java.util.Hashtable parameterHashtable)

getChildNodes

public java.util.Vector getChildNodes(HierarchyNode node)
get child nodes for the given node

Parameters:
HierarchyNode - node
Returns:
Vector child node Vector

getParentNodes

public java.util.Vector getParentNodes(HierarchyNode node)
gets parent nodes for the given node

Parameters:
HierarchyNode - node
Returns:
Vector parent node vector

getAlternateNodes

public java.util.Vector getAlternateNodes(HierarchyNode node)
gets alternate nodes for the given node

Parameters:
HierarchyNode - node
Returns:
Vector alternate node vector

freeResources

public void freeResources()

getPreviousNodes

public java.util.Vector getPreviousNodes(gps.wfb.core.ProcessNode node)
gets previous nodes for the given node - process modeler implementation

Parameters:
ProcessNode - node
Returns:
Vector previous node vector

getNextNodes

public java.util.Vector getNextNodes(gps.wfb.core.ProcessNode node)
gets next nodes for the given node - process modeler implementation

Parameters:
ProcessNode - node
Returns:
Vector next node vector

isModelFlushable

public boolean isModelFlushable()
tells whether model can be used for flushing or not The model is created from this object maker If the implemented object maker wants not to flush the models which are created from it, then this method should be implemented to false


startModelConstruction

public GPSModel startModelConstruction(java.lang.Object object)
Changed parameter Hashmap into Object and return type as GPSModel starts model construction for the given property values

Parameters:
Object - object
Returns:
GPSModel model

setNoOfLevels

public void setNoOfLevels(int noOfLevels)

getNoOfLevels

public int getNoOfLevels()

createModel

public java.util.Vector createModel(java.lang.Object userObject,
                                    int explosionMode,
                                    int noOfExpLevels,
                                    boolean processFlag)
creates model for the given user object, explosion mode and no. of levels Root Node will be prepared based on user object in implemented object maker

Parameters:
Object - userObject
int - explosion mode
int - no. of levels
Returns:
Vector vector of gps models

getNodeWithCompleteData

public GPSNode getNodeWithCompleteData(GPSNode gpsNode)
gets node with complete data for the given node with partial data

Parameters:
GPSNode - gpsNode
Returns:
GPSNode

getParameterHashtable

public java.util.Hashtable getParameterHashtable()
Returns:
Returns the parameterHashtable.

setFdtUrlToLovExecutor

public void setFdtUrlToLovExecutor()
Method setFdtUrlToLovExecutor sets fdturl to LovExecutor


fdtExecutor

public java.util.Hashtable fdtExecutor(java.util.Vector inputValue,
                                       int fdtNameIndex)
Method fdtExecutor is to execute the fdt using modelValidationrules Hashtable with FDT name, parameter, and input to be given for where clause

Parameters:
inputValue -
fdtNameIndex -

makeUserObject

public void makeUserObject(java.lang.Object userObject,
                           java.util.Vector columnVector,
                           java.util.Vector dataVector)
Method makeUserObject checks whether column vector contains the field name in the userobject and then sets the fields with datavector values

Parameters:
userObject -
columnVector -
dataVector -

getGetControllerException

public com.triniti.Exception.GetControllerException getGetControllerException()

setGetControllerException

public void setGetControllerException(com.triniti.Exception.GetControllerException getControllerException)