|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.test.persistence.AbstractDatabase
org.wamblee.test.persistence.DerbyDatabase
public class DerbyDatabase
Derby database setup. The external JDBC url used to connect to a running instance is
jdbc:derby:net://localhost:1527/testdb
and the driver class is
com.ibm.db2.jcc.DB2DriverThe following jars will have to be used
db2jcc.jar and
db2jcc_license_c.jar.
| Constructor Summary | |
|---|---|
DerbyDatabase()
Constructs derby database class to allow creation of derby database instances. |
|
DerbyDatabase(boolean aInMemoryFlag)
|
|
| Method Summary | |
|---|---|
java.sql.Connection |
createConnection()
|
void |
doStart()
To be implemented by subclasses to start the database. |
void |
doStop()
Stops the derby database and cleans up all derby files. |
java.lang.String |
getExternalJdbcUrl()
Gets the external Jdbc URL to connect to this database from other JVMs. |
java.lang.String |
getJdbcUrl()
Gets the Jdbc Url to connect to this database. |
java.lang.String |
getPassword()
Gets the password. |
java.lang.String |
getUsername()
Gets the user name. |
| Methods inherited from class org.wamblee.test.persistence.AbstractDatabase |
|---|
createDataSource, getActiveConnections, getProperty, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DerbyDatabase()
public DerbyDatabase(boolean aInMemoryFlag)
| Method Detail |
|---|
public void doStart()
AbstractDatabase
doStart in class AbstractDatabasepublic java.lang.String getJdbcUrl()
Database
public java.lang.String getExternalJdbcUrl()
Database
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.sql.Connection createConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void doStop()
doStop in class AbstractDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||