Class PostgreSqlHistoryProvider
java.lang.Object
tigase.muc.history.AbstractHistoryProvider<tigase.db.DataRepository>
tigase.muc.history.AbstractJDBCHistoryProvider
tigase.muc.history.PostgreSqlHistoryProvider
- All Implemented Interfaces:
tigase.db.DataSourceAware<tigase.db.DataRepository>, HistoryProvider<tigase.db.DataRepository>
- Author:
- bmalkow
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractJDBCHistoryProvider
ADD_MESSAGE_QUERY_KEY, dataRepository, DELETE_MESSAGES_QUERY_KEY, GET_MESSAGES_MAXSTANZAS_QUERY_KEY, GET_MESSAGES_SINCE_QUERY_KEYFields inherited from class AbstractHistoryProvider
parser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJoinEvent(Room room, Date date, tigase.xmpp.jid.JID senderJID, String nickName) Adds join event.voidaddLeaveEvent(Room room, Date date, tigase.xmpp.jid.JID senderJID, String nickName) voidaddSubjectChange(Room room, tigase.xml.Element message, String subject, tigase.xmpp.jid.JID senderJid, String senderNickname, Date time) Adds subject changes to log/history.voidinit(tigase.db.DataRepository dataRepository) voidsetDataSource(tigase.db.DataRepository dataSource) Methods inherited from class AbstractJDBCHistoryProvider
addMessage, destroy, getHistoryMessages, isPersistent, processResultSet, removeHistoryMethods inherited from class AbstractHistoryProvider
calculateOffsetAndPosition, createMessage, createMessage, createMessageElement, isAllowedToSeeJIDs, parseMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HistoryProvider
addMessage
-
Field Details
-
ADD_MESSAGE_QUERY_VAL
- See Also:
-
DELETE_MESSAGES_QUERY_VAL
- See Also:
-
GET_MESSAGES_MAXSTANZAS_QUERY_VAL
- See Also:
-
GET_MESSAGES_SINCE_QUERY_VAL
- See Also:
-
-
Constructor Details
-
PostgreSqlHistoryProvider
public PostgreSqlHistoryProvider()
-
-
Method Details
-
addJoinEvent
-
addLeaveEvent
-
addSubjectChange
-
init
public void init(tigase.db.DataRepository dataRepository) -
setDataSource
public void setDataSource(tigase.db.DataRepository dataSource) - Specified by:
setDataSourcein interfacetigase.db.DataSourceAware<tigase.db.DataRepository>- Overrides:
setDataSourcein classAbstractJDBCHistoryProvider
-