Package tigase.muc.history
Class DerbySqlHistoryProvider
java.lang.Object
tigase.muc.history.AbstractHistoryProvider<tigase.db.DataRepository>
tigase.muc.history.AbstractJDBCHistoryProvider
tigase.muc.history.DerbySqlHistoryProvider
- 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
log, 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
getHistoryMessages
(Room room, tigase.xmpp.jid.JID senderJID, Integer maxchars, Integer maxstanzas, Integer seconds, Date since, tigase.component.PacketWriter writer) void
init
(tigase.db.DataRepository dataRepository) protected void
processResultSet
(Room room, tigase.xmpp.jid.JID senderJID, tigase.component.PacketWriter writer, Integer maxStanzas, ResultSet rs) void
setDataSource
(tigase.db.DataRepository dataRepository) Methods inherited from class tigase.muc.history.AbstractJDBCHistoryProvider
addMessage, destroy, 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
-
DerbySqlHistoryProvider
public DerbySqlHistoryProvider()
-
-
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. -
getHistoryMessages
public void getHistoryMessages(Room room, tigase.xmpp.jid.JID senderJID, Integer maxchars, Integer maxstanzas, Integer seconds, Date since, tigase.component.PacketWriter writer) - Specified by:
getHistoryMessages
in interfaceHistoryProvider<tigase.db.DataRepository>
- Overrides:
getHistoryMessages
in classAbstractJDBCHistoryProvider
-
init
public void init(tigase.db.DataRepository dataRepository) -
setDataSource
public void setDataSource(tigase.db.DataRepository dataRepository) - Specified by:
setDataSource
in interfacetigase.db.DataSourceAware<tigase.db.DataRepository>
- Overrides:
setDataSource
in classAbstractJDBCHistoryProvider
-
processResultSet
protected void processResultSet(Room room, tigase.xmpp.jid.JID senderJID, tigase.component.PacketWriter writer, Integer maxStanzas, ResultSet rs) throws SQLException, tigase.util.stringprep.TigaseStringprepException - Throws:
SQLException
tigase.util.stringprep.TigaseStringprepException
-