Package be.gaudry.bibliobrol.dao.derby
Class DerbyFactory
java.lang.Object
be.gaudry.bibliobrol.dao.DAOFactory
be.gaudry.bibliobrol.dao.derby.DerbyFactory
- Since:
- 1.0 28-mai-08
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class be.gaudry.bibliobrol.dao.DAOFactory
DAOFactory.PersistentType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconnect()protected booleancreate()TODO : place creation scripts in a DerbyStructure classprotected booleanexists()protected Stringstatic ConnectionTODO : place connection in a DerbyHelper class or use the be.gaudry.model.bibliobrol.dao.connections.DBConnection classgetInfos()TODO: use language file, and read "config" table to retrieve the versionstatic DerbyFactoryvoidinit()Methods inherited from class be.gaudry.bibliobrol.dao.DAOFactory
getInstance
-
Constructor Details
-
DerbyFactory
protected DerbyFactory()
-
-
Method Details
-
getInstance
-
init
public void init() -
getIBrolDao
- Specified by:
getIBrolDaoin classDAOFactory
-
getIConfigDao
- Specified by:
getIConfigDaoin classDAOFactory
-
getIPersonDao
- Specified by:
getIPersonDaoin classDAOFactory
-
getInfos
TODO: use language file, and read "config" table to retrieve the version- Specified by:
getInfosin classDAOFactory- Returns:
- HTML informations about the default instance of DAO
-
getDBConnection
TODO : place connection in a DerbyHelper class or use the be.gaudry.model.bibliobrol.dao.connections.DBConnection class- Returns:
-
connect
protected boolean connect() -
create
TODO : place creation scripts in a DerbyStructure class- Returns:
- Throws:
SQLException
-
getDatabaseLocation
-
exists
protected boolean exists()
-