org.kuali.rice.kns.document
Class MaintenanceLock

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kns.document.MaintenanceLock
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject

@Entity
@Sequence(name="KRNS_MAINT_LOCK_S",
          property="lockId")
public class MaintenanceLock
extends PersistableBusinessObjectBase

List of business objects that this maintenance document is locking (prevents two documents from being routed trying to update the same object) Most maintenance documents have only one lock, but globals have many

See Also:
Serialized Form

Field Summary
private  String documentNumber
           
private  String lockId
           
private  String lockingRepresentation
           
private static long serialVersionUID
           
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
MaintenanceLock()
           
 
Method Summary
protected  void customPrePersist()
          Uses OrmUtils to set the sequence
 String getDocumentNumber()
           
 String getLockId()
           
 String getLockingRepresentation()
           
 void setDocumentNumber(String documentNumber)
           
 void setLockId(String lockId)
           
 void setLockingRepresentation(String lockingRepresentation)
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

lockId

private String lockId

lockingRepresentation

private String lockingRepresentation

documentNumber

private String documentNumber
Constructor Detail

MaintenanceLock

public MaintenanceLock()
Method Detail

getLockId

public String getLockId()

setLockId

public void setLockId(String lockId)

getLockingRepresentation

public String getLockingRepresentation()

setLockingRepresentation

public void setLockingRepresentation(String lockingRepresentation)

getDocumentNumber

public String getDocumentNumber()

setDocumentNumber

public void setDocumentNumber(String documentNumber)

customPrePersist

protected void customPrePersist()
Uses OrmUtils to set the sequence

See Also:
PersistableBusinessObjectBase.prePersist()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.