|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.component.impl.Dto
Holds the internal state of a DistributedObject
, with no business rules or validation.
Used to transfer state between contexts, and to and from the database.
Constructor Summary | |
Dto(DistributedContext context,
DistributedReference reference)
|
|
Dto(DistributedReference reference,
long version)
Called from reader DAOs. |
Method Summary | |
java.lang.String |
attributesToString()
|
static void |
checkConcurrency(Dto working,
Dto persisted)
|
static java.lang.Object |
deepClone(java.lang.Object value,
java.lang.String objectName)
|
boolean |
equals(java.lang.Object that)
|
boolean |
equalValues(Dto that)
|
boolean |
equalValues(Dto that,
boolean compareVersionAndDirty)
|
boolean |
equalValues(Dto that,
boolean compareVersionAndDirty,
java.lang.StringBuffer diff)
|
boolean |
equalValuesDeep(Dto that)
|
boolean |
equalValuesDeep(Dto that,
boolean compareVersionAndDirty)
|
DistributedContext |
getContext()
|
java.util.Set |
getDirtyProperties()
|
static java.util.Collection |
getDistributedReferences(java.util.Collection dtoCollection)
|
java.util.List |
getDtosInTree()
|
java.util.List |
getDtosInTree(boolean checkContexts)
|
java.util.Map |
getDtosInTreeByRef()
|
java.util.Map |
getPropertyMap()
|
DistributedReference |
getReference()
|
long |
getVersion()
|
int |
hashCode()
|
static boolean |
isConcurrenyCheckEnabled()
|
boolean |
isDeleted()
Dtos are never deleted by default; see DeletableDto . |
boolean |
isDirty()
|
boolean |
isDirtyDeep()
|
boolean |
isDirtyDeepIgnoreFields(java.util.Set fieldsToIgnore)
|
boolean |
isDirtyIgnoreFields(java.util.Set fieldsToIgnore)
|
boolean |
isPersisted()
|
void |
markClean()
|
void |
markDirty()
|
void |
markPersisted()
|
void |
mergeIntoContext(DistributedContext intoContext,
DistributedReference expectedReference,
boolean checkDirty)
|
protected void |
mergePropertiesFrom(DistributedContext context,
Dto fromDto)
|
void |
printDeep(java.io.PrintWriter out,
int indent)
|
void |
purgeDeletedChildren()
This is intended to be used immediately after persisting a Dto that may have deleted children. |
static void |
setConcurrenyCheckEnabled(boolean concurrencyCheckEnabled)
|
java.lang.String |
toString()
|
java.lang.String |
toStringDeep()
|
protected java.lang.Object |
writeReplace()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Dto(DistributedContext context, DistributedReference reference)
public Dto(DistributedReference reference, long version)
Method Detail |
public final DistributedContext getContext()
public final DistributedReference getReference()
public final boolean isPersisted()
public final long getVersion()
public boolean isDeleted()
DeletableDto
.
public final boolean isDirty()
public final boolean isDirtyDeep()
public final boolean isDirtyDeepIgnoreFields(java.util.Set fieldsToIgnore)
public final boolean isDirtyIgnoreFields(java.util.Set fieldsToIgnore)
public final java.util.Set getDirtyProperties()
public final void markDirty()
public final void markClean()
public static java.lang.Object deepClone(java.lang.Object value, java.lang.String objectName)
public final void markPersisted()
public java.util.List getDtosInTree()
public java.util.List getDtosInTree(boolean checkContexts)
public java.util.Map getDtosInTreeByRef()
public void purgeDeletedChildren()
public static void checkConcurrency(Dto working, Dto persisted) throws ConcurrentUpdateException
ConcurrentUpdateException
public static boolean isConcurrenyCheckEnabled()
public static void setConcurrenyCheckEnabled(boolean concurrencyCheckEnabled)
public void mergeIntoContext(DistributedContext intoContext, DistributedReference expectedReference, boolean checkDirty) throws ConcurrentUpdateException, SystemException
ConcurrentUpdateException
SystemException
protected void mergePropertiesFrom(DistributedContext context, Dto fromDto) throws SystemException
SystemException
public static java.util.Collection getDistributedReferences(java.util.Collection dtoCollection) throws SystemException
SystemException
public java.util.Map getPropertyMap()
public final boolean equals(java.lang.Object that)
public final int hashCode()
public final boolean equalValues(Dto that)
public final boolean equalValues(Dto that, boolean compareVersionAndDirty)
public final boolean equalValues(Dto that, boolean compareVersionAndDirty, java.lang.StringBuffer diff)
public final boolean equalValuesDeep(Dto that)
public final boolean equalValuesDeep(Dto that, boolean compareVersionAndDirty)
public java.lang.String toString()
public java.lang.String attributesToString()
public java.lang.String toStringDeep()
public void printDeep(java.io.PrintWriter out, int indent)
protected java.lang.Object writeReplace()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |