|
|||||||||
| Home >> All >> org >> apache >> slide >> [ common overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.slide.common
Class AbstractXAServiceBase

java.lang.Objectorg.apache.commons.transaction.util.xa.AbstractXAResource
org.apache.slide.common.AbstractXAServiceBase
- All Implemented Interfaces:
- Service, javax.transaction.Status, javax.transaction.xa.XAResource
- Direct Known Subclasses:
- XAServiceBase
- public abstract class AbstractXAServiceBase
- extends org.apache.commons.transaction.util.xa.AbstractXAResource
- implements Service
- extends org.apache.commons.transaction.util.xa.AbstractXAResource
Slide Service abstract implementation.
- Version:
- $Revision: 1.2 $
| Field Summary | |
protected java.lang.String |
LOG_CHANNEL
|
protected org.apache.commons.transaction.util.LoggerFacade |
loggerFacade
|
protected Namespace |
namespace
Namespace. |
protected Scope |
scope
|
| Fields inherited from class org.apache.commons.transaction.util.xa.AbstractXAResource |
|
| Fields inherited from interface javax.transaction.xa.XAResource |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Fields inherited from interface javax.transaction.Status |
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN |
| Constructor Summary | |
AbstractXAServiceBase()
|
|
| Method Summary | |
boolean |
cacheResults()
Indicates whether or not the objects managed by this service should be cached. |
abstract void |
connect()
Connects to the underlying data source (if any is needed). |
void |
connect(org.apache.slide.authenticate.CredentialsToken crdtoken)
Connects to the underlying data source (if any is needed). |
boolean |
connectIfNeeded()
Connects to the service, if we were not previously connected. |
boolean |
connectIfNeeded(org.apache.slide.authenticate.CredentialsToken token)
Connects to the service, if we were not previously connected. |
abstract void |
disconnect()
Disconnects from the underlying data source. |
org.apache.slide.util.logger.Logger |
getLogger()
Logger accessor. |
protected org.apache.commons.transaction.util.LoggerFacade |
getLoggerFacade()
|
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). |
void |
setNamespace(Namespace namespace)
Namespace setter. |
abstract 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 class org.apache.commons.transaction.util.xa.AbstractXAResource |
addAcitveTransactionalResource, addSuspendedTransactionalResource, commit, createTransactionResource, end, forget, getActiveTransactionalResource, getCurrentlyActiveTransactionalResource, getSuspendedTransactionalResource, getTransactionalResource, includeBranchInXid, isSameRM, prepare, recover, removeActiveTransactionalResource, removeSuspendedTransactionalResource, rollback, setCurrentlyActiveTransactionalResource, start |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.transaction.xa.XAResource |
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start |
| Field Detail |
LOG_CHANNEL
protected java.lang.String LOG_CHANNEL
namespace
protected Namespace namespace
- Namespace.
scope
protected Scope scope
loggerFacade
protected org.apache.commons.transaction.util.LoggerFacade loggerFacade
| Constructor Detail |
AbstractXAServiceBase
public AbstractXAServiceBase()
| Method Detail |
setScope
public void setScope(Scope scope)
setNamespace
public void setNamespace(Namespace namespace)
- Namespace setter.
- Specified by:
setNamespacein interfaceService
getLogger
public org.apache.slide.util.logger.Logger getLogger()
getLoggerFacade
protected org.apache.commons.transaction.util.LoggerFacade getLoggerFacade()
setParameters
public abstract void setParameters(java.util.Hashtable parameters) throws ServiceParameterErrorException, ServiceParameterMissingException
- Initializes the service with a set of parameters. Those could be :
- User name, login info
- Host name on which to connect
- Remote port
- JDBC driver whoich is to be used :-)
- Anything else ...
- Specified by:
setParametersin interfaceService
connect
public void connect(org.apache.slide.authenticate.CredentialsToken crdtoken) throws ServiceConnectionFailedException
- Connects to the underlying data source (if any is needed).
Compatibility implementation for the previous store implementations
connect
public abstract void connect()
throws ServiceConnectionFailedException
- Connects to the underlying data source (if any is needed).
disconnect
public abstract void disconnect()
throws ServiceDisconnectionFailedException
- Disconnects from the underlying data source.
- Specified by:
disconnectin interfaceService
initialize
public void initialize(NamespaceAccessToken token) throws ServiceInitializationFailedException
- Initializes service.
- Specified by:
initializein interfaceService
reset
public abstract void reset()
throws ServiceResetFailedException
- Deletes service underlying data source, if possible (and meaningful).
isConnected
public abstract boolean isConnected()
throws ServiceAccessException
- This function tells whether or not the service is connected.
- Specified by:
isConnectedin interfaceService
connectIfNeeded
public boolean connectIfNeeded(org.apache.slide.authenticate.CredentialsToken token) throws ServiceConnectionFailedException, ServiceAccessException
- Connects to the service, if we were not previously connected.
- Specified by:
connectIfNeededin interfaceService
connectIfNeeded
public boolean connectIfNeeded()
throws ServiceConnectionFailedException,
ServiceAccessException
- Connects to the service, if we were not previously connected.
- Specified by:
connectIfNeededin interfaceService
cacheResults
public boolean cacheResults()
- Indicates whether or not the objects managed by this service should be
cached. Caching is enabled by default.
- Specified by:
cacheResultsin interfaceService
|
|||||||||
| Home >> All >> org >> apache >> slide >> [ common overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC