public class PubSubDAOJDBC extends PubSubDAO
CREATION_DATE_KEY, log, NODES_KEY| Constructor and Description |
|---|
PubSubDAOJDBC(tigase.db.UserRepository repository,
PubSubConfig pubSubConfig,
String connection_str) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
void |
createNode(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.xmpp.BareJID ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
Method description
|
void |
deleteItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
void |
deleteNode(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
void |
destroy()
Method description
|
protected Date |
getDateFromItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id,
int field) |
tigase.xml.Element |
getItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
Date |
getItemCreationDate(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
String |
getItemPublisher(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
String[] |
getItemsIds(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
Date |
getItemUpdateDate(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
NodeAffiliations |
getNodeAffiliations(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
String[] |
getNodesList(tigase.xmpp.BareJID serviceJid)
Method description
|
NodeSubscriptions |
getNodeSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
String |
getResourceUri() |
String[] |
getRootNodes(tigase.xmpp.BareJID serviceJid)
Method description
|
protected String |
getStringFromItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id,
int field) |
void |
init()
Method description
|
protected String |
readNodeConfigFormData(tigase.xmpp.BareJID serviceJid,
String nodeName) |
void |
removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid)
Method description
|
void |
removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
void |
removeSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex)
Method description
|
void |
updateAffiliations(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
Method description
|
void |
updateNodeConfig(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
Method description
|
void |
updateSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex,
String serializedData)
Method description
|
void |
writeItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
Method description
|
getBuddyGroups, getBuddySubscription, getNodeConfig, getNodeConfig, getNodeCreationDate, getUserRoster, itemDataToElement, update, updatepublic PubSubDAOJDBC(tigase.db.UserRepository repository,
PubSubConfig pubSubConfig,
String connection_str)
public void addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws RepositoryException
PubSubDAOaddToRootCollection in interface IPubSubDAOaddToRootCollection in class PubSubDAORepositoryExceptionpublic void createNode(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.xmpp.BareJID ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
throws RepositoryException
PubSubDAOcreateNode in interface IPubSubDAOcreateNode in class PubSubDAORepositoryExceptionpublic void deleteItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
throws RepositoryException
PubSubDAOdeleteItem in interface IPubSubDAOdeleteItem in class PubSubDAORepositoryExceptionpublic void deleteNode(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws RepositoryException
PubSubDAOdeleteNode in interface IPubSubDAOdeleteNode in class PubSubDAORepositoryExceptionpublic void destroy()
PubSubDAOdestroy in interface IPubSubDAOdestroy in class PubSubDAOprotected Date getDateFromItem(tigase.xmpp.BareJID serviceJid, String nodeName, String id, int field) throws RepositoryException
RepositoryExceptionpublic tigase.xml.Element getItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
throws RepositoryException
PubSubDAOgetItem in interface IPubSubDAOgetItem in class PubSubDAORepositoryExceptionpublic Date getItemCreationDate(tigase.xmpp.BareJID serviceJid, String nodeName, String id) throws RepositoryException
PubSubDAOgetItemCreationDate in interface IPubSubDAOgetItemCreationDate in class PubSubDAORepositoryExceptionpublic String getItemPublisher(tigase.xmpp.BareJID serviceJid, String nodeName, String id) throws RepositoryException
PubSubDAOgetItemPublisher in class PubSubDAORepositoryExceptionpublic String[] getItemsIds(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
PubSubDAOgetItemsIds in interface IPubSubDAOgetItemsIds in class PubSubDAORepositoryExceptionpublic Date getItemUpdateDate(tigase.xmpp.BareJID serviceJid, String nodeName, String id) throws RepositoryException
PubSubDAOgetItemUpdateDate in interface IPubSubDAOgetItemUpdateDate in class PubSubDAORepositoryExceptionpublic NodeAffiliations getNodeAffiliations(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
PubSubDAOgetNodeAffiliations in interface IPubSubDAOgetNodeAffiliations in class PubSubDAORepositoryExceptionpublic String[] getNodesList(tigase.xmpp.BareJID serviceJid) throws RepositoryException
PubSubDAOgetNodesList in interface IPubSubDAOgetNodesList in class PubSubDAORepositoryExceptionpublic NodeSubscriptions getNodeSubscriptions(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
PubSubDAOgetNodeSubscriptions in interface IPubSubDAOgetNodeSubscriptions in class PubSubDAORepositoryExceptionpublic String getResourceUri()
public String[] getRootNodes(tigase.xmpp.BareJID serviceJid) throws RepositoryException
PubSubDAOgetRootNodes in interface IPubSubDAOgetRootNodes in class PubSubDAORepositoryExceptionprotected String getStringFromItem(tigase.xmpp.BareJID serviceJid, String nodeName, String id, int field) throws RepositoryException
RepositoryExceptionpublic void init()
throws RepositoryException
PubSubDAOinit in interface IPubSubDAOinit in class PubSubDAORepositoryExceptionprotected String readNodeConfigFormData(tigase.xmpp.BareJID serviceJid, String nodeName) throws tigase.db.TigaseDBException
readNodeConfigFormData in class PubSubDAOtigase.db.TigaseDBExceptionpublic void removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid)
throws RepositoryException
PubSubDAOremoveAllFromRootCollection in class PubSubDAORepositoryExceptionpublic void removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws RepositoryException
PubSubDAOremoveFromRootCollection in interface IPubSubDAOremoveFromRootCollection in class PubSubDAORepositoryExceptionpublic void removeSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex)
throws RepositoryException
PubSubDAOremoveSubscriptions in class PubSubDAORepositoryExceptionpublic void updateAffiliations(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
throws RepositoryException
PubSubDAOupdateAffiliations in class PubSubDAORepositoryExceptionpublic void updateNodeConfig(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
throws RepositoryException
PubSubDAOupdateNodeConfig in class PubSubDAORepositoryExceptionpublic void updateSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex,
String serializedData)
throws RepositoryException
PubSubDAOupdateSubscriptions in class PubSubDAORepositoryExceptionpublic void writeItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
throws RepositoryException
PubSubDAOwriteItem in interface IPubSubDAOwriteItem in class PubSubDAORepositoryExceptionCopyright © 2008–2014 Tigase. All rights reserved.