db
Class DatabaseContext

java.lang.Object
  extended by fit.Fixture
      extended by db.DatabaseContext

public class DatabaseContext
extends Fixture


Nested Class Summary
 
Nested classes/interfaces inherited from class fit.Fixture
Fixture.RunTime
 
Field Summary
 
Fields inherited from class fit.Fixture
args, counts, gray, green, red, summary, yellow
 
Constructor Summary
DatabaseContext()
           
 
Method Summary
 void cleanInsert()
           
protected  void connect()
           
static org.dbunit.database.DatabaseConnection createDatabaseConnection()
           
protected  void disconnect()
           
 void driverName(java.lang.String name)
           
static java.sql.Connection getConnection()
           
static org.dbunit.dataset.DefaultDataSet getDataSet()
           
 void insert()
           
 void password(java.lang.String password)
           
 void resetDataSet()
           
 void truncate()
           
 void url(java.lang.String url)
           
 void user(java.lang.String user)
           
 
Methods inherited from class fit.Fixture
camel, check, counts, doCell, doCells, doRow, doRows, doTable, doTables, error, escape, exception, fixtureName, getArgs, getArgsForTable, getLinkedFixtureWithArgs, ignore, info, info, interpretTables, label, loadFixture, parse, right, wrong, wrong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseContext

public DatabaseContext()
Method Detail

getDataSet

public static org.dbunit.dataset.DefaultDataSet getDataSet()

driverName

public void driverName(java.lang.String name)

url

public void url(java.lang.String url)

user

public void user(java.lang.String user)

password

public void password(java.lang.String password)

getConnection

public static java.sql.Connection getConnection()
                                         throws java.lang.ClassNotFoundException,
                                                java.sql.SQLException
Throws:
java.lang.ClassNotFoundException
java.sql.SQLException

createDatabaseConnection

public static org.dbunit.database.DatabaseConnection createDatabaseConnection()
                                                                       throws java.lang.ClassNotFoundException,
                                                                              java.sql.SQLException
Throws:
java.lang.ClassNotFoundException
java.sql.SQLException

connect

protected void connect()
                throws java.lang.ClassNotFoundException,
                       java.sql.SQLException
Throws:
java.lang.ClassNotFoundException
java.sql.SQLException

truncate

public void truncate()
              throws java.lang.Exception
Throws:
java.lang.Exception

disconnect

protected void disconnect()
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

insert

public void insert()
            throws org.dbunit.DatabaseUnitException,
                   java.sql.SQLException
Throws:
org.dbunit.DatabaseUnitException
java.sql.SQLException

cleanInsert

public void cleanInsert()
                 throws org.dbunit.DatabaseUnitException,
                        java.sql.SQLException,
                        java.lang.ClassNotFoundException
Throws:
org.dbunit.DatabaseUnitException
java.sql.SQLException
java.lang.ClassNotFoundException

resetDataSet

public void resetDataSet()


Copyright © 2009 SourceForge. All Rights Reserved.