public abstract class DBSRepositoryBase extends Object implements DBSRepository
Modifier and Type | Class and Description |
---|---|
protected static class |
DBSRepositoryBase.BlobFinder
Finds the paths for all blobs in all document types.
|
static class |
DBSRepositoryBase.DBSSessionInvoker
An indirection to a base
DBSSession intercepting close() to not close the base session until the
transaction itself is closed. |
static class |
DBSRepositoryBase.IdType
Type of id to used for documents.
|
class |
DBSRepositoryBase.TransactionContext
Context maintained during a transaction, holding the base session used, and all session proxy handles that have
been returned to callers.
|
Modifier and Type | Field and Description |
---|---|
protected BlobManager |
blobManager |
protected boolean |
changeTokenEnabled |
protected javax.resource.spi.ConnectionManager |
cm |
protected boolean |
DEBUG_UUIDS |
protected FulltextConfiguration |
fulltextConfiguration |
protected DBSRepositoryBase.IdType |
idType |
protected LockManager |
lockManager |
protected String |
repositoryName |
protected boolean |
selfRegisteredLockManager |
Map<Transaction,DBSRepositoryBase.TransactionContext> |
transactionContexts |
static String |
TYPE_ROOT |
Constructor and Description |
---|
DBSRepositoryBase(javax.resource.spi.ConnectionManager cm,
String repositoryName,
DBSRepositoryDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveSessionsCount() |
abstract List<DBSRepositoryBase.IdType> |
getAllowedIdTypes()
Gets the allowed id types for this DBS repository.
|
BlobManager |
getBlobManager()
Gets the blob manager.
|
FulltextConfiguration |
getFulltextConfiguration()
Gets the fulltext configuration.
|
LockManager |
getLockManager()
Gets the lock manager for this repository.
|
protected String |
getLockManagerName() |
String |
getName() |
String |
getRootId()
Gets the root id.
|
Session |
getSession() |
protected Session |
getSession(DBSRepository repository) |
protected abstract void |
initBlobsPaths() |
protected void |
initLockManager() |
void |
initRoot()
Initializes the root and its ACP.
|
boolean |
isChangeTokenEnabled()
Checks if database-managed document change tokens are enabled.
|
boolean |
isFulltextDisabled()
Checks if fulltext indexing is disabled.
|
protected DBSSession |
newSession(DBSRepository repository) |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
begin, commit, createState, createStates, deleteStates, generateNewId, getDescendants, getDescendants, hasChild, queryAndFetch, queryKeyValue, queryKeyValue, queryKeyValuePresence, readChildState, readPartialState, readState, readStates, rollback, scroll, scroll, updateState
markReferencedBinaries
canLockBeRemoved, clearLockManagerCaches, closeLockManager, getLock, removeLock, setLock
public static final String TYPE_ROOT
protected final boolean DEBUG_UUIDS
protected DBSRepositoryBase.IdType idType
protected final String repositoryName
protected final FulltextConfiguration fulltextConfiguration
protected final BlobManager blobManager
protected LockManager lockManager
protected final javax.resource.spi.ConnectionManager cm
protected final boolean changeTokenEnabled
protected boolean selfRegisteredLockManager
public Map<Transaction,DBSRepositoryBase.TransactionContext> transactionContexts
public DBSRepositoryBase(javax.resource.spi.ConnectionManager cm, String repositoryName, DBSRepositoryDescriptor descriptor)
public abstract List<DBSRepositoryBase.IdType> getAllowedIdTypes()
public void shutdown()
shutdown
in interface Repository
public String getName()
getName
in interface Repository
public FulltextConfiguration getFulltextConfiguration()
DBSRepository
getFulltextConfiguration
in interface DBSRepository
protected String getLockManagerName()
protected void initLockManager()
public LockManager getLockManager()
DBSRepository
getLockManager
in interface DBSRepository
protected abstract void initBlobsPaths()
public void initRoot()
public String getRootId()
DBSRepository
getRootId
in interface DBSRepository
public BlobManager getBlobManager()
DBSRepository
getBlobManager
in interface DBSRepository
public boolean isFulltextDisabled()
DBSRepository
isFulltextDisabled
in interface DBSRepository
true
if fulltext indexing is disabled, false
if it is enabledpublic boolean isChangeTokenEnabled()
DBSRepository
isChangeTokenEnabled
in interface DBSRepository
true
if the database maintains document change tokenspublic int getActiveSessionsCount()
getActiveSessionsCount
in interface Repository
public Session getSession()
getSession
in interface Repository
protected Session getSession(DBSRepository repository)
protected DBSSession newSession(DBSRepository repository)
Copyright © 2018 Nuxeo. All rights reserved.