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
SQLException
public static void deleteMessage(Long msgId) throws SQLException
SQLException
public static void deleteMessages(String receiver, ResultSet[] data) throws SQLException
SQLException
public static void deleteMessagesByIds(String receiver, String msgId1, String msgId2, String msgId3, String msgId4, ResultSet[] data) throws SQLException
SQLException
public static void getExpiredMessages(int limit, ResultSet[] data) throws SQLException
SQLException
public static void getExpiredMessagesBefore(Timestamp before, ResultSet[] data) throws SQLException
SQLException
public static void getMessages(String receiver, ResultSet[] data) throws SQLException
SQLException
public static void getMessagesByIds(String receiver, String msgId1, String msgId2, String msgId3, String msgId4, ResultSet[] data) throws SQLException
SQLException
public static void getMessagesCount(String receiver, ResultSet[] data) throws SQLException
SQLException
public static void listMessages(String receiver, ResultSet[] data) throws SQLException
SQLException
public static void migrateFromOldSchema() throws SQLException
SQLException
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.