Package tigase.muc.history
Class MySqlHistoryProvider
java.lang.Object
tigase.muc.history.AbstractHistoryProvider<tigase.db.DataRepository>
tigase.muc.history.AbstractJDBCHistoryProvider
tigase.muc.history.MySqlHistoryProvider
- All Implemented Interfaces:
tigase.db.DataSourceAware<tigase.db.DataRepository>
,HistoryProvider<tigase.db.DataRepository>
- Author:
- bmalkow
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class tigase.muc.history.AbstractJDBCHistoryProvider
ADD_MESSAGE_QUERY_KEY, dataRepository, DELETE_MESSAGES_QUERY_KEY, GET_MESSAGES_MAXSTANZAS_QUERY_KEY, GET_MESSAGES_SINCE_QUERY_KEY
Fields inherited from class tigase.muc.history.AbstractHistoryProvider
parser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addJoinEvent
(Room room, Date date, tigase.xmpp.jid.JID senderJID, String nickName) Adds join event.void
addLeaveEvent
(Room room, Date date, tigase.xmpp.jid.JID senderJID, String nickName) void
addSubjectChange
(Room room, tigase.xml.Element message, String subject, tigase.xmpp.jid.JID senderJid, String senderNickname, Date time) Adds subject changes to log/history.void
init
(tigase.db.DataRepository dataRepository) void
setDataSource
(tigase.db.DataRepository dataSource) Methods inherited from class tigase.muc.history.AbstractJDBCHistoryProvider
addMessage, destroy, getHistoryMessages, isPersistent, processResultSet, removeHistory
Methods inherited from class tigase.muc.history.AbstractHistoryProvider
calculateOffsetAndPosition, createMessage, createMessage, createMessageElement, isAllowedToSeeJIDs, parseMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.muc.history.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
-
MySqlHistoryProvider
public MySqlHistoryProvider()
-
-
Method Details
-
addJoinEvent
Adds join event. -
addLeaveEvent
-
addSubjectChange
public void addSubjectChange(Room room, tigase.xml.Element message, String subject, tigase.xmpp.jid.JID senderJid, String senderNickname, Date time) Adds subject changes to log/history. -
init
public void init(tigase.db.DataRepository dataRepository) -
setDataSource
public void setDataSource(tigase.db.DataRepository dataSource) - Specified by:
setDataSource
in interfacetigase.db.DataSourceAware<tigase.db.DataRepository>
- Overrides:
setDataSource
in classAbstractJDBCHistoryProvider
-