Package tigase.pubsub.repository.derby
Class StoredProcedures
java.lang.Object
tigase.pubsub.repository.derby.StoredProcedures
- Author:
- andrzej
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, String domain, Integer autocreateService, ResultSet[] data) static voidtigPubSubCreateService(String serviceJid, String domain, Integer isPublic, 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, String domain, Integer autocreateService) 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 voidtigPubSubGetServices(String domain, Integer isPublic, ResultSet[] data) static voidtigPubSubGetUserAffiliations(String serviceJid, String jid, ResultSet[] data) static voidtigPubSubGetUserSubscriptions(String serviceJid, String jid, ResultSet[] data) static voidtigPubSubMamAddItem(Long nodeId, String uuid, Timestamp ts, String itemData, String itemId, ResultSet[] data) static voidtigPubSubMamQueryItem(Long nodeId, String stableId, ResultSet[] data) static voidtigPubSubMamQueryItemPosition(Long nodeId, Timestamp since, Timestamp to, String uuid, ResultSet[] data) static voidtigPubSubMamQueryItems(Long nodeId, Timestamp since, Timestamp to, Integer limit, Integer offset, ResultSet[] data) static voidtigPubSubMamQueryItemsCount(Long nodeId, Timestamp since, Timestamp to, ResultSet[] data) static voidtigPubSubMamUpdateItem(Long nodeId, String uuid, String itemData, ResultSet[] data) static voidtigPubSubQueryItemPosition(String nodesIds, Timestamp since, Timestamp to, Integer order, Long nodeId, String itemId, ResultSet[] data) static voidtigPubSubQueryItems(String nodesIds, Timestamp since, Timestamp to, Integer order, Integer limit, Integer offset, ResultSet[] data) static voidtigPubSubQueryItemsCount(String nodesIds, Timestamp since, Timestamp to, 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, String uuid, ResultSet[] data)
-
Constructor Details
-
StoredProcedures
public StoredProcedures()
-
-
Method Details
-
getIdOfJid
- Throws:
SQLException
-
sha1OfLower
- Throws:
SQLException
-
tigPubSubCreateNode
public static void tigPubSubCreateNode(String serviceJid, String nodeName, Integer nodeType, String nodeCreator, String nodeConf, Long collectionId, Timestamp ts, String domain, Integer autocreateService, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubDeleteAllNodes
- 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
- Throws:
SQLException
-
tigPubSubEnsureJid
- Throws:
SQLException
-
tigPubSubEnsureServiceJid
public static Long tigPubSubEnsureServiceJid(String serviceJid, String domain, Integer autocreateService) throws SQLException - Throws:
SQLException
-
tigPubSubFixItem
public static void tigPubSubFixItem(Long nodeId, String itemId, Timestamp creationDate, Timestamp updateDate) throws SQLException - Throws:
SQLException
-
tigPubSubFixNode
- Throws:
SQLException
-
tigPubSubGetAllNodes
- 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
- Throws:
SQLException
-
tigPubSubGetNodeConfiguration
- 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
- Throws:
SQLException
-
tigPubSubGetNodeMeta
public static void tigPubSubGetNodeMeta(String serviceJid, String nodeName, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubGetNodeSubscriptions
- Throws:
SQLException
-
tigPubSubGetRootNodes
- 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
-
tigPubSubMamAddItem
public static void tigPubSubMamAddItem(Long nodeId, String uuid, Timestamp ts, String itemData, String itemId, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubMamUpdateItem
public static void tigPubSubMamUpdateItem(Long nodeId, String uuid, String itemData, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubMamQueryItemPosition
public static void tigPubSubMamQueryItemPosition(Long nodeId, Timestamp since, Timestamp to, String uuid, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubMamQueryItem
public static void tigPubSubMamQueryItem(Long nodeId, String stableId, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubMamQueryItems
public static void tigPubSubMamQueryItems(Long nodeId, Timestamp since, Timestamp to, Integer limit, Integer offset, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubMamQueryItemsCount
public static void tigPubSubMamQueryItemsCount(Long nodeId, Timestamp since, Timestamp to, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubQueryItemPosition
public static void tigPubSubQueryItemPosition(String nodesIds, Timestamp since, Timestamp to, Integer order, Long nodeId, String itemId, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubQueryItems
public static void tigPubSubQueryItems(String nodesIds, Timestamp since, Timestamp to, Integer order, Integer limit, Integer offset, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubQueryItemsCount
public static void tigPubSubQueryItemsCount(String nodesIds, Timestamp since, Timestamp to, Integer order, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubRemoveNode
- Throws:
SQLException
-
tigPubSubRemoveService
- 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, String uuid, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubCountNodes
- Throws:
SQLException
-
tigPubSubGetServices
public static void tigPubSubGetServices(String domain, Integer isPublic, ResultSet[] data) throws SQLException - Throws:
SQLException
-
tigPubSubCreateService
public static void tigPubSubCreateService(String serviceJid, String domain, Integer isPublic, ResultSet[] data) throws SQLException - Throws:
SQLException
-