Package tigase.pubsub.repository.derby
Class StoredProcedures
- java.lang.Object
-
- tigase.pubsub.repository.derby.StoredProcedures
-
public class StoredProcedures extends Object
- Author:
- andrzej
-
-
Constructor Summary
Constructors Constructor Description StoredProcedures()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static LonggetIdOfJid(Connection conn, String jid)protected static Stringsha1OfLower(String data)static voidtigPubSubCountNodes(String serviceJid, ResultSet[] data)static voidtigPubSubCreateNode(String serviceJid, String nodeName, Integer nodeType, String nodeCreator, String nodeConf, Long collectionId, Timestamp ts, ResultSet[] data)static voidtigPubSubDeleteAllNodes(String serviceJid, ResultSet[] data)static voidtigPubSubDeleteItem(Long nodeId, String itemId, ResultSet[] data)static voidtigPubSubDeleteNodeSubscription(Long nodeId, String jid, ResultSet[] data)static LongtigPubSubEnsureJid(String jid)static LongtigPubSubEnsureJid(Connection conn, String jid)static LongtigPubSubEnsureServiceJid(String serviceJid)static voidtigPubSubFixItem(Long nodeId, String itemId, Timestamp creationDate, Timestamp updateDate)static voidtigPubSubFixNode(Long nodeId, Timestamp creationDate)static voidtigPubSubGetAllNodes(String serviceJid, ResultSet[] data)static voidtigPubSubGetChildNodes(String serviceJid, String collection, ResultSet[] data)static voidtigPubSubGetItem(Long nodeId, String itemId, ResultSet[] data)static voidtigPubSubGetNodeAffiliations(Long nodeId, ResultSet[] data)static voidtigPubSubGetNodeConfiguration(Long nodeId, ResultSet[] data)static voidtigPubSubGetNodeId(String serviceJid, String nodeName, ResultSet[] data)static voidtigPubSubGetNodeItemIds(Long nodeId, Integer order, ResultSet[] data)static voidtigPubSubGetNodeItemIdsSince(Long nodeId, Integer order, Timestamp since, ResultSet[] data)static voidtigPubSubGetNodeItemsMeta(Long nodeId, ResultSet[] data)static voidtigPubSubGetNodeMeta(String serviceJid, String nodeName, ResultSet[] data)static voidtigPubSubGetNodeSubscriptions(Long nodeId, ResultSet[] data)static voidtigPubSubGetRootNodes(String serviceJid, ResultSet[] data)static voidtigPubSubGetUserAffiliations(String serviceJid, String jid, ResultSet[] data)static voidtigPubSubGetUserSubscriptions(String serviceJid, String jid, ResultSet[] data)static voidtigPubSubMamQueryItemPosition(String nodesIds, Timestamp since, Timestamp to, String publisher, Integer order, Long nodeId, String itemId, ResultSet[] data)static voidtigPubSubMamQueryItems(String nodesIds, Timestamp since, Timestamp to, String publisher, Integer order, Integer limit, Integer offset, ResultSet[] data)static voidtigPubSubMamQueryItemsCount(String nodesIds, Timestamp since, Timestamp to, String publisher, Integer order, ResultSet[] data)static voidtigPubSubRemoveNode(Long nodeId, ResultSet[] data)static voidtigPubSubRemoveService(String serviceJid, ResultSet[] data)static voidtigPubSubSetNodeAffiliation(Long nodeId, String jid, String affil, ResultSet[] data)static voidtigPubSubSetNodeConfiguration(Long nodeId, String conf, Long collectionId, ResultSet[] data)static voidtigPubSubSetNodeSubscription(Long nodeId, String jid, String subscr, String subscrId, ResultSet[] data)static voidtigPubSubWriteItem(Long nodeId, String itemId, String publisher, String itemData, Timestamp ts, ResultSet[] data)
-
-
-
Method Detail
-
getIdOfJid
protected static Long getIdOfJid(Connection conn, String jid) throws SQLException
- Throws:
SQLException
-
sha1OfLower
protected static String sha1OfLower(String data) throws SQLException
- Throws:
SQLException
-
tigPubSubCreateNode
public static void tigPubSubCreateNode(String serviceJid, String nodeName, Integer nodeType, String nodeCreator, String nodeConf, Long collectionId, Timestamp ts, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubDeleteAllNodes
public static void tigPubSubDeleteAllNodes(String serviceJid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubDeleteItem
public static void tigPubSubDeleteItem(Long nodeId, String itemId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubDeleteNodeSubscription
public static void tigPubSubDeleteNodeSubscription(Long nodeId, String jid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubEnsureJid
public static Long tigPubSubEnsureJid(String jid) throws SQLException
- Throws:
SQLException
-
tigPubSubEnsureJid
public static Long tigPubSubEnsureJid(Connection conn, String jid) throws SQLException
- Throws:
SQLException
-
tigPubSubEnsureServiceJid
public static Long tigPubSubEnsureServiceJid(String serviceJid) throws SQLException
- Throws:
SQLException
-
tigPubSubFixItem
public static void tigPubSubFixItem(Long nodeId, String itemId, Timestamp creationDate, Timestamp updateDate) throws SQLException
- Throws:
SQLException
-
tigPubSubFixNode
public static void tigPubSubFixNode(Long nodeId, Timestamp creationDate) throws SQLException
- Throws:
SQLException
-
tigPubSubGetAllNodes
public static void tigPubSubGetAllNodes(String serviceJid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetChildNodes
public static void tigPubSubGetChildNodes(String serviceJid, String collection, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetItem
public static void tigPubSubGetItem(Long nodeId, String itemId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeAffiliations
public static void tigPubSubGetNodeAffiliations(Long nodeId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeConfiguration
public static void tigPubSubGetNodeConfiguration(Long nodeId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeId
public static void tigPubSubGetNodeId(String serviceJid, String nodeName, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeItemIds
public static void tigPubSubGetNodeItemIds(Long nodeId, Integer order, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeItemIdsSince
public static void tigPubSubGetNodeItemIdsSince(Long nodeId, Integer order, Timestamp since, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeItemsMeta
public static void tigPubSubGetNodeItemsMeta(Long nodeId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeMeta
public static void tigPubSubGetNodeMeta(String serviceJid, String nodeName, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetNodeSubscriptions
public static void tigPubSubGetNodeSubscriptions(Long nodeId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetRootNodes
public static void tigPubSubGetRootNodes(String serviceJid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetUserAffiliations
public static void tigPubSubGetUserAffiliations(String serviceJid, String jid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubGetUserSubscriptions
public static void tigPubSubGetUserSubscriptions(String serviceJid, String jid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubMamQueryItemPosition
public static void tigPubSubMamQueryItemPosition(String nodesIds, Timestamp since, Timestamp to, String publisher, Integer order, Long nodeId, String itemId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubMamQueryItems
public static void tigPubSubMamQueryItems(String nodesIds, Timestamp since, Timestamp to, String publisher, Integer order, Integer limit, Integer offset, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubMamQueryItemsCount
public static void tigPubSubMamQueryItemsCount(String nodesIds, Timestamp since, Timestamp to, String publisher, Integer order, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubRemoveNode
public static void tigPubSubRemoveNode(Long nodeId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubRemoveService
public static void tigPubSubRemoveService(String serviceJid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubSetNodeAffiliation
public static void tigPubSubSetNodeAffiliation(Long nodeId, String jid, String affil, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubSetNodeConfiguration
public static void tigPubSubSetNodeConfiguration(Long nodeId, String conf, Long collectionId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubSetNodeSubscription
public static void tigPubSubSetNodeSubscription(Long nodeId, String jid, String subscr, String subscrId, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubWriteItem
public static void tigPubSubWriteItem(Long nodeId, String itemId, String publisher, String itemData, Timestamp ts, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
tigPubSubCountNodes
public static void tigPubSubCountNodes(String serviceJid, ResultSet[] data) throws SQLException
- Throws:
SQLException
-
-