Klasse Store
- Alle implementierten Schnittstellen:
IStore
,InternalStore
,org.eclipse.net4j.util.collection.Entity.Store.Provider
,org.eclipse.net4j.util.event.INotifier
,org.eclipse.net4j.util.event.INotifier.INotifier2
,org.eclipse.net4j.util.lifecycle.IDeactivateable
,org.eclipse.net4j.util.lifecycle.ILifecycle
,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
- Bekannte direkte Unterklassen:
LongIDStore
- Seit:
- 2.0
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.spi.server.InternalStore
InternalStore.NoChangeSets, InternalStore.NoCommitInfos, InternalStore.NoDurableLocking, InternalStore.NoExternalReferences, InternalStore.NoFeatureMaps, InternalStore.NoHandleRevisions, InternalStore.NoLargeObjects, InternalStore.NoQueryXRefs, InternalStore.NoRawAccess
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.server.IStore
IStore.CanHandleClientAssignedIDs, IStore.ChangeFormat, IStore.RevisionParallelism, IStore.RevisionTemporality
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final long
Veraltet.Use CDOBranchPoint.UNSPECIFIED_DATEVon Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungStore
(String type, Set<CDOID.ObjectType> objectIDTypes, Set<IStore.ChangeFormat> supportedChangeFormats, Set<IStore.RevisionTemporality> supportedRevisionTemporalities, Set<IStore.RevisionParallelism> supportedRevisionParallelisms) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected org.eclipse.net4j.util.collection.Entity
computeEntity
(String name) protected void
computeEntityNames
(Consumer<String> consumer) createExactMatchContext
(CDOID folderID, String name, CDOBranchPoint branchPoint) protected abstract IStoreAccessor
createReader
(ISession session) Creates and returns a newIStoreAccessor
instance.createRevision
(EClass eClass, CDOID id) protected abstract IStoreAccessor
createWriter
(ITransaction transaction) Creates and returns a newIStoreAccessor
instance.protected final org.eclipse.net4j.util.collection.Entity.Builder
org.eclipse.net4j.util.collection.Entity.Store
org.eclipse.net4j.util.om.monitor.ProgressDistributor
int
Returns the id of the last branch that has been created in this store.long
Returns the time stamp of the last successful commit operation.int
Returns the id of the last local branch that has been created in this store.long
Returns the time stamp of the last successful commit operation to a non-localbranch
.int
int
Returns a reader that can be used to read from this store in the context of the given session.protected abstract StoreAccessorPool
getReaderPool
(ISession session, boolean forReleasing) Returns apool
that may containIStoreAccessor
instances that are compatible with the given session.final Set
<IStore.RevisionParallelism> final String
getType()
getWriter
(ITransaction transaction) Returns a writer that can be used to write to this store in the context of the given view.protected abstract StoreAccessorPool
getWriterPool
(IView view, boolean forReleasing) Returns apool
that may containIStoreAccessor
instances that are compatible with the given session.static String
idToString
(CDOID id) boolean
protected void
releaseAccessor
(StoreAccessorBase accessor) protected static <T> Set
<T> set
(T... elements) void
setDropAllDataOnActivate
(boolean dropAllDataOnActivate) void
setLastBranchID
(int lastBranchID) void
setLastCommitTime
(long lastCommitTime) void
setLastLocalBranchID
(int lastLocalBranchID) void
setLastNonLocalCommitTime
(long lastNonLocalCommitTime) protected void
setObjectIDTypes
(Set<CDOID.ObjectType> objectIDTypes) void
setRepository
(IRepository repository) void
setRevisionParallelism
(IStore.RevisionParallelism revisionParallelism) void
setRevisionTemporality
(IStore.RevisionTemporality revisionTemporality) static CDOID
stringToID
(String string) Von Klasse geerbte Methoden org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
Von Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.spi.server.InternalStore
isLocal, setCreationTime
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.server.IStore
createObjectID, getCreationTime, getPersistentProperties, isFirstStart, removePersistentProperties, setPersistentProperties
-
Felddetails
-
UNSPECIFIED_DATE
Veraltet.Use CDOBranchPoint.UNSPECIFIED_DATE- Seit:
- 3.0
- Siehe auch:
-
-
Konstruktordetails
-
Store
public Store(String type, Set<CDOID.ObjectType> objectIDTypes, Set<IStore.ChangeFormat> supportedChangeFormats, Set<IStore.RevisionTemporality> supportedRevisionTemporalities, Set<IStore.RevisionParallelism> supportedRevisionParallelisms) - Seit:
- 3.0
-
Store
- Seit:
- 4.2
-
-
Methodendetails
-
getType
-
getObjectIDTypes
- Angegeben von:
getObjectIDTypes
in SchnittstelleIStore
- Seit:
- 3.0
-
setObjectIDTypes
- Seit:
- 4.0
-
getSupportedChangeFormats
- Angegeben von:
getSupportedChangeFormats
in SchnittstelleIStore
-
getSupportedRevisionTemporalities
- Angegeben von:
getSupportedRevisionTemporalities
in SchnittstelleIStore
-
getSupportedRevisionParallelisms
- Angegeben von:
getSupportedRevisionParallelisms
in SchnittstelleIStore
-
getRevisionTemporality
- Angegeben von:
getRevisionTemporality
in SchnittstelleIStore
-
setRevisionTemporality
- Angegeben von:
setRevisionTemporality
in SchnittstelleInternalStore
-
getRevisionParallelism
- Angegeben von:
getRevisionParallelism
in SchnittstelleIStore
-
setRevisionParallelism
- Angegeben von:
setRevisionParallelism
in SchnittstelleInternalStore
-
getRepository
- Angegeben von:
getRepository
in SchnittstelleInternalStore
- Angegeben von:
getRepository
in SchnittstelleIStore
- Seit:
- 3.0
-
setRepository
- Angegeben von:
setRepository
in SchnittstelleInternalStore
-
isDropAllDataOnActivate
public boolean isDropAllDataOnActivate()- Angegeben von:
isDropAllDataOnActivate
in SchnittstelleInternalStore
- Seit:
- 4.0
-
setDropAllDataOnActivate
public void setDropAllDataOnActivate(boolean dropAllDataOnActivate) - Angegeben von:
setDropAllDataOnActivate
in SchnittstelleInternalStore
- Seit:
- 4.0
-
getLastBranchID
public int getLastBranchID()Beschreibung aus Schnittstelle kopiert:IStore
Returns the id of the last branch that has been created in this store.- Angegeben von:
getLastBranchID
in SchnittstelleIStore
- Seit:
- 3.0
-
setLastBranchID
public void setLastBranchID(int lastBranchID) - Angegeben von:
setLastBranchID
in SchnittstelleInternalStore
- Seit:
- 3.0
-
getNextBranchID
public int getNextBranchID()- Angegeben von:
getNextBranchID
in SchnittstelleInternalStore
- Seit:
- 3.0
-
getLastLocalBranchID
public int getLastLocalBranchID()Beschreibung aus Schnittstelle kopiert:IStore
Returns the id of the last local branch that has been created in this store.- Angegeben von:
getLastLocalBranchID
in SchnittstelleIStore
- Seit:
- 3.0
-
setLastLocalBranchID
public void setLastLocalBranchID(int lastLocalBranchID) - Angegeben von:
setLastLocalBranchID
in SchnittstelleInternalStore
- Seit:
- 3.0
-
getNextLocalBranchID
public int getNextLocalBranchID()- Angegeben von:
getNextLocalBranchID
in SchnittstelleInternalStore
- Seit:
- 3.0
-
getLastCommitTime
public long getLastCommitTime()Beschreibung aus Schnittstelle kopiert:IStore
Returns the time stamp of the last successful commit operation.- Angegeben von:
getLastCommitTime
in SchnittstelleIStore
- Seit:
- 3.0
-
setLastCommitTime
public void setLastCommitTime(long lastCommitTime) - Angegeben von:
setLastCommitTime
in SchnittstelleInternalStore
- Seit:
- 3.0
-
getLastNonLocalCommitTime
public long getLastNonLocalCommitTime()Beschreibung aus Schnittstelle kopiert:IStore
Returns the time stamp of the last successful commit operation to a non-localbranch
.- Angegeben von:
getLastNonLocalCommitTime
in SchnittstelleIStore
- Seit:
- 3.0
-
setLastNonLocalCommitTime
public void setLastNonLocalCommitTime(long lastNonLocalCommitTime) - Angegeben von:
setLastNonLocalCommitTime
in SchnittstelleInternalStore
- Seit:
- 3.0
-
getReader
Beschreibung aus Schnittstelle kopiert:IStore
Returns a reader that can be used to read from this store in the context of the given session.- Angegeben von:
getReader
in SchnittstelleIStore
- Parameter:
session
- The session that should be used as a context for read access ornull
. 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 aLifecycleEventAdapter
with it to intercept cleanup on session close. Note however that the session can benull
, for example during startup of the server while the repositories are initialized but before any user session has been opened.- Gibt zurück:
- a reader that can be used to read from this store in the context of the given session, never
null
.
-
getWriter
Beschreibung aus Schnittstelle kopiert:IStore
Returns a writer that can be used to write to this store in the context of the given view. The given view is always marked as a transaction.- Angegeben von:
getWriter
in SchnittstelleIStore
- Parameter:
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 aLifecycleEventAdapter
with it to intercept cleanup on view close.- Gibt zurück:
- a writer that can be used to write to this store in the context of the given view, never
null
.
-
getIndicatingCommitDistributor
public org.eclipse.net4j.util.om.monitor.ProgressDistributor getIndicatingCommitDistributor()- Angegeben von:
getIndicatingCommitDistributor
in SchnittstelleIStore
-
createRevision
- Seit:
- 3.0
-
getEntityStore
public org.eclipse.net4j.util.collection.Entity.Store getEntityStore()- Angegeben von:
getEntityStore
in Schnittstelleorg.eclipse.net4j.util.collection.Entity.Store.Provider
-
computeEntityNames
- Seit:
- 4.22
-
computeEntity
- Seit:
- 4.22
-
entityBuilder
protected final org.eclipse.net4j.util.collection.Entity.Builder entityBuilder()- Seit:
- 4.22
-
releaseAccessor
- Seit:
- 4.0
-
getReaderPool
Returns apool
that may containIStoreAccessor
instances that are compatible with the given session. The implementor may returnnull
to indicate that no pooling occurs. It's also left to the implementors choice how to determine the appropriate pool instance to be used for the given session, for example it could always return the same pool instance, regardless of the given session.If the implementor of this method decides to create pools that are only compatible with certain sessions or views, then it is his responsibility to listen to
REMOVED
events sent by either theISessionManager
(indicating that a session is closed) or any of its sessions (indicating that a view is closed). Note: Closing a session implies that all contained views are closed silently without firing respective events!- Parameter:
session
- The context which the pool must be compatible with. Must not benull
.forReleasing
- Enables lazy pool creation. The implementor is not supposed to create a new pool iffalse
is passed. Iftrue
is passed it's up to the implementor whether to create a new pool or not.
-
getWriterPool
Returns apool
that may containIStoreAccessor
instances that are compatible with the given session. The implementor may returnnull
to indicate that no pooling occurs. It's also left to the implementors choice how to determine the appropriate pool instance to be used for the given session, for example it could always return the same pool instance, regardless of the given session.If the implementor of this method decides to create pools that are only compatible with certain sessions or views, then it is his responsibility to listen to
REMOVED
events sent by either theISessionManager
(indicating that a session is closed) or any of its sessions (indicating that a view is closed). Note: Closing a session implies that all contained views are closed sliently without firing respective events!- Parameter:
view
- The context which the pool must be compatible with. Must not benull
.forReleasing
- Enables lazy pool creation. The implementor is not supposed to create a new pool iffalse
is passed. Iftrue
is passed it's up to the implementor whether to create a new pool or not.
-
createReader
Creates and returns a newIStoreAccessor
instance. The caller of this method is responsible foractivating
the new instance. -
createWriter
Creates and returns a newIStoreAccessor
instance. The caller of this method is responsible foractivating
the new instance. -
set
-
idToString
- Seit:
- 4.0
-
stringToID
- Seit:
- 4.0
-
createExactMatchContext
public static IStoreAccessor.QueryResourcesContext.ExactMatch createExactMatchContext(CDOID folderID, String name, CDOBranchPoint branchPoint) - Seit:
- 3.0
-