| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.oness.common.model.dao.AuditingDaoHelper
Class with helper methods to implement an auditing dao
| Constructor Summary | |
| AuditingDaoHelper() | |
| Method Summary | |
| static AuditableBusinessObject | create(AuditableDao dao,
       AuditableBusinessObject value)Set creation date, code and createdBy before saving | 
| static void | delete(AuditableDao dao,
       java.io.Serializable id)Set deletion date and deletedBy | 
| static AuditableBusinessObject | update(AuditableDao dao,
       AuditableBusinessObject value)Save a new object with createdBy and curent date as creation date. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public AuditingDaoHelper()
| Method Detail | 
public static AuditableBusinessObject create(AuditableDao dao,
                                             AuditableBusinessObject value)
net.sf.oness.common.model.dao.AuditableDao#create(net.sf.oness.common.model.bo.Auditable)
public static AuditableBusinessObject update(AuditableDao dao,
                                             AuditableBusinessObject value)
AuditableDao#create(Auditable)
org.springframework.dao.OptimisticLockingFailureException - if the value has been already updated or deletednet.sf.oness.common.model.dao.AuditableDao#update(net.sf.oness.common.model.bo.Auditable)
public static void delete(AuditableDao dao,
                          java.io.Serializable id)
org.springframework.dao.OptimisticLockingFailureException - if the value has been already updated or deletednet.sf.oness.common.model.dao.AuditableDao#delete(java.io.Serializable)| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||