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(TransactionKey transactionKey) |
void |
begin(TransactionKey transactionKey) |
boolean |
checkQuerySupport(String language) |
void |
close() |
void |
commit(TransactionKey transactionKey) |
void |
delete(ItemPath itemPath,
String path,
TransactionKey transactionKey) |
String |
executeQuery(Query query,
TransactionKey transactionKey) |
C2KLocalObject |
get(ItemPath itemPath,
String path,
TransactionKey transactionKey) |
String[] |
getClusterContents(ItemPath itemPath,
String path,
TransactionKey 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,
TransactionKey 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,
TransactionKey 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, TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
executeQuery in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic C2KLocalObject get(ItemPath itemPath, String path, TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
get in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void put(ItemPath itemPath, C2KLocalObject obj, TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
put in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void delete(ItemPath itemPath, String path, TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
delete in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path, TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
getClusterContents in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic int getLastIntegerId(ItemPath itemPath, String path, TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
getLastIntegerId in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void begin(TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
begin in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void commit(TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
commit in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionpublic void abort(TransactionKey transactionKey) throws org.cristalise.kernel.common.PersistencyException
abort in class ClusterStorageorg.cristalise.kernel.common.PersistencyExceptionCopyright © 1997–2022 CRISTAL-iSE. All rights reserved.