|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Configures and opens new sessions
.
A session configuration can fire the following events:
CDOSessionConfiguration.SessionOpenedEvent
after a session has been opened by this configuration.
Nested Class Summary | |
---|---|
static interface |
CDOSessionConfiguration.SessionOpenedEvent
Fired from a session configuration after a new session has been
opened. |
Method Summary | |
---|---|
CDOAuthenticator |
getAuthenticator()
Returns the authenticator of this configuration, never null . |
CDOSession.ExceptionHandler |
getExceptionHandler()
|
CDOFetchRuleManager |
getFetchRuleManager()
|
CDOIDGenerator |
getIDGenerator()
|
CDOCommonSession.Options.LockNotificationMode |
getLockNotificationMode()
|
CDOCommonSession.Options.PassiveUpdateMode |
getPassiveUpdateMode()
|
boolean |
isActivateOnOpen()
Returns true if the session opened by openSession() will be automatically activated,
false otherwise. |
boolean |
isPassiveUpdateEnabled()
|
boolean |
isSessionOpen()
Returns true if the session for this configuration is currently open, false otherwise. |
CDOSession |
openSession()
Opens the session for this configuration. |
void |
setActivateOnOpen(boolean activateOnOpen)
Specifies whether the session opened by openSession() will be automatically activated or not. |
void |
setExceptionHandler(CDOSession.ExceptionHandler exceptionHandler)
A special exception handler can be set before the session is opened and can not be changed thereafter. |
void |
setFetchRuleManager(CDOFetchRuleManager fetchRuleManager)
A special ID generator can be set before the session is opened and can not be changed thereafter. |
void |
setIDGenerator(CDOIDGenerator idGenerator)
A special ID generator can be set before the session is opened and can not be changed thereafter. |
void |
setLockNotificationMode(CDOCommonSession.Options.LockNotificationMode mode)
|
void |
setPassiveUpdateEnabled(boolean passiveUpdateEnabled)
|
void |
setPassiveUpdateMode(CDOCommonSession.Options.PassiveUpdateMode passiveUpdateMode)
|
Methods inherited from interface org.eclipse.net4j.util.event.INotifier |
---|
addListener, getListeners, hasListeners, removeListener |
Method Detail |
---|
boolean isPassiveUpdateEnabled()
CDOCommonSession.Options.isPassiveUpdateEnabled()
void setPassiveUpdateEnabled(boolean passiveUpdateEnabled)
CDOCommonSession.Options.setPassiveUpdateEnabled(boolean)
CDOCommonSession.Options.PassiveUpdateMode getPassiveUpdateMode()
CDOCommonSession.Options.getPassiveUpdateMode()
void setPassiveUpdateMode(CDOCommonSession.Options.PassiveUpdateMode passiveUpdateMode)
CDOCommonSession.Options.setPassiveUpdateMode(PassiveUpdateMode)
CDOCommonSession.Options.LockNotificationMode getLockNotificationMode()
void setLockNotificationMode(CDOCommonSession.Options.LockNotificationMode mode)
CDOSession.ExceptionHandler getExceptionHandler()
CDOSession.getExceptionHandler()
void setExceptionHandler(CDOSession.ExceptionHandler exceptionHandler)
CDOSession.getExceptionHandler()
CDOIDGenerator getIDGenerator()
CDOSession.getIDGenerator()
void setIDGenerator(CDOIDGenerator idGenerator)
null
, the passed generator must be thread-safe.
CDOSession.getIDGenerator()
CDOFetchRuleManager getFetchRuleManager()
CDOSession.getFetchRuleManager()
void setFetchRuleManager(CDOFetchRuleManager fetchRuleManager)
null
, the passed generator must be thread-safe.
CDOSession.getFetchRuleManager()
CDOAuthenticator getAuthenticator()
null
.
boolean isActivateOnOpen()
true
if the session opened by openSession()
will be automatically activated,
false
otherwise.
void setActivateOnOpen(boolean activateOnOpen)
openSession()
will be automatically activated or not.
boolean isSessionOpen()
true
if the session for this configuration is currently open, false
otherwise.
CDOSession openSession()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |