com.softwareag.tamino.db.api.accessor
Class TGenericAccessorImpl
java.lang.Object
com.softwareag.tamino.db.api.accessor.TAbstractAccessor
com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl
- All Implemented Interfaces:
- TAccessor, TGenericAccessor, TInvalidatableAccessor
- Direct Known Subclasses:
- TGenericAccessorTimeLoggingImpl
public class TGenericAccessorImpl
- extends TAbstractAccessor
- implements TGenericAccessor
TGenericAccessor provides generic access operations that can be used to execute an arbitrary but valid
command statement on Tamino and obtain the result as a TResponseHandle instance.
- Version:
- $Revision: 1.11 $
- Author:
- Marcus Schreyer
Methods inherited from class com.softwareag.tamino.db.api.accessor.TAbstractAccessor |
cancelRequests, getAccessCollection, getAccessLocation, getApplicationName, getCanBeCancelled, getDatabaseUri, getInvocation, getLocale, getLockMode, getLockwaitMode, getMaximumRequestDuration, invalidate, invoke, invoke, invoke, setAccessLocation, setApplicationName, setCanBeCancelled, setInvocation, setLockMode, setLockwaitMode, setMaximumRequestDuration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.softwareag.tamino.db.api.accessor.TAccessor |
cancelRequests, getAccessLocation, getApplicationName, getCanBeCancelled, getLockMode, getLockwaitMode, getMaximumRequestDuration, setAccessLocation, setApplicationName, setCanBeCancelled, setLockMode, setLockwaitMode, setMaximumRequestDuration |
TGenericAccessorImpl
public TGenericAccessorImpl(TAccessLocation accessLocation,
TInvocation invocation,
TResponseBuilder responseBuilder,
java.util.Locale locale)
- Special Constructor. Initializes the accessor with the given TCommandInvocation instance.
- Parameters:
commandInvocation
-
execute
public TResponseHandle execute(TCommandStatement commandStatement,
java.lang.String doctype,
java.lang.String docname)
throws TAccessorException
- Executes the given TCommandStatement instance on the connected Tamino database.
- Specified by:
execute
in interface TGenericAccessor
- Parameters:
commandStatement
- implies the command that needs to be executed on Tamino.doctype
- specifies the additional doctype information that might be needed.docname
- specifies the docname that might be needed for a referenced document.useTransactionState
- specifies whether the transaction state shall be considered.
- Returns:
- TResponseHandle instance containing the commands invocation result.
- Throws:
TAccessorException
execute
public TResponseHandle execute(TCommandStatement commandStatement)
throws TAccessorException
- Executes the given TCommandStatement instance on the connected Tamino database.
- Specified by:
execute
in interface TGenericAccessor
- Returns:
- TResponseHandle instance containing the commands invocation result.
- Throws:
TAccessorException
Copyright (c) 2013 Software AG. All Rights Reserved.