public class XMLDBClusterStorage extends ClusterStorage
| Modifier and Type | Field and Description |
|---|---|
protected org.xmldb.api.base.Database |
database |
protected org.xmldb.api.base.Collection |
root |
static String |
XMLDB_PASSWORD |
static String |
XMLDB_ROOT |
static String |
XMLDB_URI |
static String |
XMLDB_USER |
allClusterTypes, COLLECTION, HISTORY, JOB, LIFECYCLE, NONE, OUTCOME, PATH, PROPERTY, READ, READWRITE, ROOT, VIEWPOINT, WRITE| Constructor and Description |
|---|
XMLDBClusterStorage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkQuerySupport(String language) |
void |
close() |
void |
delete(ItemPath itemPath,
String path) |
String |
executeQuery(Query query) |
C2KLocalObject |
get(ItemPath itemPath,
String path) |
String[] |
getClusterContents(ItemPath itemPath,
String path) |
String |
getId() |
protected org.xmldb.api.base.Collection |
getItemCollection(ItemPath itemPath,
boolean create)
Retrieves the collection from the root created for each Item (UUID)
|
int |
getLastIntegerId(ItemPath itemPath,
String path)
FIXME use xquery instead of calling getClusterContents()
|
String |
getName() |
void |
open(Authenticator auth) |
void |
postBoostrap() |
void |
postConnect() |
void |
postStartServer() |
void |
put(ItemPath itemPath,
C2KLocalObject obj) |
short |
queryClusterSupport(String clusterType) |
protected static org.xmldb.api.base.Collection |
verifyCollection(org.xmldb.api.base.Collection parent,
String name,
boolean create)
Retrieves the collection from the given parent collection
|
getClusterContents, getClusters, getClusterType, getPath, queryClusterSupportpublic static final String XMLDB_URI
public static final String XMLDB_USER
public static final String XMLDB_PASSWORD
public static final String XMLDB_ROOT
protected org.xmldb.api.base.Database database
protected org.xmldb.api.base.Collection root
protected org.xmldb.api.base.Collection getItemCollection(ItemPath itemPath, boolean create) throws org.cristalise.kernel.common.PersistencyException
itemPath - the Path representing the Itemcreate - whether to create the missing collection or notorg.cristalise.kernel.common.PersistencyExceptionprotected static org.xmldb.api.base.Collection verifyCollection(org.xmldb.api.base.Collection parent,
String name,
boolean create)
throws org.cristalise.kernel.common.PersistencyException
parent - the parent collectionname - name of the child collectioncreate - whether to create the missing collection or notorg.cristalise.kernel.common.PersistencyExceptionpublic void open(Authenticator auth) throws org.cristalise.kernel.common.PersistencyException
open in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void close()
throws org.cristalise.kernel.common.PersistencyException
close in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void postBoostrap()
postBoostrap in class ClusterStoragepublic void postStartServer()
postStartServer in class ClusterStoragepublic void postConnect()
postConnect in class ClusterStoragepublic short queryClusterSupport(String clusterType)
queryClusterSupport in class ClusterStoragepublic boolean checkQuerySupport(String language)
checkQuerySupport in class ClusterStoragepublic String getName()
getName in class ClusterStoragepublic String getId()
getId in class ClusterStoragepublic String executeQuery(Query query) throws org.cristalise.kernel.common.PersistencyException
executeQuery in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic C2KLocalObject get(ItemPath itemPath, String path) throws org.cristalise.kernel.common.PersistencyException
get in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void put(ItemPath itemPath, C2KLocalObject obj) throws org.cristalise.kernel.common.PersistencyException
put in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void delete(ItemPath itemPath, String path) throws org.cristalise.kernel.common.PersistencyException
delete in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path) throws org.cristalise.kernel.common.PersistencyException
getClusterContents in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic int getLastIntegerId(ItemPath itemPath, String path) throws org.cristalise.kernel.common.PersistencyException
getLastIntegerId in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.