Package org.eclipse.emf.cdo.session
Schnittstelle CDOSession
- Alle Superschnittstellen:
CDOCommonSession,CDOTransactionContainer,CDOTransactionOpener,CDOUpdatable,CDOViewContainer,CDOViewOpener,org.eclipse.net4j.util.collection.Closeable,IAdaptable,org.eclipse.net4j.util.container.IContainer<CDOView>,org.eclipse.net4j.util.event.INotifier,org.eclipse.net4j.util.options.IOptionsContainer,org.eclipse.net4j.util.security.IPasswordCredentialsProvider.Provider,org.eclipse.net4j.util.properties.IPropertiesContainer,org.eclipse.net4j.util.security.IUserAware
- Alle bekannten Unterschnittstellen:
CDONet4jSession,CDOSession,InternalCDOSession
public interface CDOSession
extends CDOCommonSession, CDOUpdatable, CDOTransactionContainer, org.eclipse.net4j.util.security.IPasswordCredentialsProvider.Provider
Represents and controls the connection to a model repository in addition to the inherited
view
management functions.
A session has the following responsibilities:
-
Repository information -
Package registry -
Branch management -
Revision management -
Fetch rule management -
Commit information management -
Exception handling -
ID generation -
View management
Note that in order to retrieve, access and store objects a view is needed. The
various openXYZ methods are provided for this purpose.
A session can fire the following events:
-
CDOSessionInvalidationEventaftercommit notificationshave been received and processed. -
CDOSessionLocksChangedEventafterlockshave been acquired or released. -
CDOSessionPermissionsChangedEventafterrevision permissionshave changed.
- Seit:
- 2.0
- Autor:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interfaceHandlesprotocolexceptions ifconfiguredbefore the session has been opened.static interfaceEncapsulates a set of notifyingsessionconfiguration options.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E>, org.eclipse.net4j.util.container.IContainer.Persistable<E>, org.eclipse.net4j.util.container.IContainer.Persistence<E>Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Feldübersicht
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.util.CDOUpdatable
NO_TIMEOUT -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidVeraltet.char[]Initiates (possibly interactive) changing of credentials for the user logged in in this session.compareRevisions(CDOBranchPoint source, CDOBranchPoint target) Returns the CDObranch managerthat manages thebranchesof the repository of this session.Returns the CDOcommit info managerof this session.Returns theexception handlerof this session.Returns the CDOfetch rule managerof this session.Returns the CDOID generatorof this session.Returns the CDOremote session managerthat keeps track of the other remote sessions served by the repository of this local session.Returns an instance ofCDORepositoryInfothat describes the model repository thissessionis connected to.Returns the CDOrevision managerthat manages therevisionsof the repository of this session.newBlob(byte[] contents) newBlob(InputStream contents) options()Returns theoptionsof this session.longrefresh()Refreshes the object caches of all (non-historical)views.longvoidwaitForUpdate(long updateTime) Equivalent to callingCDOUpdatable.waitForUpdate(long)on each of this session's views.booleanwaitForUpdate(long updateTime, long timeoutMillis) Equivalent to callingCDOUpdatable.waitForUpdate(long)on each of this session's views.Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.CDOCommonSession
authorizeOperations, getOpeningTime, getSessionID, getView, getViewsVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.transaction.CDOTransactionContainer
getTransaction, getTransactions, getTransactions, openTransaction, openTransaction, openTransaction, openTransaction, openTransaction, openTransactionVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.transaction.CDOTransactionOpener
openTransaction, openTransactionVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.util.CDOUpdatable
getLastUpdateTime, runAfterUpdateVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.view.CDOViewContainer
getView, getViews, getViews, openView, openView, openView, openView, openView, openView, openView, openViewVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.view.CDOViewOpener
openView, openViewVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.collection.Closeable
close, isClosedVon Schnittstelle geerbte Methoden org.eclipse.core.runtime.IAdaptable
getAdapterVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.container.IContainer
getElements, isEmptyVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListenerVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.security.IPasswordCredentialsProvider.Provider
getCredentialsProviderVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.properties.IPropertiesContainer
propertiesVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.security.IUserAware
getUserID
-
Methodendetails
-
getRepositoryInfo
CDORepositoryInfo getRepositoryInfo()Returns an instance ofCDORepositoryInfothat describes the model repository thissessionis connected to.- Seit:
- 3.0
-
getPackageRegistry
CDOPackageRegistry getPackageRegistry()Returns the EMFpackage registrythat is used by allobjectsof allviewsof this session.This registry is managed by the
package unit managerof this session. Allpackagesthat are already persisted in the repository of this session are automatically registered with this registry. New packages can be locally registered with this registry and are committed to the repository through atransaction, if needed. -
getBranchManager
CDOBranchManager getBranchManager()Returns the CDObranch managerthat manages thebranchesof the repository of this session.- Angegeben von:
getBranchManagerin SchnittstelleCDOCommonSession- Seit:
- 3.0
-
getRevisionManager
CDORevisionManager getRevisionManager()Returns the CDOrevision managerthat manages therevisionsof the repository of this session.- Angegeben von:
getRevisionManagerin SchnittstelleCDOCommonSession- Seit:
- 3.0
-
getFetchRuleManager
CDOFetchRuleManager getFetchRuleManager()Returns the CDOfetch rule managerof this session.- Seit:
- 3.0
-
getRemoteSessionManager
CDORemoteSessionManager getRemoteSessionManager()Returns the CDOremote session managerthat keeps track of the other remote sessions served by the repository of this local session. -
getCommitInfoManager
CDOCommitInfoManager getCommitInfoManager()Returns the CDOcommit info managerof this session.- Angegeben von:
getCommitInfoManagerin SchnittstelleCDOCommonSession- Seit:
- 3.0
-
getUserInfoManager
CDOUserInfoManager getUserInfoManager()- Seit:
- 4.26
-
getExceptionHandler
CDOSession.ExceptionHandler getExceptionHandler()Returns theexception handlerof this session. -
getIDGenerator
CDOIDGenerator getIDGenerator()Returns the CDOID generatorof this session.- Seit:
- 4.1
-
refresh
long refresh()Refreshes the object caches of all (non-historical)views.- Seit:
- 3.0
-
refresh
- Seit:
- 4.4
-
waitForUpdate
void waitForUpdate(long updateTime) Equivalent to callingCDOUpdatable.waitForUpdate(long)on each of this session's views. That is, this blocks the calling thread until all of this session's views have incorporated a commit operation with the given time stamp (or higher).- Angegeben von:
waitForUpdatein SchnittstelleCDOUpdatable- Parameter:
updateTime- the time stamp of the update to wait for in milliseconds since Unix epoch.
-
waitForUpdate
boolean waitForUpdate(long updateTime, long timeoutMillis) Equivalent to callingCDOUpdatable.waitForUpdate(long)on each of this session's views. That is, this blocks the calling thread until all of this session's views have incorporated a commit operation with the given time stamp (or higher) or the given total timeout has expired.- Angegeben von:
waitForUpdatein SchnittstelleCDOUpdatable- Parameter:
updateTime- the time stamp of the update to wait for in milliseconds since Unix epoch.timeoutMillis- the maximum number of milliseconds to wait for the update to occur, orCDOUpdatable.NO_TIMEOUTto wait indefinitely.- Gibt zurück:
trueif the update occurred within the specified timeout period,falseotherwise.
-
compareRevisions
- Seit:
- 4.0
-
changeCredentials
Veraltet.As of 4.13 usechangeServerPassword().Initiates (possibly interactive) changing of credentials for the user logged in in this session. This is an optional operation of the session.- Löst aus:
UnsupportedOperationException- if the session implementation does not permit changing credentials- Seit:
- 4.3
- Siehe auch:
-
changeServerPassword
char[] changeServerPassword()Initiates (possibly interactive) changing of credentials for the user logged in in this session. This is an optional operation of the session.- Löst aus:
UnsupportedOperationException- if the session implementation does not permit changing credentials- Seit:
- 4.13
- Siehe auch:
-
newClob
- Löst aus:
IOException- Seit:
- 4.13
-
newClob
- Löst aus:
IOException- Seit:
- 4.13
-
newBlob
- Löst aus:
IOException- Seit:
- 4.13
-
newBlob
- Löst aus:
IOException- Seit:
- 4.13
-
clientEntities
- Seit:
- 4.27
-
options
CDOSession.Options options()Returns theoptionsof this session.- Angegeben von:
optionsin SchnittstelleCDOCommonSession- Angegeben von:
optionsin Schnittstelleorg.eclipse.net4j.util.options.IOptionsContainer
-
changeServerPassword().