|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Slide Service interface.
| Field Summary |
| 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). |
void |
connect(CredentialsToken crdtoken)
Connects to the underlying data source (if any is needed). |
boolean |
connectIfNeeded()
Deprecated. |
boolean |
connectIfNeeded(CredentialsToken crdtoken)
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 values
ServiceParameterErrorException - Incorrect service parameter
ServiceParameterMissingException - Service parameter missing
public void connect(CredentialsToken crdtoken)
throws ServiceConnectionFailedException
crdtoken - the Credentials token containing e.g. the credential
ServiceConnectionFailedException - Connection failed
public void connect()
throws ServiceConnectionFailedException
ServiceConnectionFailedException - Connection failed
public void disconnect()
throws ServiceDisconnectionFailedException
ServiceDisconnectionFailedException - Disconnection failed
public 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 initialization
ServiceInitializationFailedException - May throw an exception
if the service has already been initialized before
public void reset()
throws ServiceResetFailedException
ServiceResetFailedException - Reset failed
public boolean isConnected()
throws ServiceAccessException
ServiceAccessException - Service access error
public boolean connectIfNeeded(CredentialsToken crdtoken)
throws ServiceConnectionFailedException,
ServiceAccessException
crdtoken - the Credentials token containing e.g. the credential
ServiceAccessException - Unspecified service access error
ServiceConnectionFailedException - Connection failed
public boolean connectIfNeeded()
throws ServiceConnectionFailedException,
ServiceAccessException
ServiceAccessException - Unspecified service access error
ServiceConnectionFailedException - Connection failedpublic boolean cacheResults()
public Logger getLogger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||