org.jaffa.persistence.engines.jdbcengine.interceptor
Class AddInterceptor

java.lang.Object
  extended byorg.jaffa.persistence.engines.jdbcengine.interceptor.AbstractInterceptor
      extended byorg.jaffa.persistence.engines.jdbcengine.interceptor.AddInterceptor

public class AddInterceptor
extends AbstractInterceptor

This is the Interceptor which adds Persistent objects to the database.


Constructor Summary
AddInterceptor()
           
 
Method Summary
 Object invoke(PersistentTransaction pt)
          Performs the logic associated with adding Persistent objects to the database.
 
Methods inherited from class org.jaffa.persistence.engines.jdbcengine.interceptor.AbstractInterceptor
getNextInterceptor, setNextInterceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddInterceptor

public AddInterceptor()
Method Detail

invoke

public Object invoke(PersistentTransaction pt)
              throws UOWException
Performs the logic associated with adding Persistent objects to the database. This will add each object in the PersistentTransaction's ADD collection to the database, utilising the JdbcBridge. It will then pass on the control to the next Interceptor in the chain.

Specified by:
invoke in class AbstractInterceptor
Parameters:
pt - The PersistentTransaction object, on which the Interceptor is to be executed.
Returns:
the output from the next Interceptor in the chain.
Throws:
UOWException - if any error occurs.


Copyright © 2002-2004 JAFFA Project.