com.agimatec.database
Class DbUnitSetupTool
java.lang.Object
com.agimatec.database.AbstractDbTool
com.agimatec.database.DbUnitSetupTool
- All Implemented Interfaces:
- MigrationToolAware
public class DbUnitSetupTool
- extends AbstractDbTool
INSERT dataset into a database.
Optional execution of DELETE with a different dataset possible.
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
| Methods inherited from class com.agimatec.database.AbstractDbTool |
connectDbUnit, connectJdbc, connectJdbc, disconnect, getConnection, getDataFile, getJdbcConnection, setConnection, setDataFile, setJdbcConnection, setMigrationTool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
DbUnitSetupTool
public DbUnitSetupTool()
getDeleteDataFile
public String getDeleteDataFile()
setDeleteDataFile
public void setDeleteDataFile(String deleteDataFile)
getOperation
public String getOperation()
setOperation
public void setOperation(String operation)
execute
public void execute()
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
runMain
protected boolean runMain(String[] args)
throws Exception
- Throws:
Exception
parseArgs
protected boolean parseArgs(String[] args)
printUsage
protected void printUsage()
Copyright © 2008-2012. All Rights Reserved.