public interface IDBStore extends IStore, IDBConnectionProvider, IStore.CanHandleClientAssignedIDs
Modifier and Type | Interface and Description |
---|---|
static interface |
IDBStore.Props
Contains symbolic constants that specifiy valid keys of
DB store properties . |
static interface |
IDBStore.TableVisitor
Called back from
visitAllTables(Connection, TableVisitor) for all tables in the database. |
IStore.CanHandleClientAssignedIDs, IStore.ChangeFormat, IStore.RevisionParallelism, IStore.RevisionTemporality
Modifier and Type | Method and Description |
---|---|
IDBDatabase |
getDatabase() |
IDBAdapter |
getDBAdapter() |
IDBSchema |
getDBSchema() |
int |
getIDColumnLength() |
IIDHandler |
getIDHandler() |
int |
getJDBCFetchSize() |
IMappingStrategy |
getMappingStrategy() |
IMetaDataManager |
getMetaDataManager()
Get the meta data manager associated with this DBStore.
|
Map<String,String> |
getProperties() |
IDBStoreAccessor |
getReader(ISession session)
Returns a reader that can be used to read from this store in the context of the given session.
|
IDBStoreAccessor |
getWriter(ITransaction transaction)
Returns a writer that can be used to write to this store in the context of the given view.
|
void |
visitAllTables(Connection connection,
IDBStore.TableVisitor visitor) |
createObjectID, getCreationTime, getIndicatingCommitDistributor, getLastBranchID, getLastCommitTime, getLastLocalBranchID, getLastNonLocalCommitTime, getObjectIDTypes, getPersistentProperties, getRepository, getRevisionParallelism, getRevisionTemporality, getSupportedChangeFormats, getSupportedRevisionParallelisms, getSupportedRevisionTemporalities, getType, isFirstStart, removePersistentProperties, setPersistentProperties
getConnection
IMappingStrategy getMappingStrategy()
IIDHandler getIDHandler()
IDBDatabase getDatabase()
IDBAdapter getDBAdapter()
IDBSchema getDBSchema()
int getIDColumnLength()
int getJDBCFetchSize()
void visitAllTables(Connection connection, IDBStore.TableVisitor visitor)
IMetaDataManager getMetaDataManager()
IDBStoreAccessor getReader(ISession session)
IStore
getReader
in interface IStore
session
- The session that should be used as a context for read access or null
. The store implementor
is free to interpret and use the session in a manner suitable for him or ignore it at all. It is meant
only as a hint. Implementor can use it as a key into a cache and/or register a
LifecycleEventAdapter
with it to intercept
cleanup on session close. Note however that the session can be null
, for example during
startup of the server while the repositories are initialized but before any user session has been opened.null
.IDBStoreAccessor getWriter(ITransaction transaction)
IStore
getWriter
in interface IStore
transaction
- The view that must be used as a context for write access. The store implementor is free to interpret and
use the view in a manner suitable for him or ignore it at all. It is meant only as a hint. Implementor can
use it as a key into a cache and/or register a
LifecycleEventAdapter
with it to intercept
cleanup on view close.null
.Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.