org.archiviststoolkit.model
Class RecordLocks

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by org.archiviststoolkit.mydomain.DomainObject
          extended by org.archiviststoolkit.model.RecordLocks
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable, java.lang.Comparable, Auditable, org.hibernate.classic.Lifecycle

public class RecordLocks
extends DomainObject

Archivists' Toolkit(TM) Copyright © 2005-2008 Regents of the University of California, New York University, & Five Colleges, Inc. All rights reserved. This software is free. You can redistribute it and / or modify it under the terms of the Educational Community License (ECL) version 1.0 (http://www.opensource.org/licenses/ecl1.php) This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ECL license for more details about permissions and limitations. Archivists' Toolkit(TM) http://www.archiviststoolkit.org info@archiviststoolkit.org Created by IntelliJ IDEA.

See Also:
Serialized Form

Field Summary
static java.lang.Long RECORD_LOCK_EXPIRE_TIME
           
 
Fields inherited from class org.archiviststoolkit.mydomain.DomainObject
CREATED, CREATED_BY, LAST_UPDATED, LAST_UPDATED_BY
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
RecordLocks()
          The default constructor
RecordLocks(java.lang.String className, java.lang.Long recordId, java.lang.String userName, java.lang.Long previousUpdateTime, java.lang.String hostIP)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name for the record
 java.lang.String getHostIP()
          Method to return the host ip of this machine
 java.lang.Long getIdentifier()
           
 java.lang.Long getPreviousUpdateTime()
          Get the previous time the record lock was updated in milliseconds
 java.lang.Long getRecordId()
          Get the record id of the locked record
 java.lang.Long getRecordLockId()
          Get the record lock id
 java.lang.String getUserName()
          get the name of the user locking the record
 void setClassName(java.lang.String className)
          Set the class name for the record that is locked
 void setHostIP(java.lang.String hostIP)
          Method to set the host IP address
 void setIdentifier(java.lang.Long identifier)
           
 void setPreviousUpdateTime(java.lang.Long previousUpdateTime)
          set previous time the record lock was updated
 void setRecordId(java.lang.Long recordId)
          Set the record id for the record being locked
 void setRecordLockId(java.lang.Long recordLockId)
          Sets the record lock id
 void setUserName(java.lang.String userName)
          Set the name of the user who locking the record
 
Methods inherited from class org.archiviststoolkit.mydomain.DomainObject
addRelatedObject, compareTo, creationDate, equals, getAuditInfo, getCreated, getCreatedBy, getLastUpdated, getLastUpdatedBy, getRelatedCollection, getRelatedObject, getUniqueConstraintKey, getVersion, hashCode, isNewRecord, lastUpdated, onDelete, onLoad, onSave, onUpdate, removeIdAndAuditInfo, removeRelatedObject, setAuditInfo, setVersion, testDeleteRules, validateAndDisplayDialog
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECORD_LOCK_EXPIRE_TIME

public static final java.lang.Long RECORD_LOCK_EXPIRE_TIME
Constructor Detail

RecordLocks

public RecordLocks()
The default constructor


RecordLocks

public RecordLocks(java.lang.String className,
                   java.lang.Long recordId,
                   java.lang.String userName,
                   java.lang.Long previousUpdateTime,
                   java.lang.String hostIP)
Method Detail

getHostIP

public java.lang.String getHostIP()
Method to return the host ip of this machine

Returns:
The Host IP

setHostIP

public void setHostIP(java.lang.String hostIP)
Method to set the host IP address

Parameters:
hostIP -

getIdentifier

public java.lang.Long getIdentifier()
Specified by:
getIdentifier in class DomainObject
Returns:
Returns the identifier.

setIdentifier

public void setIdentifier(java.lang.Long identifier)
Specified by:
setIdentifier in class DomainObject
Parameters:
identifier - The identifier to set.

getRecordLockId

public java.lang.Long getRecordLockId()
Get the record lock id

Returns:
Return the record lock id

setRecordLockId

public void setRecordLockId(java.lang.Long recordLockId)
Sets the record lock id

Parameters:
recordLockId -

getClassName

public java.lang.String getClassName()
Return the class name for the record

Returns:
The class name of the record that is locked

setClassName

public void setClassName(java.lang.String className)
Set the class name for the record that is locked

Parameters:
className -

getRecordId

public java.lang.Long getRecordId()
Get the record id of the locked record

Returns:
Returns the record id of the record that is locked

setRecordId

public void setRecordId(java.lang.Long recordId)
Set the record id for the record being locked

Parameters:
recordId -

getUserName

public java.lang.String getUserName()
get the name of the user locking the record

Returns:
The name of the user who locked the record

setUserName

public void setUserName(java.lang.String userName)
Set the name of the user who locking the record

Parameters:
userName -

getPreviousUpdateTime

public java.lang.Long getPreviousUpdateTime()
Get the previous time the record lock was updated in milliseconds

Returns:
time last updated in milliseconds

setPreviousUpdateTime

public void setPreviousUpdateTime(java.lang.Long previousUpdateTime)
set previous time the record lock was updated

Parameters:
previousUpdateTime -