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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
connect()
protected boolean
create()
TODO : place creation scripts in a DerbyStructure classprotected boolean
exists()
protected String
static Connection
TODO : 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 DerbyFactory
void
init()
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:
getIBrolDao
in classDAOFactory
-
getIConfigDao
- Specified by:
getIConfigDao
in classDAOFactory
-
getIPersonDao
- Specified by:
getIPersonDao
in classDAOFactory
-
getInfos
TODO: use language file, and read "config" table to retrieve the version- Specified by:
getInfos
in 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()
-