org.jwaf.bo
Class BusinessObject

java.lang.Object
  |
  +--org.apache.struts.action.ActionForm
        |
        +--org.jwaf.bo.BusinessObject
All Implemented Interfaces:
org.exolab.castor.jdo.Persistent, java.io.Serializable, org.exolab.castor.jdo.TimeStampable

public abstract class BusinessObject
extends org.apache.struts.action.ActionForm
implements org.exolab.castor.jdo.Persistent, org.exolab.castor.jdo.TimeStampable

BusinessObject class works as an adapter for data objects to provide implementation for both Castor and Struts.

See Also:
Serialized Form

Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Fields inherited from interface org.exolab.castor.jdo.TimeStampable
NO_TIMESTAMP
 
Constructor Summary
BusinessObject()
          Creates new PersistentBOAdapter
 
Method Summary
abstract  java.lang.Object getIdentity()
          Get the primary key object
 void jdoAfterCreate()
          This method is called by persistence engine
 void jdoAfterRemove()
          This method is called by persistence engine
 void jdoBeforeCreate(org.exolab.castor.jdo.Database database)
          This method is called by persistence engine on before create.
 void jdoBeforeRemove()
          This method is called by persistence engine
 long jdoGetTimeStamp()
          Get the timeStamp of last persistence.
 java.lang.Class jdoLoad(short param)
          This method is called by persistence engine when object is loaded from persistence
 void jdoPersistent(org.exolab.castor.jdo.Database database)
          This method is called by persistence engine
 void jdoSetTimeStamp(long timeStamp)
          Set the timeStamp of last persistence.
 void jdoStore(boolean param)
          This method is called by persistence engine
 void jdoTransient()
          Castor before create call back method
 void jdoUpdate()
          This method is called by persistence engine when object is updated in persistence
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, reset, reset, setMultipartRequestHandler, setServlet, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessObject

public BusinessObject()
Creates new PersistentBOAdapter
Method Detail

jdoStore

public void jdoStore(boolean param)
              throws java.lang.Exception
This method is called by persistence engine
Specified by:
jdoStore in interface org.exolab.castor.jdo.Persistent

jdoPersistent

public void jdoPersistent(org.exolab.castor.jdo.Database database)
This method is called by persistence engine
Specified by:
jdoPersistent in interface org.exolab.castor.jdo.Persistent

jdoAfterRemove

public void jdoAfterRemove()
                    throws java.lang.Exception
This method is called by persistence engine
Specified by:
jdoAfterRemove in interface org.exolab.castor.jdo.Persistent

jdoAfterCreate

public void jdoAfterCreate()
                    throws java.lang.Exception
This method is called by persistence engine
Specified by:
jdoAfterCreate in interface org.exolab.castor.jdo.Persistent

jdoBeforeRemove

public void jdoBeforeRemove()
                     throws java.lang.Exception
This method is called by persistence engine
Specified by:
jdoBeforeRemove in interface org.exolab.castor.jdo.Persistent

jdoUpdate

public void jdoUpdate()
               throws java.lang.Exception
This method is called by persistence engine when object is updated in persistence
Specified by:
jdoUpdate in interface org.exolab.castor.jdo.Persistent

jdoLoad

public java.lang.Class jdoLoad(short param)
                        throws java.lang.Exception
This method is called by persistence engine when object is loaded from persistence
Specified by:
jdoLoad in interface org.exolab.castor.jdo.Persistent
Parameters:
param -  
Returns:
 
Throws:
java.lang.Exception -  

jdoTransient

public void jdoTransient()
Castor before create call back method
Specified by:
jdoTransient in interface org.exolab.castor.jdo.Persistent

jdoBeforeCreate

public void jdoBeforeCreate(org.exolab.castor.jdo.Database database)
                     throws java.lang.Exception
This method is called by persistence engine on before create.
Specified by:
jdoBeforeCreate in interface org.exolab.castor.jdo.Persistent
Parameters:
database - Castor database object
Throws:
java.lang.Exception - Exception

getIdentity

public abstract java.lang.Object getIdentity()
Get the primary key object
Returns:
Primary key object

jdoGetTimeStamp

public long jdoGetTimeStamp()
Get the timeStamp of last persistence.
Specified by:
jdoGetTimeStamp in interface org.exolab.castor.jdo.TimeStampable
Returns:
Long timestamp

jdoSetTimeStamp

public void jdoSetTimeStamp(long timeStamp)
Set the timeStamp of last persistence.
Specified by:
jdoSetTimeStamp in interface org.exolab.castor.jdo.TimeStampable
Parameters:
timeStamp - Passed time stamp