|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.oness.common.all.BaseObject
Base class for objects, implementing toString, equals and hashCode using commons-lang.
Also implements swallow clone using commons-beanutils.
Note that there are security and performance constraints with this implementation, specifically they may fail under a security manager. Check commons-lang documentation for more info.
Field Summary | |
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
BaseObject()
|
Method Summary | |
java.lang.Object |
clone()
Swallow cloning. |
boolean |
equals(java.lang.Object o)
This method delegates to EqualsBuilder.reflectionEquals() |
int |
hashCode()
This method delegates to HashCodeBuilder.reflectionHashCode() |
java.lang.String |
toString()
This method delegates to ReflectionToStringBuilder. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final transient org.apache.commons.logging.Log log
Constructor Detail |
public BaseObject()
Method Detail |
public java.lang.String toString()
Object.toString()
,
ReflectionToStringBuilder
,
DateFormat.getDateTimeInstance()
public boolean equals(java.lang.Object o)
Object.equals(Object)
,
EqualsBuilder.reflectionEquals(Object, Object)
public int hashCode()
Object.hashCode()
,
HashCodeBuilder.reflectionHashCode(Object)
public java.lang.Object clone()
null
on any exception
Object.clone()
,
BeanUtils.cloneBean(Object)
,
PropertyUtils.copyProperties(Object, Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |