|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.Staker.interfaces.ExternalDataInput
com.partnersoft.v3x.apps.Staker.interfaces.CSVDataInput
public class CSVDataInput
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 |
|---|
public CSVDataInput()
| Method Detail |
|---|
public void runInput(JobLibrarian librarian)
runInput in class ExternalDataInputpublic java.util.ArrayList getAfterInputCommands()
public void setAfterInputCommands(java.util.ArrayList newAfterInputCommands)
public java.util.ArrayList getBeforeInputCommands()
public void setBeforeInputCommands(java.util.ArrayList newBeforeInputCommands)
public boolean getCreatedInField()
public void setCreatedInField(boolean newCreatedInField)
public java.util.ArrayList getFieldMapping()
public void setFieldMapping(java.util.ArrayList newFieldMapping)
public boolean getMoveBeforeRead()
public void setMoveBeforeRead(boolean newMoveBeforeRead)
public java.lang.String getPath()
public void setPath(java.lang.String newPath)
public java.util.Map getTransformByName()
public void setTransformByName(java.util.Map newTransformByName)
public java.util.Map getTransformByType()
public void setTransformByType(java.util.Map newTransformByType)
public boolean getUpdateNewOnly()
public void setUpdateNewOnly(boolean newUpdateNewOnly)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||