com.partnersoft.v3x.apps.Staker.interfaces
Class CSVDataInput

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.interfaces.ExternalDataInput
      extended by com.partnersoft.v3x.apps.Staker.interfaces.CSVDataInput

public class CSVDataInput
extends ExternalDataInput

ExternalDataInput from CSV files.


Constructor Summary
CSVDataInput()
          Create a new CSVDataInput.
 
Method Summary
 java.util.ArrayList getAfterInputCommands()
          list of os-specific commands to run after importing data.
 java.util.ArrayList getBeforeInputCommands()
          list of os-specific commands to run before importing data.
 boolean getCreatedInField()
          if true, new jobs are marked "createdInField"
 java.util.ArrayList getFieldMapping()
          list, in order of appearance in CSV file, of properties that fields correspond to.
 boolean getMoveBeforeRead()
          If true, moves to a .tmp file before reading it.
 java.lang.String getPath()
          Path to input file.
 java.util.Map getTransformByName()
          transforms applied based on the field name of a data field.
 java.util.Map getTransformByType()
          transforms applied based on the type of data fields.
 boolean getUpdateNewOnly()
          if true, jobs are added by the importer if they don't exist, and updated until their job status changes from new.
 void runInput(JobLibrarian librarian)
           
 void setAfterInputCommands(java.util.ArrayList newAfterInputCommands)
          list of os-specific commands to run after importing data.
 void setBeforeInputCommands(java.util.ArrayList newBeforeInputCommands)
          list of os-specific commands to run before importing data.
 void setCreatedInField(boolean newCreatedInField)
          if true, new jobs are marked "createdInField"
 void setFieldMapping(java.util.ArrayList newFieldMapping)
          list, in order of appearance in CSV file, of properties that fields correspond to.
 void setMoveBeforeRead(boolean newMoveBeforeRead)
          If true, moves to a .tmp file before reading it.
 void setPath(java.lang.String newPath)
          Path to input file.
 void setTransformByName(java.util.Map newTransformByName)
          transforms applied based on the field name of a data field.
 void setTransformByType(java.util.Map newTransformByType)
          transforms applied based on the type of data fields.
 void setUpdateNewOnly(boolean newUpdateNewOnly)
          if true, jobs are added by the importer if they don't exist, and updated until their job status changes from new.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVDataInput

public CSVDataInput()
Create a new CSVDataInput.

Method Detail

runInput

public void runInput(JobLibrarian librarian)
Specified by:
runInput in class ExternalDataInput

getAfterInputCommands

public java.util.ArrayList getAfterInputCommands()
list of os-specific commands to run after importing data.


setAfterInputCommands

public void setAfterInputCommands(java.util.ArrayList newAfterInputCommands)
list of os-specific commands to run after importing data.


getBeforeInputCommands

public java.util.ArrayList getBeforeInputCommands()
list of os-specific commands to run before importing data.


setBeforeInputCommands

public void setBeforeInputCommands(java.util.ArrayList newBeforeInputCommands)
list of os-specific commands to run before importing data.


getCreatedInField

public boolean getCreatedInField()
if true, new jobs are marked "createdInField"


setCreatedInField

public void setCreatedInField(boolean newCreatedInField)
if true, new jobs are marked "createdInField"


getFieldMapping

public java.util.ArrayList getFieldMapping()
list, in order of appearance in CSV file, of properties that fields correspond to. Null means ignore the field.


setFieldMapping

public void setFieldMapping(java.util.ArrayList newFieldMapping)
list, in order of appearance in CSV file, of properties that fields correspond to. Null means ignore the field.


getMoveBeforeRead

public boolean getMoveBeforeRead()
If true, moves to a .tmp file before reading it.


setMoveBeforeRead

public void setMoveBeforeRead(boolean newMoveBeforeRead)
If true, moves to a .tmp file before reading it.


getPath

public java.lang.String getPath()
Path to input file.


setPath

public void setPath(java.lang.String newPath)
Path to input file.


getTransformByName

public java.util.Map getTransformByName()
transforms applied based on the field name of a data field.


setTransformByName

public void setTransformByName(java.util.Map newTransformByName)
transforms applied based on the field name of a data field.


getTransformByType

public java.util.Map getTransformByType()
transforms applied based on the type of data fields.


setTransformByType

public void setTransformByType(java.util.Map newTransformByType)
transforms applied based on the type of data fields.


getUpdateNewOnly

public boolean getUpdateNewOnly()
if true, jobs are added by the importer if they don't exist, and updated until their job status changes from new. After that updates are ignored.


setUpdateNewOnly

public void setUpdateNewOnly(boolean newUpdateNewOnly)
if true, jobs are added by the importer if they don't exist, and updated until their job status changes from new. After that updates are ignored.