com.bea.adapter.cci
Class AbstractInteraction
java.lang.Object
com.bea.adapter.cci.AbstractInteraction
- All Implemented Interfaces:
- javax.resource.cci.Interaction
- Direct Known Subclasses:
- AbstractDocumentRecordInteraction
public abstract class AbstractInteraction
- extends Object
- implements javax.resource.cci.Interaction
Provides a base implementation for adapter providers to extend. An
Interaction
enables a component to execute EIS functions.
- Author:
- Copyright (c) 1998-2000 by BEA Systems, Inc. All Rights Reserved.
Field Summary |
protected javax.resource.cci.ResourceWarning |
m_warning
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.resource.cci.Interaction |
close, execute, execute |
m_warning
protected javax.resource.cci.ResourceWarning m_warning
AbstractInteraction
public AbstractInteraction(AbstractConnection connectionHandle)
- Constructs an instance
- Parameters:
connectionHandle
- - the connection to execute an EIS function against
must not be null.
clearWarnings
public void clearWarnings()
throws javax.resource.ResourceException
- Clears any warnings associated with the last usage of this interaction
- Specified by:
clearWarnings
in interface javax.resource.cci.Interaction
- Throws:
javax.resource.ResourceException
getConnection
public javax.resource.cci.Connection getConnection()
- Specified by:
getConnection
in interface javax.resource.cci.Interaction
- Returns:
- the connection this interaction uses to execute EIS functions against
getLogContext
public LogContext getLogContext()
- Retrieves an object that determines the logging configuration for this
instance in the logging framework.
- Returns:
- an object that determines the logging configuration for this
instance.
getLogger
public ILogger getLogger()
- Retrieves an object used to log information to.
- Returns:
- an object used to log information to.
getRecordFactory
public javax.resource.cci.RecordFactory getRecordFactory()
throws javax.resource.ResourceException
- Returns:
- null; adapter providers should override to return a resource
adapter specific record factory
- Throws:
javax.resource.ResourceException
getWarnings
public javax.resource.cci.ResourceWarning getWarnings()
throws javax.resource.ResourceException
- Specified by:
getWarnings
in interface javax.resource.cci.Interaction
- Returns:
- an object that encapsulates 1 or more warnings about the execution
of a EIS function
- Throws:
javax.resource.ResourceException