com.partnersoft.v3x.apps.PartnerWeb
Class PartnerWebInterfaceModule

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.interfaces.ExternalInterfaceModule
      extended by com.partnersoft.v3x.apps.PartnerWeb.PartnerWebInterfaceModule
All Implemented Interfaces:
java.io.Serializable

public class PartnerWebInterfaceModule
extends ExternalInterfaceModule

This will maintain database information for the partner web.
At launch all tables will be dropped and then repoppulate. For persistant information try the SQLExportInterfaceModele.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.partnersoft.v3x.apps.Staker.interfaces.ExternalInterfaceModule
verbose
 
Constructor Summary
PartnerWebInterfaceModule()
           
 
Method Summary
 java.lang.Object createExternalJob(Job job)
          no usefull implementation here, needed to extend the ExternalInterfaceModule
 java.lang.String createTypedStatement(java.lang.String tableName, java.util.Map properties, java.util.Map types)
          This will try to guess the type of data and format the table accordingly.
 void export(Job job)
          this will update the tables with new data!
 void export(Job job, boolean noDelete)
           
 java.lang.String generateReportFor(Job job)
          no usefull implementation here, needed to extend the ExternalInterfaceModule
 java.lang.String getDatabaseDriver()
           
 java.lang.String getDatabasePassword()
           
 java.lang.String getDatabaseURL()
           
 java.lang.String getDatabaseUserName()
           
 boolean getUpdateCentroids()
           
 boolean isLoadUnits()
           
 boolean isWriteSQLStatements()
           
 void launchInterface(JobLibrarian librarian)
          here is the init for the interface...
 void reloadJob(java.lang.String jobNumber)
           
 void reloadJob(java.lang.String jobNumber, boolean noDelete)
           
 void runImport(JobLibrarian librarian)
          no usefull implementation here, needed to extend the ExternalInterfaceModule
 void setDatabaseDriver(java.lang.String newDriver)
           
 void setDatabasePassword(java.lang.String newName)
           
 void setDatabaseURL(java.lang.String newURL)
           
 void setDatabaseUserName(java.lang.String newName)
           
 void setLoadUnits(boolean newValue)
           
 void setUpdateCentroids(boolean shouldI)
           
 void setWriteSQLStatements(boolean newValue)
           
 java.util.Map unit2Map(Unit unit)
           
 void uploadJobHeaderFields(SQLConnection connection)
           
 void uploadUnits(SQLConnection connection)
           
 
Methods inherited from class com.partnersoft.v3x.apps.Staker.interfaces.ExternalInterfaceModule
getDoNotExportField, getExportOnce, getExportOnceProperty, getHub, getLibrarian, getLog, getName, getRunInterval, getRunLag, getSynchronousExport, haltInterface, isExporting, isImporting, isInterfaceRunning, isVerbose, setDoNotExportField, setExporting, setExportOnce, setExportOnceProperty, setHub, setImporting, setLibrarian, setName, setRunInterval, setRunLag, setSynchronousExport, setVerbose, updateJob
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartnerWebInterfaceModule

public PartnerWebInterfaceModule()
Method Detail

createExternalJob

public java.lang.Object createExternalJob(Job job)
no usefull implementation here, needed to extend the ExternalInterfaceModule

Specified by:
createExternalJob in class ExternalInterfaceModule

generateReportFor

public java.lang.String generateReportFor(Job job)
no usefull implementation here, needed to extend the ExternalInterfaceModule

Specified by:
generateReportFor in class ExternalInterfaceModule

runImport

public void runImport(JobLibrarian librarian)
no usefull implementation here, needed to extend the ExternalInterfaceModule

Specified by:
runImport in class ExternalInterfaceModule

launchInterface

public void launchInterface(JobLibrarian librarian)
here is the init for the interface... this will drop and repopulate all data in the data base!

Overrides:
launchInterface in class ExternalInterfaceModule

reloadJob

public void reloadJob(java.lang.String jobNumber)

reloadJob

public void reloadJob(java.lang.String jobNumber,
                      boolean noDelete)

export

public void export(Job job)
this will update the tables with new data!

Specified by:
export in class ExternalInterfaceModule

export

public void export(Job job,
                   boolean noDelete)

getDatabaseDriver

public java.lang.String getDatabaseDriver()

setDatabaseDriver

public void setDatabaseDriver(java.lang.String newDriver)

getDatabaseURL

public java.lang.String getDatabaseURL()

setDatabaseURL

public void setDatabaseURL(java.lang.String newURL)

getDatabaseUserName

public java.lang.String getDatabaseUserName()

setDatabaseUserName

public void setDatabaseUserName(java.lang.String newName)

getDatabasePassword

public java.lang.String getDatabasePassword()

setDatabasePassword

public void setDatabasePassword(java.lang.String newName)

isLoadUnits

public boolean isLoadUnits()

getUpdateCentroids

public boolean getUpdateCentroids()

setUpdateCentroids

public void setUpdateCentroids(boolean shouldI)

setLoadUnits

public void setLoadUnits(boolean newValue)

isWriteSQLStatements

public boolean isWriteSQLStatements()

setWriteSQLStatements

public void setWriteSQLStatements(boolean newValue)

createTypedStatement

public java.lang.String createTypedStatement(java.lang.String tableName,
                                             java.util.Map properties,
                                             java.util.Map types)
This will try to guess the type of data and format the table accordingly. It will default to strings if unable to decide (CHAR(40)).


unit2Map

public java.util.Map unit2Map(Unit unit)
                       throws java.lang.Exception
Throws:
java.lang.Exception

uploadUnits

public void uploadUnits(SQLConnection connection)

uploadJobHeaderFields

public void uploadJobHeaderFields(SQLConnection connection)