Package org.dbunit
Class H2Environment
java.lang.Object
org.dbunit.DatabaseEnvironment
org.dbunit.H2Environment
- Since:
- Feb 18, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic ConnectioncreateJdbcConnection(String databaseName) static ConnectioncreateJdbcConnection(String databaseName, String username, String password) static voiddeleteFiles(File directory, String filename) static voiddeleteFiles(String filename) static voidshutdown(Connection connection) Methods inherited from class org.dbunit.DatabaseEnvironment
convertString, getConnection, getDatabaseTester, getInitDataSet, getInstance, getProfile, getProperties, loadDbunitPropertiesFromFile, setupDatabaseConfig, support, toString
-
Field Details
-
USERNAME_DEFAULT
- See Also:
-
PASSWORD_DEFAULT
- See Also:
-
-
Constructor Details
-
H2Environment
- Throws:
Exception
-
-
Method Details
-
createJdbcConnection
- Throws:
Exception
-
createJdbcConnection
public static Connection createJdbcConnection(String databaseName, String username, String password) throws Exception - Throws:
Exception
-
closeConnection
- Overrides:
closeConnectionin classDatabaseEnvironment- Throws:
Exception
-
shutdown
- Throws:
SQLException
-
deleteFiles
-
deleteFiles
-