de.janrufmonitor.repository.db.hsqldb
Class HsqldbMultiPhoneCallerDatabaseHandler

java.lang.Object
  extended by de.janrufmonitor.repository.db.AbstractDatabaseHandler
      extended by de.janrufmonitor.repository.db.AbstractMultiPhoneCallerDatabaseHandler
          extended by de.janrufmonitor.repository.db.hsqldb.HsqldbMultiPhoneCallerDatabaseHandler
All Implemented Interfaces:
ICallerDatabaseHandler, IDatabaseHandler

public abstract class HsqldbMultiPhoneCallerDatabaseHandler
extends AbstractMultiPhoneCallerDatabaseHandler


Field Summary
 
Fields inherited from class de.janrufmonitor.repository.db.AbstractDatabaseHandler
commit_count, m_con, m_logger, m_preparedStatements
 
Constructor Summary
HsqldbMultiPhoneCallerDatabaseHandler(String driver, String connection, String user, String password, boolean initialize)
           
 
Method Summary
protected  ICallerList buildCallerList(IFilter[] filters)
          Create the caller list from a query of the database.
 void commit()
          Commits the changed data to the database.
protected  void createTables()
          Creates the database table.
 void disconnect()
          Disconnects the current db and shuts it down.
 
Methods inherited from class de.janrufmonitor.repository.db.AbstractMultiPhoneCallerDatabaseHandler
addPreparedStatements, deleteCallerList, existsCaller, getCaller, getCallerList, insertOrUpdateCallerList
 
Methods inherited from class de.janrufmonitor.repository.db.AbstractDatabaseHandler
connect, createAttributes, deleteAttributes, getRuntime, getStatement, isConnected, isInitializing, isKeepAlive, rollback, setCommitCount, setInitializing, setKeepAlive, updateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.janrufmonitor.repository.db.IDatabaseHandler
connect, isConnected, isKeepAlive, rollback, setCommitCount, setKeepAlive
 

Constructor Detail

HsqldbMultiPhoneCallerDatabaseHandler

public HsqldbMultiPhoneCallerDatabaseHandler(String driver,
                                             String connection,
                                             String user,
                                             String password,
                                             boolean initialize)
Method Detail

disconnect

public void disconnect()
                throws SQLException
Description copied from class: AbstractDatabaseHandler
Disconnects the current db and shuts it down. The connection is set to null.

Specified by:
disconnect in interface IDatabaseHandler
Overrides:
disconnect in class AbstractDatabaseHandler
Throws:
SQLException

commit

public void commit()
            throws SQLException
Description copied from class: AbstractDatabaseHandler
Commits the changed data to the database.

Specified by:
commit in interface IDatabaseHandler
Overrides:
commit in class AbstractDatabaseHandler
Throws:
SQLException

createTables

protected void createTables()
                     throws SQLException
Description copied from class: AbstractDatabaseHandler
Creates the database table.

Overrides:
createTables in class AbstractMultiPhoneCallerDatabaseHandler
Throws:
SQLException

buildCallerList

protected ICallerList buildCallerList(IFilter[] filters)
                               throws SQLException
Description copied from class: AbstractMultiPhoneCallerDatabaseHandler
Create the caller list from a query of the database. This abstract method must be implemented by all CallerDatabaseHandler.

Specified by:
buildCallerList in class AbstractMultiPhoneCallerDatabaseHandler
Parameters:
filters - filetrs applied to the result
Returns:
Throws:
SQLException


Copyright © 2010 by Thilo Brandt. All Rights Reserved.