com.softwareag.tamino.db.api.accessor
Class TAccessorFactory

java.lang.Object
  extended by com.softwareag.tamino.db.api.accessor.TAccessorFactory

public class TAccessorFactory
extends java.lang.Object

TAccessorFactory provides all factory methods to instantiate the various concrete accessor classes. The class implements the singleton pattern. If the time logging is switched on, the factory returns dynamic proxy handlers for the accessors instead of the accessors. These TTimeLoggingProxy objects are responsible for the time logging on the top level.

Version:
$Revision: 1.22 $
Author:
Marcus Schreyer

Constructor Summary
TAccessorFactory()
           
 
Method Summary
static TAccessorFactory getInstance()
          Gets the singleton instance for this class.
 TAdministrationAccessor newAdministrationAccessor(TStreamAccessor streamAccessor, TResponseBuilder responseBuilder)
          Obtain a new instance of a TAdministrationAccessor.
 TGenericAccessor newGenericAccessor(TAccessLocation accessLocation, TInvocation invocation, TResponseBuilder responseBuilder, java.util.Locale locale)
          Obtain a new instance of a TGenericAccessor.
 TNonXMLObjectAccessor newNonXMLObjectAccessor(TAccessLocation accessLocation, TInvocation invocation, TResponseBuilder responseBuilder, java.util.Locale locale)
          Obtain a new instance of a TNonXMLObjectAccessor.
 TSchemaDefinition2Accessor newSchemaDefinition2Accessor(TStreamAccessor streamAccessor, TResponseBuilder responseBuilder)
          Obtain a new instance of a TSchemaDefinition2Accessor.
 TSchemaDefinition3Accessor newSchemaDefinition3Accessor(TStreamAccessor streamAccessor, TResponseBuilder responseBuilder)
          Obtain a new instance of a TSchemaDefinition3Accessor.
 TStreamAccessor newStreamAccessor(TAccessLocation accessLocation, TInvocation invocation, java.util.Locale locale)
          Obtain a new instance of a TStreamAccessor.
 TSystemAccessor newSystemAccessor(TGenericAccessor genericAccessor)
          Obtain a new instance of a TSystemAccessor.
 TXMLObjectAccessor newXMLObjectAccessor(TStreamAccessor streamAccessor, TResponseBuilder responseBuilder)
          Obtain a new instance of a TXMLAccessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TAccessorFactory

public TAccessorFactory()
Method Detail

getInstance

public static TAccessorFactory getInstance()
Gets the singleton instance for this class.

Returns:
TAccessorFactory The singleton instance.

newNonXMLObjectAccessor

public TNonXMLObjectAccessor newNonXMLObjectAccessor(TAccessLocation accessLocation,
                                                     TInvocation invocation,
                                                     TResponseBuilder responseBuilder,
                                                     java.util.Locale locale)
Obtain a new instance of a TNonXMLObjectAccessor.

Parameters:
accessLocation - denotes the access location which is needed for the concrete accessor.
responseBuilder - parametrizes the access with the specific response building instance.
invocation - is needed so that the accessor can invoke the concrete operation on the underlying database.
Returns:
TNonXMLObjectAccessor The concrete accessor for common Non-XML access.

newStreamAccessor

public TStreamAccessor newStreamAccessor(TAccessLocation accessLocation,
                                         TInvocation invocation,
                                         java.util.Locale locale)
Obtain a new instance of a TStreamAccessor.

Parameters:
invocation - for the invocation of concrete command statements.
Returns:
TStreamAccessor The concrete accessor for stream access.

newXMLObjectAccessor

public TXMLObjectAccessor newXMLObjectAccessor(TStreamAccessor streamAccessor,
                                               TResponseBuilder responseBuilder)
Obtain a new instance of a TXMLAccessor. This method creates a new TXMLAccessor that is bound to the TConnection instance.

Returns:
TXMLAccessor The concrete accessor for common XML access.

newSchemaDefinition2Accessor

public TSchemaDefinition2Accessor newSchemaDefinition2Accessor(TStreamAccessor streamAccessor,
                                                               TResponseBuilder responseBuilder)
Obtain a new instance of a TSchemaDefinition2Accessor. This method creates a new TSchemaDefinition2Accessor that is bound to the TConnection instance.

Returns:
TSchemaDefinition2Accessor, the concrete accessor for common Tamino Schema Definition 2 access.

newSchemaDefinition3Accessor

public TSchemaDefinition3Accessor newSchemaDefinition3Accessor(TStreamAccessor streamAccessor,
                                                               TResponseBuilder responseBuilder)
Obtain a new instance of a TSchemaDefinition3Accessor. This method creates a new TSchemaDefinition3Accessor that is bound to the TConnection instance.

Returns:
TSchemaDefinition3Accessor, the concrete accessor for common Tamino Schema Definition 3 access.

newSystemAccessor

public TSystemAccessor newSystemAccessor(TGenericAccessor genericAccessor)
Obtain a new instance of a TSystemAccessor. This method creates a new TSystemAccessor that is bound to the TConnection instance.

Returns:
TSystemAccessor, the concrete accessor for Tamino diagnose access.

newAdministrationAccessor

public TAdministrationAccessor newAdministrationAccessor(TStreamAccessor streamAccessor,
                                                         TResponseBuilder responseBuilder)
Obtain a new instance of a TAdministrationAccessor. This method creates a new TAdministrationAccessor that is bound to the TConnection instance.

Returns:
TAdministrationAccessor, the accessor for administrative Tamino commands.

newGenericAccessor

public TGenericAccessor newGenericAccessor(TAccessLocation accessLocation,
                                           TInvocation invocation,
                                           TResponseBuilder responseBuilder,
                                           java.util.Locale locale)
Obtain a new instance of a TGenericAccessor. This method creates a new TGenericAccessor that is bound to the TConnection instance.

Returns:
TGenericAccessor, the concrete accessor for generic command statement executions.


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