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 |
NONE, READ, READWRITE, WRITE| Constructor and Description |
|---|
XMLDBClusterStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Object transactionKey) |
void |
begin(Object transactionKey) |
boolean |
checkQuerySupport(String language) |
void |
close() |
void |
commit(Object transactionKey) |
void |
delete(ItemPath itemPath,
String path,
Object transactionKey) |
String |
executeQuery(Query query,
Object transactionKey) |
C2KLocalObject |
get(ItemPath itemPath,
String path,
Object transactionKey) |
String[] |
getClusterContents(ItemPath itemPath,
String path,
Object transactionKey) |
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,
Object transactionKey)
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,
Object transactionKey) |
short |
queryClusterSupport(ClusterType 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, getPathpublic 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(ClusterType 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, Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
executeQuery in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic C2KLocalObject get(ItemPath itemPath, String path, Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
get in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void put(ItemPath itemPath, C2KLocalObject obj, Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
put in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void delete(ItemPath itemPath, String path, Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
delete in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path, Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
getClusterContents in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic int getLastIntegerId(ItemPath itemPath, String path, Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
getLastIntegerId in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void begin(Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
begin in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void commit(Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
commit in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void abort(Object transactionKey) throws org.cristalise.kernel.common.PersistencyException
abort in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.