|
IT.CappuccinoNet StrutsCX v0.9 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cappuccinonet.strutscx.prototype.business.InfoDelegate
Business Delegate for the Info Domain. It shields the Persistence Framework from the Web-Client and mirrors the methods of the corresponding Facade on the integration tier. Depending on the user input it delegates to the InfoEJBFacade, InfoCastorFacade or any other persistence mechanism available.
Using a Business Delegate has the following advantages:
| Field Summary | |
private InfoDAO |
infoDAO
|
private java.lang.String |
languages
|
private static org.apache.log4j.Logger |
logger
The Logger we use to log JDK 1.4 conform. |
private java.lang.String |
persisttype
|
private java.lang.String |
THIS_CLASS
A String with this Classname used for system messages |
| Constructor Summary | |
InfoDelegate(javax.servlet.ServletConfig config,
java.lang.String persisttype,
java.lang.String languages)
Constructor for InfoDelegate. |
|
| Method Summary | |
void |
delete(InfoPresentationVO presentationVO)
Deletes the given entry in the data source. |
java.util.Collection |
findByLocale(java.util.Locale locale)
Contacts the appropriate Facade to find a datasource entries of a specific locale. |
InfoPresentationVO |
findByPrimaryKey(int primaryKey,
java.util.Locale locale)
Contacts the appropriate Facade to find a datasource entry by primary key. |
InfoPresentationVO |
insert()
Returns an new InfoPresentationVO filled with default values. |
private InfoPresentationVO |
prepareForClient(InfoIntegrationVO integrationVO)
This method does nothing more than reading Values from the InfoIntegrationVO and writes it into the InfoPresentationVO. |
private InfoIntegrationVO |
prepareForPersistence(InfoPresentationVO presentationVO)
This method does nothing more than reading Values from the InfoPresentationVO and writes it into the InfoIntegrationVO. |
void |
update(InfoPresentationVO presentationVO)
Updates values of the integration tier with values of the presentation tier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String THIS_CLASS
private static org.apache.log4j.Logger logger
private java.lang.String persisttype
private java.lang.String languages
private InfoDAO infoDAO
| Constructor Detail |
public InfoDelegate(javax.servlet.ServletConfig config,
java.lang.String persisttype,
java.lang.String languages)
config - persisttype - FOR FUTURE USE WITH client switch for persist type!languages - | Method Detail |
public InfoPresentationVO insert()
public void delete(InfoPresentationVO presentationVO)
presentationVO - public java.util.Collection findByLocale(java.util.Locale locale)
locale -
public InfoPresentationVO findByPrimaryKey(int primaryKey,
java.util.Locale locale)
primaryKey - locale -
public void update(InfoPresentationVO presentationVO)
presentationVO - private InfoPresentationVO prepareForClient(InfoIntegrationVO integrationVO)
private InfoIntegrationVO prepareForPersistence(InfoPresentationVO presentationVO)
presentationVO -
|
IT.CappuccinoNet StrutsCX v0.9 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||