gps.core
Class FlushController

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

public abstract class FlushController
extends EISConnectionDealer


Constructor Summary
FlushController()
           
 
Method Summary
 java.util.Hashtable fdtExecutor(java.util.Vector inputValue, int fdtNameIndex)
          Method fdtExecutor Executes the fdt using modelValidationrulesHashtable with FDT name, parameter, and input to be given for where clause
abstract  boolean finishModel(GPSModel model)
          finishes model to target flush controller
 java.lang.String getAttachmentsDirectory()
          gets the attachments directory
 java.lang.Object getObjectforQuery()
          gets Hashtable, which contains "QueryObject" key, and it's value as eDapter class, which is used for Node(s) in the implementation.
abstract  java.lang.String getOutputData()
          gets output data produced by finish model process
 java.util.Hashtable getPropertyHashtable()
          gets property Hashtable
 java.lang.String getUserName()
          get user name
 java.lang.Object 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 setAttachmentsDirectory(java.lang.String attachmentsDirectory)
          sets the attachements directory
 void setConnection(java.sql.Connection connection)
          sets database connection
 void setFdtUrlToLovExecutor()
          Method setFdtUrlToLovExecutor sets fdturl to LovExecutor
 void setPassword(java.lang.String password)
          sets password
 void setPropertyHashtable(java.util.Hashtable propertyHashtable)
          sets property hashtable
 void setUserName(java.lang.String userName)
          sets user name
 
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

FlushController

public FlushController()
Method Detail

setUserName

public void setUserName(java.lang.String userName)
sets user name

Parameters:
String - userName

getUserName

public java.lang.String getUserName()
get user name

Parameters:
void -
Returns:
userName

setPassword

public void setPassword(java.lang.String password)
sets password

Parameters:
String - password

setPropertyHashtable

public void setPropertyHashtable(java.util.Hashtable propertyHashtable)
sets property hashtable

Parameters:
Hashtable - propertyHashtable

getPropertyHashtable

public java.util.Hashtable getPropertyHashtable()
gets property Hashtable

Returns:
Hashtable property hashtable

setConnection

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

Parameters:
Connection - connection

finishModel

public abstract boolean finishModel(GPSModel model)
finishes model to target flush controller

Parameters:
GPSModel - model
Returns:
boolean

getOutputData

public abstract java.lang.String getOutputData()
gets output data produced by finish model process

Returns:
String output

setAttachmentsDirectory

public void setAttachmentsDirectory(java.lang.String attachmentsDirectory)
sets the attachements directory

Parameters:
String - attachments directory

getAttachmentsDirectory

public java.lang.String getAttachmentsDirectory()
gets the attachments directory

Returns:
attachmentsDirectory

getObjectforQuery

public java.lang.Object getObjectforQuery()
gets Hashtable, which contains "QueryObject" key, and it's value as eDapter class, which is used for Node(s) in the implementation. This method is used for auto query after commit the instance of the template For example in the Viewer ETK implementation, this method is overridden as: public Object getObjectforQuery() { Hashtable queryObjectHashtable = new Hashtable(); if(viewerETkModel != null) { queryObjectHashtable.put("QueryObject", viewerETkModel); } else { queryObjectHashtable.put("Error", "No Data Available For Querying the Model"); } return queryObjectHashtable; } Code added by Suneel Kota for Implementing Auto Query Functionality. Implemeter who ever wants the auto Query functionality they have to implent this method in their functionality.


setFdtUrlToLovExecutor

public void setFdtUrlToLovExecutor()
Method setFdtUrlToLovExecutor sets fdturl to LovExecutor


fdtExecutor

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

Parameters:
inputValue -
fdtNameIndex -

makeUserObject

public java.lang.Object 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 -
Returns: