Package tigase.muc.repository.derby
Class StoredProcedures
java.lang.Object
tigase.muc.repository.derby.StoredProcedures
Created by andrzej on 19.10.2016.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected static Stringsha1OfLower(String data) static voidtigMucAddMessage(String roomJid, String stableId, Timestamp ts, String senderJid, String senderNick, String body, Boolean publicEvent, String msg) static voidtigMucCreateRoom(String roomJid, String creatorJid, Timestamp creationDate, String roomName, String roomConfig, ResultSet[] data) static voidtigMucDeleteMessages(String roomJid) static voidtigMucDestroyRoom(String roomJid) static voidtigMucGetAvatar(Long id, ResultSet[] data) static voidtigMucGetMessage(String roomJid, String stableId, ResultSet[] data) static voidtigMucGetMessages(String roomJid, Integer maxMessages, Timestamp since, ResultSet[] data) static voidtigMucGetRoom(String roomJid, ResultSet[] data) static voidtigMucGetRoomAffiliations(Long roomId, ResultSet[] data) static voidtigMucGetRoomsJids(ResultSet[] data) static voidtigMucMamGetMessagePosition(String roomJid, Timestamp since, Timestamp to, String nickname, String stableId, ResultSet[] data) static voidtigMucMamGetMessages(String roomJid, Timestamp since, Timestamp to, String nickname, Integer limit, Integer offset, ResultSet[] data) static voidtigMucMamGetMessagesCount(String roomJid, Timestamp since, Timestamp to, String nickname, ResultSet[] data) static voidtigMucMamUpdateMessage(String roomJid, String stableId, String body, String msg) static voidtigMucSetAvatar(Long roomId, Clob avatar, String avatarHash) static voidtigMucSetRoomAffiliation(Long roomId, String jid, String affiliation, Boolean persistent, String nickname) static voidtigMucSetRoomConfig(String roomJid, String name, String config) static voidtigMucSetRoomSubject(Long roomId, String subject, String creator, Timestamp changeDate)
-
Constructor Details
-
StoredProcedures
public StoredProcedures()
-
-
Method Details
-
migrateFromOldSchema
- Throws:
SQLException
-
sha1OfLower
- Throws:
SQLException
-
tigMucAddMessage
public static void tigMucAddMessage(String roomJid, String stableId, Timestamp ts, String senderJid, String senderNick, String body, Boolean publicEvent, String msg) throws SQLException - Throws:
SQLException
-
tigMucCreateRoom
public static void tigMucCreateRoom(String roomJid, String creatorJid, Timestamp creationDate, String roomName, String roomConfig, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigMucDeleteMessages
- Throws:
SQLException
-
tigMucDestroyRoom
- Throws:
SQLException
-
tigMucGetAvatar
- Throws:
SQLException
-
tigMucGetMessage
public static void tigMucGetMessage(String roomJid, String stableId, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigMucGetMessages
public static void tigMucGetMessages(String roomJid, Integer maxMessages, Timestamp since, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigMucGetRoom
- Throws:
SQLException
-
tigMucGetRoomAffiliations
- Throws:
SQLException
-
tigMucGetRoomsJids
- Throws:
SQLException
-
tigMucMamGetMessagePosition
public static void tigMucMamGetMessagePosition(String roomJid, Timestamp since, Timestamp to, String nickname, String stableId, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigMucMamGetMessages
public static void tigMucMamGetMessages(String roomJid, Timestamp since, Timestamp to, String nickname, Integer limit, Integer offset, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigMucMamGetMessagesCount
public static void tigMucMamGetMessagesCount(String roomJid, Timestamp since, Timestamp to, String nickname, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigMucMamUpdateMessage
public static void tigMucMamUpdateMessage(String roomJid, String stableId, String body, String msg) throws SQLException - Throws:
SQLException
-
tigMucSetAvatar
- Throws:
SQLException
-
tigMucSetRoomAffiliation
public static void tigMucSetRoomAffiliation(Long roomId, String jid, String affiliation, Boolean persistent, String nickname) throws SQLException - Throws:
SQLException
-
tigMucSetRoomConfig
public static void tigMucSetRoomConfig(String roomJid, String name, String config) throws SQLException - Throws:
SQLException
-
tigMucSetRoomSubject
public static void tigMucSetRoomSubject(Long roomId, String subject, String creator, Timestamp changeDate) throws SQLException - Throws:
SQLException
-