|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcimporter.EntityDef net.sourceforge.jdbcimporter.ImportEntityDef
The ImportEntityDef class defines an entity (table) to be imported. This definition includes:
Field Summary |
Fields inherited from class net.sourceforge.jdbcimporter.EntityDef |
columns |
Constructor Summary | |
ImportEntityDef()
|
Method Summary | |
void |
addColumn(ColumnDef columnDef)
Adds a column definition. |
BinaryDelimiterParser |
getBinaryDelimiterParser()
Returns the binary delimiter parser used to parse the input file. |
ImportColumnDef[] |
getColumns()
Returns the list of columns that will be imported |
DelimiterParser |
getDelimiterParser()
Returns the delimiter parser used to parse the input file |
ImportEngine |
getImportEngine()
Returns the import engine to use when importing data for this entity. |
int |
getNumBytesToSkip()
Returns the number of bytes to skip before passing to the reader to the delimiter parser. |
RowTranslator |
getRowTranslator()
Returns the row translator. |
java.io.File |
getSource()
Returns the file containing the data to import. |
java.lang.String |
getSourceEncoding()
Returns the file's encoding of the import data (may be null). |
boolean |
hasColumnsToGenerate()
Returns true if some column's values need to be generated. |
void |
setBinaryDelimiterParser(BinaryDelimiterParser newBinaryParser)
Sets the binary delimiter parser used to parse the input file into rows and columns to be imported into the database. |
void |
setDelimiterParser(DelimiterParser newParser)
Sets the delimiter parser used to parse the input file into rows and columns to be imported into the database. |
void |
setImportEngine(ImportEngine engine)
Sets the import engine to use when importing data for this entity. |
void |
setNumBytesToSkip(int numBytes)
Sets the number of bytes to skip before passing the reader to the delimiter parser. |
void |
setRowTranslator(RowTranslator rowTranslator)
Sets the row translator. |
void |
setSource(java.io.File newSource)
Sets the source of the import data. |
void |
setSourceEncoding(java.lang.String newSourceEncoding)
Sets the source file's encoding of the import data. |
java.lang.String |
toString()
Overrides Object.toString() |
Methods inherited from class net.sourceforge.jdbcimporter.EntityDef |
addProperty, getCatalog, getColumnCount, getColumnIterator, getProperty, getSchema, getTable, setCatalog, setSchema, setTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ImportEntityDef()
Method Detail |
public void addColumn(ColumnDef columnDef)
addColumn
in class EntityDef
columnDef
- the definition of the columnpublic void setSource(java.io.File newSource)
newSource
- the file containing the data to import.public java.io.File getSource()
public void setSourceEncoding(java.lang.String newSourceEncoding)
newSourceEncoding
- the encoding of the file.public java.lang.String getSourceEncoding()
public void setDelimiterParser(DelimiterParser newParser)
newParser
- the delimiter parserpublic DelimiterParser getDelimiterParser()
public void setBinaryDelimiterParser(BinaryDelimiterParser newBinaryParser)
newBinaryParser
- the binary delimiter parserpublic BinaryDelimiterParser getBinaryDelimiterParser()
public void setNumBytesToSkip(int numBytes)
numBytes
- The number of bytespublic int getNumBytesToSkip()
public void setRowTranslator(RowTranslator rowTranslator)
rowTranslator
- row translatorpublic RowTranslator getRowTranslator()
public void setImportEngine(ImportEngine engine)
engine
- the import enginepublic ImportEngine getImportEngine()
public ImportColumnDef[] getColumns()
public boolean hasColumnsToGenerate()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |