org.kuali.rice.krad.dao.proxy
Class MaintenanceDocumentDaoProxy

java.lang.Object
  extended by org.kuali.rice.krad.dao.proxy.MaintenanceDocumentDaoProxy
All Implemented Interfaces:
MaintenanceDocumentDao

public class MaintenanceDocumentDaoProxy
extends Object
implements MaintenanceDocumentDao


Constructor Summary
MaintenanceDocumentDaoProxy()
           
 
Method Summary
 void deleteLocks(String documentNumber)
          This method deletes the locks for the given document number.
 String getLockingDocumentNumber(String lockingRepresentation, String documentNumber)
          This method looks for a document that is locking the given lockingRepresentation.
 void setMaintenanceDocumentDaoJpa(MaintenanceDocumentDao maintenanceDocumentDaoJpa)
           
 void setMaintenanceDocumentDaoOjb(MaintenanceDocumentDao maintenanceDocumentDaoOjb)
           
 void storeLocks(List<MaintenanceLock> maintenanceLocks)
          This method stores the given list of maintenance locks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaintenanceDocumentDaoProxy

public MaintenanceDocumentDaoProxy()
Method Detail

getLockingDocumentNumber

public String getLockingDocumentNumber(String lockingRepresentation,
                                       String documentNumber)
Description copied from interface: MaintenanceDocumentDao
This method looks for a document that is locking the given lockingRepresentation. If one is found, then it retrieves the documentNumber, and returns it.

Specified by:
getLockingDocumentNumber in interface MaintenanceDocumentDao
Parameters:
lockingRepresentation - - locking representation to check for
documentNumber - - document number to ignore, optional argument
Returns:
returns an empty string if no locking document is found, otherwise returns the documentNumber of the locking document

deleteLocks

public void deleteLocks(String documentNumber)
Description copied from interface: MaintenanceDocumentDao
This method deletes the locks for the given document number. It is called when the document is final, thus it can be unlocked, or when the locks need to be regenerated (thus they get cleared first).

Specified by:
deleteLocks in interface MaintenanceDocumentDao
Parameters:
documentNumber - - document number whose locks should be deleted

storeLocks

public void storeLocks(List<MaintenanceLock> maintenanceLocks)
Description copied from interface: MaintenanceDocumentDao
This method stores the given list of maintenance locks. Typically these will all be for the same document.

Specified by:
storeLocks in interface MaintenanceDocumentDao
Parameters:
maintenanceLocks - - the list of maintenance locks to be stored

setMaintenanceDocumentDaoJpa

public void setMaintenanceDocumentDaoJpa(MaintenanceDocumentDao maintenanceDocumentDaoJpa)

setMaintenanceDocumentDaoOjb

public void setMaintenanceDocumentDaoOjb(MaintenanceDocumentDao maintenanceDocumentDaoOjb)


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.