net.sf.oness.common.model.bo
Class AbstractBusinessObject

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

public abstract class AbstractBusinessObject
extends AbstractAuditableObject
implements AuditableBusinessObject

Basic business object. Some superclass methods are overriden only to set xdoclet attributes.

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

Field Summary
 
Fields inherited from class net.sf.oness.common.all.BaseObject
log
 
Constructor Summary
AbstractBusinessObject()
           
 
Method Summary
 java.lang.Object clone()
          This implementation calls super.clone and then clones collections without cloning its elements.
 boolean equals(java.lang.Object o)
           
 java.lang.Long getCode()
          The code that identifies all versions of the same object
 java.lang.String getComments()
          Comments for this 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
 int hashCode()
           
 void setComments(java.lang.String comments)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.oness.common.model.auditing.AbstractAuditableObject
setCode, setCreatedBy, setDeletedBy, setId, setTransactionTime
 
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
setCode, setCreatedBy, setDeletedBy, setId, setTransactionTime
 

Constructor Detail

AbstractBusinessObject

public AbstractBusinessObject()
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
Overrides:
getId in class AbstractAuditableObject
Returns:

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
Overrides:
getCode in class AbstractAuditableObject
Returns:
Returns the code.

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
Overrides:
getTransactionTime in class AbstractAuditableObject
See Also:
Auditable.getTransactionTime()

getCreatedBy

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

Specified by:
getCreatedBy in interface Auditable
Overrides:
getCreatedBy in class AbstractAuditableObject
See Also:
Auditable.getCreatedBy()

getDeletedBy

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

Specified by:
getDeletedBy in interface Auditable
Overrides:
getDeletedBy in class AbstractAuditableObject
See Also:
Auditable.getDeletedBy()

getComments

public java.lang.String getComments()
Comments for this object

Returns:
The comments

setComments

public void setComments(java.lang.String comments)

equals

public boolean equals(java.lang.Object o)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public java.lang.String toString()
See Also:
Object.toString()

clone

public java.lang.Object clone()
This implementation calls super.clone and then clones collections without cloning its elements. Returns null on any exception.

Specified by:
clone in interface Auditable
See Also:
Object.clone()


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