|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Slide Service interface.
Fields inherited from interface javax.transaction.xa.XAResource |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Method Summary | |
boolean |
cacheResults()
Idicates whether or not the objects managed by this service should be cached. |
void |
connect()
Connects to the underlying data source (if any is needed). |
boolean |
connectIfNeeded()
Connects to the service, if we were not previously connected. |
void |
disconnect()
Disconnects from the underlying data source. |
Logger |
getLogger()
Get logger associated with the service. |
void |
initialize(NamespaceAccessToken token)
Initializes service. |
boolean |
isConnected()
This function tells whether or not the service is connected. |
void |
reset()
Deletes service underlying data source, if possible (and meaningful). |
void |
setNamespace(Namespace namespace)
Namespace setter. |
void |
setParameters(java.util.Hashtable parameters)
Initializes the service with a set of parameters. |
void |
setScope(Scope scope)
Set the scope of the store as specified in domain.xml. |
Methods inherited from interface javax.transaction.xa.XAResource |
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start |
Method Detail |
public void setScope(Scope scope)
public void setNamespace(Namespace namespace)
public void setParameters(java.util.Hashtable parameters) throws ServiceParameterErrorException, ServiceParameterMissingException
parameters
- Hashtable containing the parameters' names and
associated valuesServiceParameterErrorException
- Incorrect service parameterServiceParameterMissingException
- Service parameter missingpublic void connect() throws ServiceConnectionFailedException
ServiceConnectionFailedException
- Connection failedpublic void disconnect() throws ServiceDisconnectionFailedException
ServiceDisconnectionFailedException
- Disconnection failedpublic void initialize(NamespaceAccessToken token) throws ServiceInitializationFailedException
token
- Namespace access token, needed if the service needs to
access objects or data within the namespace during its initializationServiceInitializationFailedException
- May throw an exception
if the service has already been initialized beforepublic void reset() throws ServiceResetFailedException
ServiceResetFailedException
- Reset failedpublic boolean isConnected() throws ServiceAccessException
ServiceAccessException
- Service access errorpublic boolean connectIfNeeded() throws ServiceConnectionFailedException, ServiceAccessException
ServiceAccessException
- Unspecified service access errorServiceConnectionFailedException
- Connection failedpublic boolean cacheResults()
public Logger getLogger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |