org.apache.ojb.broker.accesslayer
Class RsIterator.ResourceWrapper

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.RsIterator.ResourceWrapper
All Implemented Interfaces:
PBListener, PBStateListener
Enclosing class:
RsIterator

public static class RsIterator.ResourceWrapper
extends java.lang.Object
implements PBStateListener

Wraps a RsIterator instance as WeakReference.


Constructor Summary
RsIterator.ResourceWrapper(RsIterator rs)
           
 
Method Summary
 void afterBegin(PBStateEvent event)
          Called after a transaction was started.
 void afterCommit(PBStateEvent event)
          Called after a transaction was comitted.
 void afterOpen(PBStateEvent event)
          Called after the PersistenceBroker instance was obtained from the pool.
 void afterRollback(PBStateEvent event)
          Called after a transaction was rolled back.
 void beforeBegin(PBStateEvent event)
          Called before a transaction was started.
 void beforeClose(PBStateEvent event)
          Called before the PersistenceBroker instance will be returned to the pool.
 void beforeCommit(PBStateEvent event)
          Called before a transaction will be comitted.
 void beforeRollback(PBStateEvent event)
          Called before a transaction will be rolled back.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RsIterator.ResourceWrapper

public RsIterator.ResourceWrapper(RsIterator rs)
Method Detail

beforeClose

public void beforeClose(PBStateEvent event)
Description copied from interface: PBStateListener
Called before the PersistenceBroker instance will be returned to the pool.

Specified by:
beforeClose in interface PBStateListener
Parameters:
event - The event object

beforeRollback

public void beforeRollback(PBStateEvent event)
Description copied from interface: PBStateListener
Called before a transaction will be rolled back.

Specified by:
beforeRollback in interface PBStateListener
Parameters:
event - The event object

beforeCommit

public void beforeCommit(PBStateEvent event)
Description copied from interface: PBStateListener
Called before a transaction will be comitted.

Specified by:
beforeCommit in interface PBStateListener
Parameters:
event - The event object

afterCommit

public void afterCommit(PBStateEvent event)
Description copied from interface: PBStateListener
Called after a transaction was comitted.

Specified by:
afterCommit in interface PBStateListener
Parameters:
event - The event object

afterRollback

public void afterRollback(PBStateEvent event)
Description copied from interface: PBStateListener
Called after a transaction was rolled back.

Specified by:
afterRollback in interface PBStateListener
Parameters:
event - The event object

afterBegin

public void afterBegin(PBStateEvent event)
Description copied from interface: PBStateListener
Called after a transaction was started.

Specified by:
afterBegin in interface PBStateListener
Parameters:
event - The event object

beforeBegin

public void beforeBegin(PBStateEvent event)
Description copied from interface: PBStateListener
Called before a transaction was started.

Specified by:
beforeBegin in interface PBStateListener
Parameters:
event - The event object

afterOpen

public void afterOpen(PBStateEvent event)
Description copied from interface: PBStateListener
Called after the PersistenceBroker instance was obtained from the pool.

Specified by:
afterOpen in interface PBStateListener
Parameters:
event - The event object


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30