org.openmdx.base.accessor.generic.spi
Class SinkConnection_1

java.lang.Object
  extended by org.openmdx.base.accessor.generic.spi.SinkConnection_1
All Implemented Interfaces:
Synchronization_1_0

public class SinkConnection_1
extends Object
implements Synchronization_1_0

Propagating Connection


Constructor Summary
protected SinkConnection_1()
          Constructor
  SinkConnection_1(ObjectFactory_1_3 delegate, Model_1_0 model)
          Constructor
 
Method Summary
 void afterBegin()
          The afterBegin method notifies a provider or plug-in that a new unit of work has started, and that the subsequent business methods on the instance will be invoked in the context of the unit of work.
 void afterCompletion(boolean committed)
          The afterCompletion method notifies a a provider or plug-in that a unit of work commit protocol has completed, and tells the instance whether the unit of work has been committed or rolled back.
 void beforeCompletion()
          The beforeCompletion method notifies a provider or plug-in that a unit of work is about to be committed.
 void close()
           
 ViewConnectionFactory_1_0 getConnectionFactory()
          Retrieve the connection factory
protected  ObjectFactory_1_3 getDelegate()
          Retrieve the delegate connection
 UnitOfWork_1_1 getUnitOfWork()
           
 ViewConnection_1 getViewConnection(InteractionSpec context)
           
 boolean hasContainerManagedUnitOfWork()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinkConnection_1

protected SinkConnection_1()
Constructor


SinkConnection_1

public SinkConnection_1(ObjectFactory_1_3 delegate,
                        Model_1_0 model)
Constructor

Parameters:
delegate -
model -
Throws:
ServiceException
Method Detail

getViewConnection

public ViewConnection_1 getViewConnection(InteractionSpec context)
                                   throws ServiceException
Throws:
ServiceException

getDelegate

protected ObjectFactory_1_3 getDelegate()
Retrieve the delegate connection

Returns:
the delegate connection

getConnectionFactory

public ViewConnectionFactory_1_0 getConnectionFactory()
Retrieve the connection factory

Returns:
the connection factory

hasContainerManagedUnitOfWork

public boolean hasContainerManagedUnitOfWork()

close

public void close()
           throws ServiceException
Throws:
ServiceException

getUnitOfWork

public UnitOfWork_1_1 getUnitOfWork()
                             throws ServiceException
Throws:
ServiceException

afterBegin

public void afterBegin()
                throws ServiceException
The afterBegin method notifies a provider or plug-in that a new unit of work has started, and that the subsequent business methods on the instance will be invoked in the context of the unit of work.

Specified by:
afterBegin in interface Synchronization_1_0
Throws:
ServiceException

beforeCompletion

public void beforeCompletion()
                      throws ServiceException
The beforeCompletion method notifies a provider or plug-in that a unit of work is about to be committed.

Specified by:
beforeCompletion in interface Synchronization_1_0
Throws:
ServiceException

afterCompletion

public void afterCompletion(boolean committed)
The afterCompletion method notifies a a provider or plug-in that a unit of work commit protocol has completed, and tells the instance whether the unit of work has been committed or rolled back.

Specified by:
afterCompletion in interface Synchronization_1_0


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.