com.uwyn.drone.modules.faqmanagement.databasedrivers
Class generic

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

public class generic
extends DatabaseFaqs


Field Summary
protected  Insert mAddFaq
           
protected  CreateSequence mCreateSequenceFaq
           
protected  CreateTable mCreateTableFaq
           
protected  DropSequence mDropSequenceFaq
           
protected  DropTable mDropTableFaq
           
protected  Update mEditFaq
           
protected  Select mGetFaq
           
protected  Select mGetFaqById
           
protected  SequenceValue mGetFaqId
           
protected  Select mGetRandomFaqIds
           
protected  Delete mRemoveFaq
           
protected  Update mSetRandom
           
 
Constructor Summary
generic(Datasource datasource)
           
 
Method Summary
 int addFaq(Bot bot, FaqData faqData)
           
 boolean editFaq(FaqData faqData)
           
 FaqData getFaq(Bot bot, String name)
           
 FaqData getFaqById(int id)
           
 FaqData getRandomFaq(Bot bot)
           
 boolean install()
           
 boolean remove()
           
 boolean removeFaq(Bot bot, String name)
           
 boolean setRandom(Bot bot, String name, boolean state)
           
 
Methods inherited from class com.uwyn.drone.modules.faqmanagement.DatabaseFaqs
_addFaq, _editFaq, _getFaq, _getFaqById, _getRandomFaq, _install, _remove, _removeFaq, _setRandom
 
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
 

Field Detail

mCreateSequenceFaq

protected CreateSequence mCreateSequenceFaq

mCreateTableFaq

protected CreateTable mCreateTableFaq

mGetFaqId

protected SequenceValue mGetFaqId

mAddFaq

protected Insert mAddFaq

mEditFaq

protected Update mEditFaq

mGetFaq

protected Select mGetFaq

mGetFaqById

protected Select mGetFaqById

mGetRandomFaqIds

protected Select mGetRandomFaqIds

mSetRandom

protected Update mSetRandom

mRemoveFaq

protected Delete mRemoveFaq

mDropSequenceFaq

protected DropSequence mDropSequenceFaq

mDropTableFaq

protected DropTable mDropTableFaq
Constructor Detail

generic

public generic(Datasource datasource)
Method Detail

install

public boolean install()
                throws FaqManagerException
Specified by:
install in class DatabaseFaqs
Throws:
FaqManagerException

addFaq

public int addFaq(Bot bot,
                  FaqData faqData)
           throws FaqManagerException
Throws:
FaqManagerException

editFaq

public boolean editFaq(FaqData faqData)
                throws FaqManagerException
Throws:
FaqManagerException

getFaq

public FaqData getFaq(Bot bot,
                      String name)
               throws FaqManagerException
Throws:
FaqManagerException

getFaqById

public FaqData getFaqById(int id)
                   throws FaqManagerException
Throws:
FaqManagerException

getRandomFaq

public FaqData getRandomFaq(Bot bot)
                     throws FaqManagerException
Throws:
FaqManagerException

setRandom

public boolean setRandom(Bot bot,
                         String name,
                         boolean state)
                  throws FaqManagerException
Throws:
FaqManagerException

removeFaq

public boolean removeFaq(Bot bot,
                         String name)
                  throws FaqManagerException
Throws:
FaqManagerException

remove

public boolean remove()
               throws FaqManagerException
Specified by:
remove in class DatabaseFaqs
Throws:
FaqManagerException


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