public class MsgRepositoryStoredProcedures extends Object
| Constructor and Description |
|---|
MsgRepositoryStoredProcedures() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addMessage(String receiver,
String sender,
Integer type,
Timestamp ts,
String message,
Timestamp expired,
Long limit,
ResultSet[] data) |
static void |
deleteMessage(Long msgId) |
static void |
deleteMessages(String receiver,
ResultSet[] data) |
static void |
deleteMessagesByIds(String receiver,
String msgId1,
String msgId2,
String msgId3,
String msgId4,
ResultSet[] data) |
static void |
getExpiredMessages(int limit,
ResultSet[] data) |
static void |
getExpiredMessagesBefore(Timestamp before,
ResultSet[] data) |
static void |
getMessages(String receiver,
ResultSet[] data) |
static void |
getMessagesByIds(String receiver,
String msgId1,
String msgId2,
String msgId3,
String msgId4,
ResultSet[] data) |
static void |
getMessagesCount(String receiver,
ResultSet[] data) |
static void |
listMessages(String receiver,
ResultSet[] data) |
static void |
migrateFromOldSchema() |
public static void addMessage(String receiver, String sender, Integer type, Timestamp ts, String message, Timestamp expired, Long limit, ResultSet[] data) throws SQLException
SQLExceptionpublic static void deleteMessage(Long msgId) throws SQLException
SQLExceptionpublic static void deleteMessages(String receiver, ResultSet[] data) throws SQLException
SQLExceptionpublic static void deleteMessagesByIds(String receiver, String msgId1, String msgId2, String msgId3, String msgId4, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getExpiredMessages(int limit,
ResultSet[] data)
throws SQLException
SQLExceptionpublic static void getExpiredMessagesBefore(Timestamp before, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getMessages(String receiver, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getMessagesByIds(String receiver, String msgId1, String msgId2, String msgId3, String msgId4, ResultSet[] data) throws SQLException
SQLExceptionpublic static void getMessagesCount(String receiver, ResultSet[] data) throws SQLException
SQLExceptionpublic static void listMessages(String receiver, ResultSet[] data) throws SQLException
SQLExceptionpublic static void migrateFromOldSchema()
throws SQLException
SQLExceptionCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.