|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jdbcimporter.ImportDef
The ImportDef class defines a set of entities to import into a given database. This definition includes:
Constructor Summary | |
ImportDef()
|
Method Summary | |
void |
addEntity(ImportEntityDef newEntity)
Adds an entity definition into the set that is imported. |
java.io.File |
getBadFile()
Returns the log file to write bad data. |
int |
getBatchCount()
Returns the number of rows to import before calling executeBatch. |
int |
getCommitCount()
Returns the number of rows to import before committing. |
ConnectionDef |
getConnectionDef()
Returns to the connection definition. |
ImportEntityDef[] |
getEntities()
Returns the set of entity definitions to import. |
java.io.File |
getLogFile()
Returns the log file to write log messages. |
java.io.File |
getPostSQLFile()
Returns the file containing the sql statements that will be executed after the import. |
java.io.File |
getPreSQLFile()
Returns the file containing the sql statements that will be executed before the import. |
boolean |
isTrimValues()
Returns whether values should be trimmed after reading them from the delimiter parser. |
void |
setBadFile(java.io.File newFile)
Sets the log file to write bad data. |
void |
setBatchCount(int count)
Sets the number of rows to import before calling executeBatch. |
void |
setCommitCount(int count)
Sets the number of rows to import before committing. |
void |
setConnectionDef(ConnectionDef newDef)
Sets the connection definition. |
void |
setLogFile(java.io.File newFile)
Sets the log file to write log messages. |
void |
setPostSQLFile(java.io.File newFile)
Sets the file containing the sql statements that will be executed after the import. |
void |
setPreSQLFile(java.io.File newFile)
Sets the file containing the sql statements that will be executed before the import. |
void |
setTrimValues(boolean trimValues)
Sets the flag indicating whether values should be trimmed after reading them from the delimiter parser. |
java.lang.String |
toString()
Overrides Object.toString() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ImportDef()
Method Detail |
public void setConnectionDef(ConnectionDef newDef)
newDef
- definition of connectionpublic ConnectionDef getConnectionDef()
public void setLogFile(java.io.File newFile)
newFile
- log filepublic java.io.File getLogFile()
public void setBadFile(java.io.File newFile)
newFile
- log filepublic java.io.File getBadFile()
public void setPostSQLFile(java.io.File newFile)
newFile
- the filepublic java.io.File getPostSQLFile()
public void setPreSQLFile(java.io.File newFile)
newFile
- The preSQLFile to set.public java.io.File getPreSQLFile()
public boolean isTrimValues()
public void setTrimValues(boolean trimValues)
trimValues
- flag.public void addEntity(ImportEntityDef newEntity)
newEntity
- entity definition to be addedpublic ImportEntityDef[] getEntities()
public void setCommitCount(int count)
count
- the number of rowspublic int getCommitCount()
public void setBatchCount(int count)
count
- the number of rowspublic int getBatchCount()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |