net.sf.oness.common.model.auditing
Class AbstractAuditableObject

java.lang.Object
  extended bynet.sf.oness.common.all.BaseObject
      extended bynet.sf.oness.common.model.auditing.AbstractAuditableObject
All Implemented Interfaces:
Auditable, java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
AbstractBusinessObject, AuditableTransferObject

public abstract class AbstractAuditableObject
extends net.sf.oness.common.all.BaseObject
implements Auditable

Basic auditable object

Version:
$Revision: 1.1 $
Author:
Carlos Sanchez
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.oness.common.all.BaseObject
log
 
Constructor Summary
AbstractAuditableObject()
           
 
Method Summary
 java.lang.Long getCode()
          The code that identifies all versions of the same object
 java.lang.String getCreatedBy()
          Get the user that created this object
 java.lang.String getDeletedBy()
          Get the user that deleted this object
 java.lang.Long getId()
          The identifier of each version of each object
 DateRange getTransactionTime()
          Range of time when the data is entered into the system
 void setCode(java.lang.Long code)
           
 void setCreatedBy(java.lang.String userName)
          Set the user that created this object
 void setDeletedBy(java.lang.String userName)
          Set the user that deleted this object
 void setId(java.lang.Long id)
           
 void setTransactionTime(DateRange transactionTime)
           
 
Methods inherited from class net.sf.oness.common.all.BaseObject
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.oness.common.model.auditing.Auditable
clone
 

Constructor Detail

AbstractAuditableObject

public AbstractAuditableObject()
Method Detail

getId

public java.lang.Long getId()
Description copied from interface: Auditable
The identifier of each version of each object

Specified by:
getId in interface Auditable
Returns:
the id

setId

public void setId(java.lang.Long id)
Specified by:
setId in interface Auditable
Parameters:
id -

setCode

public void setCode(java.lang.Long code)
Specified by:
setCode in interface Auditable
Parameters:
code - The code to set.

getCode

public java.lang.Long getCode()
Description copied from interface: Auditable
The code that identifies all versions of the same object

Specified by:
getCode in interface Auditable
Returns:
Returns the code.

setTransactionTime

public void setTransactionTime(DateRange transactionTime)
Specified by:
setTransactionTime in interface Auditable
Parameters:
transactionTime -

getTransactionTime

public DateRange getTransactionTime()
Description copied from interface: Auditable
Range of time when the data is entered into the system

Specified by:
getTransactionTime in interface Auditable
Returns:
See Also:
Auditable.getTransactionTime()

setCreatedBy

public void setCreatedBy(java.lang.String userName)
Description copied from interface: Auditable
Set the user that created this object

Specified by:
setCreatedBy in interface Auditable
Parameters:
userName -

getCreatedBy

public java.lang.String getCreatedBy()
Description copied from interface: Auditable
Get the user that created this object

Specified by:
getCreatedBy in interface Auditable
Returns:
Returns the userName.
See Also:
Auditable.getCreatedBy()

setDeletedBy

public void setDeletedBy(java.lang.String userName)
Description copied from interface: Auditable
Set the user that deleted this object

Specified by:
setDeletedBy in interface Auditable
Parameters:
userName -

getDeletedBy

public java.lang.String getDeletedBy()
Description copied from interface: Auditable
Get the user that deleted this object

Specified by:
getDeletedBy in interface Auditable
Returns:
Returns the userName.
See Also:
Auditable.getDeletedBy()


Copyright © 2003-2005 ONess Project. All Rights Reserved.