com.uwyn.drone.modules.faqmanagement
Class DatabaseFaqs
java.lang.Object
com.uwyn.rife.database.DbQueryManager
com.uwyn.drone.modules.faqmanagement.DatabaseFaqs
- All Implemented Interfaces:
- Cloneable, FaqManager
- Direct Known Subclasses:
- generic
- public abstract class DatabaseFaqs
- extends DbQueryManager
- implements FaqManager
Method Summary |
protected int |
_addFaq(SequenceValue 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 |
DatabaseFaqs
protected DatabaseFaqs(Datasource datasource)
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(SequenceValue 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.