public class LoadCsvModelTask extends EpsilonTask
Modifier and Type | Field and Description |
---|---|
protected String |
alias
The alias.
|
protected boolean |
cached
The cached.
|
protected String |
fieldSeparator
The field separator.
|
protected File |
file
The file.
|
protected String |
idFieldValue
The field that can be used as id
|
protected boolean |
knownHeaders
The has known headers.
|
protected String |
name
The name.
|
protected char |
quoteChar
The quote char.
|
protected boolean |
read
The read on load.
|
protected boolean |
store
The store on disposal.
|
protected boolean |
varargsHeaders
The has varargs headers.
|
failOnErrors, failOnWarnings, profile
Constructor and Description |
---|
LoadCsvModelTask() |
Modifier and Type | Method and Description |
---|---|
protected CsvModel |
createCsvModel()
Creates the csv model.
|
void |
executeImpl() |
String |
getAlias()
Gets the alias.
|
String |
getFieldSeparator()
Gets the field separator.
|
File |
getFile()
Gets the file.
|
String |
getIdFieldValue() |
String |
getName()
Gets the name.
|
char |
getQuoteChar() |
boolean |
isCached()
Checks if is cached.
|
boolean |
isKnownHeaders()
Checks if is known headers.
|
boolean |
isRead()
Checks if is read.
|
boolean |
isStore()
Checks if is store.
|
boolean |
isVarargsHeaders()
Checks if is varargs headers.
|
void |
setAlias(String alias)
Sets the alias.
|
void |
setCached(boolean cached)
Sets the cached.
|
void |
setFieldSeparator(String fieldSeparator)
Sets the field separator.
|
void |
setFile(File file)
Sets the file.
|
void |
setIdFieldValue(String idFieldValue) |
void |
setKnownHeaders(boolean knownHeaders)
Sets the known headers.
|
void |
setName(String name)
Sets the name.
|
void |
setQuoteChar(char quoteChar) |
void |
setRead(boolean read)
Sets the read.
|
void |
setStore(boolean store)
Sets the store.
|
void |
setVarargsHeaders(boolean varargsHeaders)
Sets the varargs headers.
|
execute, fail, getActiveTransactions, getBaseDir, getExtendedProperties, getProjectRepository, getProjectStackFrame, isFailOnErrors, isFailOnWarnings, isProfile, setFailOnErrors, setFailOnWarnings, setProfile, setProjectRepository, warn
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected String name
protected String fieldSeparator
protected char quoteChar
protected boolean knownHeaders
protected boolean varargsHeaders
protected String idFieldValue
protected File file
protected String alias
protected boolean cached
protected boolean read
protected boolean store
public void executeImpl() throws org.apache.tools.ant.BuildException
executeImpl
in class EpsilonTask
org.apache.tools.ant.BuildException
protected CsvModel createCsvModel()
public String getName()
public void setName(String name)
name
- the name to setpublic String getFieldSeparator()
public void setFieldSeparator(String fieldSeparator)
fieldSeparator
- the fieldSeparator to setpublic boolean isKnownHeaders()
public void setKnownHeaders(boolean knownHeaders)
knownHeaders
- the knownHeaders to setpublic boolean isVarargsHeaders()
public void setVarargsHeaders(boolean varargsHeaders)
varargsHeaders
- the varargsHeaders to setpublic File getFile()
public void setFile(File file)
file
- the file to setpublic String getAlias()
public void setAlias(String alias)
alias
- the alias to setpublic boolean isCached()
public void setCached(boolean cached)
cached
- the cached to setpublic boolean isRead()
public void setRead(boolean read)
read
- the read to setpublic boolean isStore()
public void setStore(boolean store)
store
- the store to setpublic char getQuoteChar()
public void setQuoteChar(char quoteChar)
quoteChar
- the quoteChar to setpublic String getIdFieldValue()
public void setIdFieldValue(String idFieldValue)
idFieldValue
- the idFieldValue to setCopyright © 2018. All rights reserved.