com.agimatec.database
Class AbstractDbTool
java.lang.Object
com.agimatec.database.AbstractDbTool
- All Implemented Interfaces:
- MigrationToolAware
- Direct Known Subclasses:
- DbUnitDumpTool, DbUnitSetupTool
public abstract class AbstractDbTool
- extends Object
- implements MigrationToolAware
Description:
User: roman.stumm
Date: 01.06.2007
Time: 13:56:19
Copyright: Agimatec GmbH
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdbcConnection
protected Connection jdbcConnection
connection
protected org.dbunit.database.IDatabaseConnection connection
dataFile
protected String dataFile
AbstractDbTool
public AbstractDbTool()
getJdbcConnection
public Connection getJdbcConnection()
setJdbcConnection
public void setJdbcConnection(Connection jdbcConnection)
getConnection
public org.dbunit.database.IDatabaseConnection getConnection()
setConnection
public void setConnection(org.dbunit.database.IDatabaseConnection connection)
setMigrationTool
public void setMigrationTool(MigrationTool tool)
- invoked by
BaseMigrationTool
- Specified by:
setMigrationTool in interface MigrationToolAware
disconnect
protected void disconnect()
throws Exception
- Throws:
Exception
connectJdbc
protected void connectJdbc(String[] args)
throws SQLException,
ClassNotFoundException
- Throws:
SQLException
ClassNotFoundException
connectJdbc
protected void connectJdbc(String driver,
String url,
String user,
String password)
throws SQLException,
ClassNotFoundException
- Throws:
SQLException
ClassNotFoundException
connectDbUnit
protected void connectDbUnit()
throws SQLException,
ClassNotFoundException
- Throws:
SQLException
ClassNotFoundException
getDataFile
public String getDataFile()
setDataFile
public void setDataFile(String insertDataFile)
Copyright © 2008-2011. All Rights Reserved.