com.uwyn.drone.modules.faqmanagement
Class DatabaseFaqs

java.lang.Object
  extended bycom.uwyn.rife.database.DbQueryManager
      extended bycom.uwyn.drone.modules.faqmanagement.DatabaseFaqs
All Implemented Interfaces:
Cloneable, FaqManager
Direct Known Subclasses:
com_mysql_jdbc_Driver, org_postgresql_Driver

public abstract class DatabaseFaqs
extends DbQueryManager
implements FaqManager


Constructor Summary
protected DatabaseFaqs(Datasource datasource)
           
 
Method Summary
protected  int _addFaq(Select getFaqId, Insert addFaq, Bot bot, FaqData faqData)
           
protected  boolean _editFaq(Update editFaq, FaqData faqData)
           
protected  FaqData _getFaq(Select getFaq, Bot bot, String name)
           
protected  FaqData _getFaqById(Select getFaqById, int id)
           
protected  FaqData _getRandomFaq(Select getRandomFaqIds, Bot bot)
           
protected  boolean _install(CreateSequence createSequenceFaq, CreateTable createTableFaq)
           
protected  boolean _remove(DropSequence dropSequenceFaq, DropTable dropTableFaq)
           
protected  boolean _removeFaq(Delete removeFaq, Bot bot, String name)
           
protected  boolean _setRandom(Update setRandom, Bot bot, String name, boolean state)
           
abstract  boolean install()
           
abstract  boolean remove()
           
 
Methods inherited from class com.uwyn.rife.database.DbQueryManager
clone, executeFetchAll, executeFetchAll, executeFetchAllBeans, executeFetchAllBeans, executeFetchFirst, executeFetchFirst, executeFetchFirstBean, executeFetchFirstBean, executeGetFirstBoolean, executeGetFirstBoolean, executeGetFirstByte, executeGetFirstByte, executeGetFirstBytes, executeGetFirstBytes, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDouble, executeGetFirstDouble, executeGetFirstFloat, executeGetFirstFloat, executeGetFirstInt, executeGetFirstInt, executeGetFirstLong, executeGetFirstLong, executeGetFirstShort, executeGetFirstShort, executeGetFirstString, executeGetFirstString, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeHasResultRows, executeHasResultRows, executeQuery, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUseFirstAsciiStream, executeUseFirstAsciiStream, executeUseFirstBinaryStream, executeUseFirstBinaryStream, executeUseFirstCharacterStream, executeUseFirstCharacterStream, fetch, fetch, fetchAll, getConnection, getDatasource, inTransaction, reserveConnection
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.uwyn.drone.modules.faqmanagement.FaqManager
addFaq, editFaq, getFaq, getFaqById, getRandomFaq, removeFaq, setRandom
 

Constructor Detail

DatabaseFaqs

protected DatabaseFaqs(Datasource datasource)
Method Detail

install

public abstract boolean install()
                         throws FaqManagerException
Throws:
FaqManagerException

remove

public abstract boolean remove()
                        throws FaqManagerException
Throws:
FaqManagerException

_install

protected boolean _install(CreateSequence createSequenceFaq,
                           CreateTable createTableFaq)
                    throws FaqManagerException
Throws:
FaqManagerException

_addFaq

protected int _addFaq(Select getFaqId,
                      Insert addFaq,
                      Bot bot,
                      FaqData faqData)
               throws FaqManagerException
Throws:
FaqManagerException

_editFaq

protected boolean _editFaq(Update editFaq,
                           FaqData faqData)
                    throws FaqManagerException
Throws:
FaqManagerException

_getFaq

protected FaqData _getFaq(Select getFaq,
                          Bot bot,
                          String name)
                   throws FaqManagerException
Throws:
FaqManagerException

_getFaqById

protected FaqData _getFaqById(Select getFaqById,
                              int id)
                       throws FaqManagerException
Throws:
FaqManagerException

_getRandomFaq

protected FaqData _getRandomFaq(Select getRandomFaqIds,
                                Bot bot)
                         throws FaqManagerException
Throws:
FaqManagerException

_setRandom

protected boolean _setRandom(Update setRandom,
                             Bot bot,
                             String name,
                             boolean state)
                      throws FaqManagerException
Throws:
FaqManagerException

_removeFaq

protected boolean _removeFaq(Delete removeFaq,
                             Bot bot,
                             String name)
                      throws FaqManagerException
Throws:
FaqManagerException

_remove

protected boolean _remove(DropSequence dropSequenceFaq,
                          DropTable dropTableFaq)
                   throws FaqManagerException
Throws:
FaqManagerException


Copyright © 2002-2005 Uwyn bvba/sprl. All Rights Reserved.