Class DerbyFactory

java.lang.Object
be.gaudry.bibliobrol.dao.DAOFactory
be.gaudry.bibliobrol.dao.derby.DerbyFactory

public class DerbyFactory extends DAOFactory
Since:
1.0 28-mai-08
Author:
Steph GAUDRY
  • Constructor Details

    • DerbyFactory

      protected DerbyFactory()
  • Method Details

    • getInstance

      public static DerbyFactory getInstance()
    • init

      public void init()
    • getIBrolDao

      public IBrolDao getIBrolDao()
      Specified by:
      getIBrolDao in class DAOFactory
    • getIConfigDao

      public IConfigDao getIConfigDao()
      Specified by:
      getIConfigDao in class DAOFactory
    • getIPersonDao

      public IPersonDao getIPersonDao()
      Specified by:
      getIPersonDao in class DAOFactory
    • getInfos

      public String getInfos()
      TODO: use language file, and read "config" table to retrieve the version
      Specified by:
      getInfos in class DAOFactory
      Returns:
      HTML informations about the default instance of DAO
    • getDBConnection

      public static Connection 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

      protected boolean create() throws SQLException
      TODO : place creation scripts in a DerbyStructure class
      Returns:
      Throws:
      SQLException
    • getDatabaseLocation

      protected String getDatabaseLocation()
    • exists

      protected boolean exists()