|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.slide.common.ServiceImpl
Slide Service interface.
Constructor Summary | |
ServiceImpl()
|
Method Summary | |
void |
begin()
Begin a new transaction. |
boolean |
cacheResults()
Indicates whether or not the objects managed by this service should be cached. |
void |
commit()
Try to commit the data managed by the service to the repository. |
abstract void |
connect()
Connects to the underlying data source (if any is needed). |
boolean |
connectIfNeeded()
Connects to the service, if we were not previously connected. |
abstract void |
disconnect()
Disconnects from the underlying data source. |
abstract void |
initialize(NamespaceAccessToken token)
Initializes service. |
abstract boolean |
isConnected()
This function tells whether or not the service is connected. |
abstract void |
reset()
Deletes service underlying data source, if possible (and meaningful). |
abstract void |
setParameters(java.util.Hashtable parameters)
Initializes the service with a set of parameters. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceImpl()
Method Detail |
public abstract void setParameters(java.util.Hashtable parameters) throws ServiceParameterErrorException, ServiceParameterMissingException
setParameters
in interface Service
parameters
- Hashtable containing the parameters' names
and associated valuesServiceParameterErrorException
- Incorrect service parameterServiceParameterMissingException
- Service parameter missingpublic abstract void connect() throws ServiceConnectionFailedException
connect
in interface Service
ServiceConnectionFailedException
- Connection failedpublic abstract void disconnect() throws ServiceDisconnectionFailedException
disconnect
in interface Service
ServiceDisconnectionFailedException
- Disconnection failedpublic abstract void initialize(NamespaceAccessToken token) throws ServiceInitializationFailedException
initialize
in interface Service
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 abstract void reset() throws ServiceResetFailedException
reset
in interface Service
ServiceResetFailedException
- Reset failedpublic void begin() throws ServiceAccessException
begin
in interface Service
ServiceAccessException
- Service access errorpublic void commit() throws ServiceAccessException
commit
in interface Service
ServiceAccessException
- Service access errorpublic abstract boolean isConnected() throws ServiceAccessException
isConnected
in interface Service
ServiceAccessException
- Service access errorpublic boolean connectIfNeeded() throws ServiceConnectionFailedException, ServiceAccessException
connectIfNeeded
in interface Service
ServiceAccessException
- Unspecified service access errorServiceConnectionFailedException
- Connection failedpublic boolean cacheResults()
cacheResults
in interface Service
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |