org.dartra.standard.dao.jdbc.hsqldb
Class HSQLDBDAOFactory
java.lang.Object
org.dartra.standard.dao.jdbc.BaseDAOFactory
org.dartra.standard.dao.jdbc.hsqldb.HSQLDBDAOFactory
- All Implemented Interfaces:
- org.dartra.framework.dao.DAOFactory
- public class HSQLDBDAOFactory
- extends BaseDAOFactory
This DAO factory creates JDBC based data access objects that can access
an HSQLDB database.
The data source used by this factory is expected to be of type
org.dartra.standard.dao.jdbc.JDBCDataSource.
- Author:
- Erwin Vervaet
- See Also:
JDBCDataSource
|
Method Summary |
void |
closeDataSource(org.dartra.framework.dao.DataSource dataSource)
|
org.dartra.framework.dao.BoardDAO |
createBoardDAO()
|
org.dartra.framework.dao.DartsSetDAO |
createDartsSetDAO()
|
org.dartra.framework.dao.GameDAO |
createGameDAO()
|
org.dartra.framework.dao.UserDAO |
createUserDAO()
|
protected boolean |
isDbSchemaPresent(org.dartra.framework.dao.Connection conn)
Checks if the DarTra database schema is present on given connection. |
protected java.lang.String[] |
loadDbSchemaScript()
Load the script that creates the database schema. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HSQLDBDAOFactory
public HSQLDBDAOFactory()
isDbSchemaPresent
protected boolean isDbSchemaPresent(org.dartra.framework.dao.Connection conn)
- Description copied from class:
BaseDAOFactory
Checks if the DarTra database schema is present on given connection.
- Specified by:
isDbSchemaPresent in class BaseDAOFactory
loadDbSchemaScript
protected java.lang.String[] loadDbSchemaScript()
throws java.io.IOException
- Description copied from class:
BaseDAOFactory
Load the script that creates the database schema.
- Specified by:
loadDbSchemaScript in class BaseDAOFactory
- Throws:
java.io.IOException
closeDataSource
public void closeDataSource(org.dartra.framework.dao.DataSource dataSource)
throws org.dartra.framework.dao.DataAccessException
- Throws:
org.dartra.framework.dao.DataAccessException
createBoardDAO
public org.dartra.framework.dao.BoardDAO createBoardDAO()
createDartsSetDAO
public org.dartra.framework.dao.DartsSetDAO createDartsSetDAO()
createGameDAO
public org.dartra.framework.dao.GameDAO createGameDAO()
createUserDAO
public org.dartra.framework.dao.UserDAO createUserDAO()