public abstract class AbstractJDBCHistoryProvider extends AbstractHistoryProvider<tigase.db.DataRepository>
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_MESSAGE_QUERY_KEY |
protected tigase.db.DataRepository |
dataRepository |
static String |
DELETE_MESSAGES_QUERY_KEY |
static String |
GET_MESSAGES_MAXSTANZAS_QUERY_KEY |
static String |
GET_MESSAGES_SINCE_QUERY_KEY |
log, parser| Constructor and Description |
|---|
AbstractJDBCHistoryProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(Room room,
tigase.xml.Element message,
String body,
tigase.xmpp.jid.JID senderJid,
String senderNickname,
Date time) |
void |
destroy()
Destroys this instance of HistoryProvider releasing all resources allocated but this provider if they should be
released
|
void |
getHistoryMessages(Room room,
tigase.xmpp.jid.JID senderJID,
Integer maxchars,
Integer maxstanzas,
Integer seconds,
Date since,
tigase.component.PacketWriter writer) |
boolean |
isPersistent(Room room) |
protected void |
processResultSet(Room room,
tigase.xmpp.jid.JID senderJID,
tigase.component.PacketWriter writer,
ResultSet rs) |
void |
removeHistory(Room room) |
void |
setDataSource(tigase.db.DataRepository dataSource) |
calculateOffsetAndPosition, createMessage, createMessageElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddJoinEvent, addLeaveEvent, addSubjectChangepublic static final String ADD_MESSAGE_QUERY_KEY
public static final String DELETE_MESSAGES_QUERY_KEY
public static final String GET_MESSAGES_MAXSTANZAS_QUERY_KEY
public static final String GET_MESSAGES_SINCE_QUERY_KEY
protected tigase.db.DataRepository dataRepository
public void setDataSource(tigase.db.DataRepository dataSource)
public void addMessage(Room room, tigase.xml.Element message, String body, tigase.xmpp.jid.JID senderJid, String senderNickname, Date time)
public void destroy()
HistoryProviderpublic void getHistoryMessages(Room room, tigase.xmpp.jid.JID senderJID, Integer maxchars, Integer maxstanzas, Integer seconds, Date since, tigase.component.PacketWriter writer)
public final boolean isPersistent(Room room)
public void removeHistory(Room room)
protected void processResultSet(Room room, tigase.xmpp.jid.JID senderJID, tigase.component.PacketWriter writer, ResultSet rs) throws SQLException, tigase.util.stringprep.TigaseStringprepException
SQLExceptiontigase.util.stringprep.TigaseStringprepExceptionCopyright © 2007–2019 "Tigase, Inc.". All rights reserved.