com.softwareag.tamino.db.api.accessor.logging
Class TGenericAccessorTimeLoggingImpl

java.lang.Object
  extended by com.softwareag.tamino.db.api.accessor.TAbstractAccessor
      extended by com.softwareag.tamino.db.api.accessor.TGenericAccessorImpl
          extended by com.softwareag.tamino.db.api.accessor.logging.TGenericAccessorTimeLoggingImpl
All Implemented Interfaces:
TAccessor, TGenericAccessor, TInvalidatableAccessor

public class TGenericAccessorTimeLoggingImpl
extends TGenericAccessorImpl

TGenericAccessorTimeLoggingImpl is an extension of TGenericAccessorImpl that support time logging for the methods of the TGenericAccessor interface.

Version:
$Revision: 1.4 $
Author:
Oliver.Kleber@softwareag.com

Field Summary
 
Fields inherited from class com.softwareag.tamino.db.api.accessor.TAbstractAccessor
canBeCancelled, clientRequests, requestCounter, SGUAI
 
Constructor Summary
TGenericAccessorTimeLoggingImpl(TAccessLocation accessLocation, TInvocation invocation, TResponseBuilder responseBuilder, java.util.Locale locale)
          Special Constructor.
 
Method Summary
 TResponseHandle execute(TCommandStatement commandStatement)
          Executes the given TCommandStatement instance on the connected Tamino database.
 TResponseHandle execute(TCommandStatement commandStatement, java.lang.String doctype, java.lang.String docname)
          Executes the given TCommandStatement instance on the connected Tamino database.
 
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
 
Methods inherited from interface com.softwareag.tamino.db.api.accessor.TInvalidatableAccessor
invalidate
 

Constructor Detail

TGenericAccessorTimeLoggingImpl

public TGenericAccessorTimeLoggingImpl(TAccessLocation accessLocation,
                                       TInvocation invocation,
                                       TResponseBuilder responseBuilder,
                                       java.util.Locale locale)
Special Constructor. Initializes the accessor with the given TCommandInvocation instance.

Parameters:
commandInvocation -
Method Detail

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
Overrides:
execute in class TGenericAccessorImpl
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
Overrides:
execute in class TGenericAccessorImpl
Returns:
TResponseHandle instance containing the commands invocation result.
Throws:
TAccessorException


Copyright (c) 2013 Software AG. All Rights Reserved.