com.agimatec.database
Class AbstractDbTool

java.lang.Object
  extended by 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


Field Summary
protected  org.dbunit.database.IDatabaseConnection connection
           
protected  String dataFile
           
protected  Connection jdbcConnection
           
 
Constructor Summary
AbstractDbTool()
           
 
Method Summary
protected  void connectDbUnit()
           
protected  void connectJdbc(String[] args)
           
protected  void connectJdbc(String driver, String url, String user, String password)
           
protected  void disconnect()
           
 org.dbunit.database.IDatabaseConnection getConnection()
           
 String getDataFile()
           
 Connection getJdbcConnection()
           
 void setConnection(org.dbunit.database.IDatabaseConnection connection)
           
 void setDataFile(String insertDataFile)
           
 void setJdbcConnection(Connection jdbcConnection)
           
 void setMigrationTool(MigrationTool tool)
          invoked by BaseMigrationTool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdbcConnection

protected Connection jdbcConnection

connection

protected org.dbunit.database.IDatabaseConnection connection

dataFile

protected String dataFile
Constructor Detail

AbstractDbTool

public AbstractDbTool()
Method Detail

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-2012. All Rights Reserved.