public class DerbyDatabase extends AbstractDatabase
jdbc:derby:net://localhost:1527/testdband the driver class is
com.ibm.db2.jcc.DB2DriverThe following jars will have to be used
db2jcc.jar
and
db2jcc_license_c.jar
.Constructor and Description |
---|
DerbyDatabase()
Constructs derby database class to allow creation of derby database
instances.
|
DerbyDatabase(boolean aInMemoryFlag) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getExternalJdbcUrl()
Gets the external Jdbc URL to connect to this database from other JVMs.
|
String |
getJdbcUrl()
Gets the Jdbc Url to connect to this database.
|
String |
getPassword()
Gets the password.
|
String |
getUsername()
Gets the user name.
|
createDataSource, getActiveConnections, getProperty, start, stop
public DerbyDatabase()
public DerbyDatabase(boolean aInMemoryFlag)
public void doStart()
AbstractDatabase
doStart
in class AbstractDatabase
public String getJdbcUrl()
Database
public String getExternalJdbcUrl()
Database
public String getUsername()
public String getPassword()
public Connection createConnection() throws SQLException
SQLException
public void doStop()
doStop
in class AbstractDatabase
Copyright © 2022. All rights reserved.