|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jwaf.bo.BusinessLogic
BusinessLogic.java This is a business logic class that brings Apache Struts and Exolab Castor frameworks together. It serves as: (1) Struts action (2) Persistent object domain (3) Business object logic
Constructor Summary | |
|
BusinessLogic()
Default constructor |
protected |
BusinessLogic(java.lang.Class classType)
This is a protected constructor that is intended to be called by inhereting classes by passing the class type of the business object. |
Method Summary | |
void |
addBusinessObject(BusinessObject businessObject)
Create a new business object in persistence and set encapsulated business object to it. |
void |
deleteBusinessObject()
Delete the encapsulated business object |
void |
deleteBusinessObject(BusinessObject businessObject)
Delete the business object from persistent that matches the passed transient business object. |
org.exolab.castor.jdo.Persistent |
find(java.lang.Object id)
Given the primary key, this method finds the object, sets the encapsulated business object to it and returns a persistent object. |
BusinessObjectCollection |
findAllBusinessObjects()
Get all business objects of the type |
BusinessObject |
findBusinessObject(java.lang.Object id)
Given the primary key, this method finds the object, sets the encapsulated business object to it and returns a business object. |
BusinessObject |
getBusinessObject()
Gets the encapsulated business object |
void |
setBusinessObject(BusinessObject businessObject)
Sets the encapsulated business object to passed business object. |
void |
updateBusinessObject()
Update a business object in persistence |
void |
updateBusinessObject(BusinessObject businessObject)
Update a business object in persistence, also sets encapsulated business object to the parameter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BusinessLogic()
protected BusinessLogic(java.lang.Class classType)
classType
- Should be the BusinessObject.classMethod Detail |
public org.exolab.castor.jdo.Persistent find(java.lang.Object id)
id
- Primary key objectpublic void setBusinessObject(BusinessObject businessObject)
businessObject
- Business object to encapsulate.public BusinessObject findBusinessObject(java.lang.Object id)
id
- Primary key objectpublic BusinessObjectCollection findAllBusinessObjects()
public void updateBusinessObject(BusinessObject businessObject)
businessObject
- Transient instance of the business objectpublic void updateBusinessObject()
public void deleteBusinessObject(BusinessObject businessObject)
businessObject
- A transient business object to be deleted from persistencepublic void deleteBusinessObject()
public void addBusinessObject(BusinessObject businessObject)
businessObject
- Transient instance of business object.public BusinessObject getBusinessObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |