public class MessageArchiveDB extends Object
| Constructor and Description |
|---|
MessageArchiveDB() |
| Modifier and Type | Method and Description |
|---|---|
void |
archiveMessage(tigase.xmpp.BareJID owner,
tigase.xmpp.BareJID buddy,
short direction,
tigase.xml.Element msg)
Method description
|
List<tigase.xml.Element> |
getCollections(tigase.xmpp.BareJID owner,
String withJid,
Date start,
Date end,
RSM rsm)
Method description
|
List<tigase.xml.Element> |
getItems(tigase.xmpp.BareJID owner,
String withJid,
Date start,
Date end,
RSM rsm)
Method description
|
protected long[] |
getJidsIds(String... jids)
Method description
|
void |
initRepository(String conn_str,
Map<String,String> params)
Method description
|
void |
removeItems(tigase.xmpp.BareJID owner,
String withJid,
Date start,
Date end)
Method description
|
public void initRepository(String conn_str, Map<String,String> params) throws SQLException
conn_str - params - SQLExceptionpublic void archiveMessage(tigase.xmpp.BareJID owner,
tigase.xmpp.BareJID buddy,
short direction,
tigase.xml.Element msg)
owner - buddy - direction - msg - public List<tigase.xml.Element> getCollections(tigase.xmpp.BareJID owner, String withJid, Date start, Date end, RSM rsm) throws SQLException
owner - withJid - start - end - rsm - SQLExceptionpublic List<tigase.xml.Element> getItems(tigase.xmpp.BareJID owner, String withJid, Date start, Date end, RSM rsm) throws SQLException
owner - withJid - start - limit - offset - SQLExceptionpublic void removeItems(tigase.xmpp.BareJID owner,
String withJid,
Date start,
Date end)
throws SQLException
owner - withJid - start - end - SQLExceptionprotected long[] getJidsIds(String... jids) throws SQLException
jids - SQLExceptionCopyright © 2014. All rights reserved.