public class StoredProcedures extends Object
| Constructor and Description |
|---|
StoredProcedures() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addMessage(String ownerJid,
String buddyJid,
String buddyRes,
Timestamp ts,
short direction,
String type,
String body,
String msg,
String hash,
ResultSet[] data) |
static void |
addTagToMessage(long msgId,
String tag) |
protected static StringBuilder |
appendContainsQuery(StringBuilder sb,
String contains) |
protected static StringBuilder |
appendTagsQuery(StringBuilder sb,
String tags) |
static void |
deleteExpiredMessages(String domain,
Timestamp before) |
static Long |
ensureJid(String jid) |
static void |
getCollections(String ownerJid,
String buddyJid,
Timestamp from,
Timestamp to,
String tags,
String contains,
short byType,
Integer limit,
Integer offset,
ResultSet[] data) |
static void |
getCollectionsCount(String ownerJid,
String buddyJid,
Timestamp from,
Timestamp to,
String tags,
String contains,
short byType,
ResultSet[] data) |
static Long |
getJidId(tigase.xmpp.jid.BareJID bareJid,
String jidSha1) |
static void |
getMessagePosition(String ownerJid,
String buddyJid,
Timestamp from,
Timestamp to,
String tags,
String contains,
String hash,
ResultSet[] data) |
static void |
getMessages(String ownerJid,
String buddyJid,
Timestamp from,
Timestamp to,
String tags,
String contains,
Integer limit,
Integer offset,
ResultSet[] data) |
static void |
getMessagesCount(String ownerJid,
String buddyJid,
Timestamp from,
Timestamp to,
String tags,
String contains,
ResultSet[] data) |
static void |
getTagsForUser(String ownerJid,
String tagStartsWith,
Integer limit,
Integer offset,
ResultSet[] data) |
static void |
getTagsForUserCount(String ownerJid,
String tagStartsWith,
ResultSet[] data) |
static void |
removeMessages(String ownerJid,
String buddyJid,
Timestamp from,
Timestamp to) |
protected static String |
sha1OfLower(String data) |
public static void addMessage(String ownerJid, String buddyJid, String buddyRes, Timestamp ts, short direction, String type, String body, String msg, String hash, ResultSet[] data) throws SQLException
SQLExceptionpublic static void addTagToMessage(long msgId,
String tag)
throws SQLException
SQLExceptionprotected static StringBuilder appendContainsQuery(StringBuilder sb, String contains)
protected static StringBuilder appendTagsQuery(StringBuilder sb, String tags)
public static void deleteExpiredMessages(String domain, Timestamp before) throws SQLException
SQLExceptionpublic static Long ensureJid(String jid) throws SQLException
SQLExceptionpublic static void getCollections(String ownerJid, String buddyJid, Timestamp from, Timestamp to, String tags, String contains, short byType, Integer limit, Integer offset, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getCollectionsCount(String ownerJid, String buddyJid, Timestamp from, Timestamp to, String tags, String contains, short byType, ResultSet[] data) throws SQLException
SQLExceptionpublic static Long getJidId(tigase.xmpp.jid.BareJID bareJid, String jidSha1) throws SQLException
SQLExceptionpublic static void getMessagePosition(String ownerJid, String buddyJid, Timestamp from, Timestamp to, String tags, String contains, String hash, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getMessages(String ownerJid, String buddyJid, Timestamp from, Timestamp to, String tags, String contains, Integer limit, Integer offset, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getMessagesCount(String ownerJid, String buddyJid, Timestamp from, Timestamp to, String tags, String contains, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getTagsForUser(String ownerJid, String tagStartsWith, Integer limit, Integer offset, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getTagsForUserCount(String ownerJid, String tagStartsWith, ResultSet[] data) throws SQLException
SQLExceptionpublic static void removeMessages(String ownerJid, String buddyJid, Timestamp from, Timestamp to) throws SQLException
SQLExceptionprotected static String sha1OfLower(String data) throws SQLException
SQLExceptionCopyright © 2012–2021 "Tigase, Inc.". All rights reserved.