org.apache.ojb.broker
Class PBListenerTest.PBAwareObject

java.lang.Object
  extended byorg.apache.ojb.broker.PBListenerTest.PBAwareObject
All Implemented Interfaces:
PersistenceBrokerAware, java.io.Serializable
Enclosing class:
PBListenerTest

public static class PBListenerTest.PBAwareObject
extends java.lang.Object
implements PersistenceBrokerAware, java.io.Serializable

persistence capable class

See Also:
Serialized Form

Constructor Summary
PBListenerTest.PBAwareObject()
           
 
Method Summary
 void afterDelete(PersistenceBroker broker)
          this method is called as the last operation within a call to PersistenceBroker.delete(...).
 void afterInsert(PersistenceBroker broker)
          this method is called as the last operation within an insert operation.
 void afterLookup(PersistenceBroker broker)
          this method is called as the last operation within a call to PersistenceBroker.getObjectByXXX() or PersistenceBroker.getCollectionByXXX().
 void afterUpdate(PersistenceBroker broker)
          this method is called as the last operation within an update operation.
 void beforeDelete(PersistenceBroker broker)
          this method is called as the first operation within a call to PersistenceBroker.delete(...).
 void beforeInsert(PersistenceBroker broker)
          this method is called as the first operation before perform an object insert.
 void beforeUpdate(PersistenceBroker broker)
          this method is called as the first operation before perform an object update.
 boolean getCalledAfterDelete()
           
 boolean getCalledAfterLookup()
           
 boolean getCalledAfterStore()
           
 boolean getCalledAfterUpdate()
           
 boolean getCalledBeforeDelete()
           
 boolean getCalledBeforeStore()
           
 boolean getCalledBeforeUpdate()
           
 int getId()
           
 java.lang.String getName()
           
 void setCalledAfterDelete(boolean calledAfterDelete)
           
 void setCalledAfterLookup(boolean calledAfterLookup)
           
 void setCalledAfterStore(boolean calledAfterStore)
           
 void setCalledAfterUpdate(boolean calledAfterUpdate)
           
 void setCalledBeforeDelete(boolean calledBeforeDelete)
           
 void setCalledBeforeStore(boolean calledBeforeStore)
           
 void setCalledBeforeUpdate(boolean calledBeforeUpdate)
           
 void setId(int id)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PBListenerTest.PBAwareObject

public PBListenerTest.PBAwareObject()
Method Detail

beforeUpdate

public void beforeUpdate(PersistenceBroker broker)
                  throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
this method is called as the first operation before perform an object update.

Specified by:
beforeUpdate in interface PersistenceBrokerAware
Throws:
PersistenceBrokerException

afterUpdate

public void afterUpdate(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
this method is called as the last operation within an update operation.

Specified by:
afterUpdate in interface PersistenceBrokerAware
Throws:
PersistenceBrokerException

beforeInsert

public void beforeInsert(PersistenceBroker broker)
                  throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
this method is called as the first operation before perform an object insert.

Specified by:
beforeInsert in interface PersistenceBrokerAware
Throws:
PersistenceBrokerException

afterInsert

public void afterInsert(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
this method is called as the last operation within an insert operation.

Specified by:
afterInsert in interface PersistenceBrokerAware
Throws:
PersistenceBrokerException

beforeDelete

public void beforeDelete(PersistenceBroker broker)
                  throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
this method is called as the first operation within a call to PersistenceBroker.delete(...).

Specified by:
beforeDelete in interface PersistenceBrokerAware
Throws:
PersistenceBrokerException

afterDelete

public void afterDelete(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
this method is called as the last operation within a call to PersistenceBroker.delete(...).

Specified by:
afterDelete in interface PersistenceBrokerAware
Throws:
PersistenceBrokerException

afterLookup

public void afterLookup(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
this method is called as the last operation within a call to PersistenceBroker.getObjectByXXX() or PersistenceBroker.getCollectionByXXX().

Specified by:
afterLookup in interface PersistenceBrokerAware
Throws:
PersistenceBrokerException

getCalledAfterUpdate

public boolean getCalledAfterUpdate()

setCalledAfterUpdate

public void setCalledAfterUpdate(boolean calledAfterUpdate)

getCalledBeforeUpdate

public boolean getCalledBeforeUpdate()

setCalledBeforeUpdate

public void setCalledBeforeUpdate(boolean calledBeforeUpdate)

getCalledAfterDelete

public boolean getCalledAfterDelete()

setCalledAfterDelete

public void setCalledAfterDelete(boolean calledAfterDelete)

getCalledAfterLookup

public boolean getCalledAfterLookup()

setCalledAfterLookup

public void setCalledAfterLookup(boolean calledAfterLookup)

getCalledAfterStore

public boolean getCalledAfterStore()

setCalledAfterStore

public void setCalledAfterStore(boolean calledAfterStore)

getCalledBeforeDelete

public boolean getCalledBeforeDelete()

setCalledBeforeDelete

public void setCalledBeforeDelete(boolean calledBeforeDelete)

getCalledBeforeStore

public boolean getCalledBeforeStore()

setCalledBeforeStore

public void setCalledBeforeStore(boolean calledBeforeStore)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getId

public int getId()

setId

public void setId(int id)

toString

public java.lang.String toString()


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14