T - Type of domain objectpublic interface DomainObjectProxy<T>
| Modifier and Type | Method and Description |
|---|---|
void |
copyStatus(DomainObjectProxy<?> fromProxy,
String fromAttributeName,
String toAttributeName)
Copies the status from an attribute in
fromProxy. |
boolean |
equalsInitialValue(String attributeName,
Object value)
Checks if the specified value equals the original value from the domain
object.
|
void |
forceClean(String attributeName,
Object value)
Forces the specified value to be the clean value.
|
void |
forceClean(T o)
Forces the proxy to hold a new object, which then are considered "clean"
|
Object |
getAttribute(String attributeName)
Returns the specified attribute with its current value.
|
Object |
getCleanVersionOfAttribute(String attributeName)
Returns the initial value of the specified attribute.
|
T |
getCleanVersionOfObject()
Returns the object in its initial state.
|
T |
getObject()
Returns the object in its current state, which might be clean, might
be dirty.
|
boolean |
isClean()
Quiering about the object state.
|
boolean |
isClean(String attributeName)
Quiering about the attribute state.
|
void |
reset()
Resets the object to its initial, clean state
|
void |
resetAttribute(String attributeName)
Resets the specified attribute to its original value.
|
void |
setAttribute(String attributeName,
Object attributeValue)
Sets an attribute.
|
boolean isClean()
true if the object
state is unchanged from the initial state (in other words clean).true if the proxied object is clean.boolean isClean(String attributeName)
true if the
attribute is unchanged from it's original state.attributeName - (missing javadoc)T getCleanVersionOfObject()
T getObject()
void setAttribute(String attributeName, Object attributeValue)
attributeName - the name of the attribute to set.attributeValue - the new value of the specified attribute. Primitive
types must be wrapped.Object getAttribute(String attributeName)
attributeName - the name of the attribute to get.Object getCleanVersionOfAttribute(String attributeName)
attributeName - (missing javadoc)void resetAttribute(String attributeName)
attributeName - the (declared) name of the attributeboolean equalsInitialValue(String attributeName, Object value)
String s1 = null;
String s2 = "";
String s3 = " ";
String orig1 = null;
Asuming orig1 is a reference to the domain-objects initial
value of the attribute, s1, s2 and
s3 are all considered equal to the origianal value.attributeName - the (declared) name of the attributevalue - - object holding the value which sould be compared to the
initial valuetrue if the specified value equals the initial
value.void reset()
void forceClean(String attributeName, Object value)
attributeName - the name of the attribute.value - the (clean) value of the specified attributevoid copyStatus(DomainObjectProxy<?> fromProxy, String fromAttributeName, String toAttributeName)
fromProxy.fromProxy - (missing javadoc)fromAttributeName - (missing javadoc)toAttributeName - (missing javadoc)void forceClean(T o)
o - (missing javadoc)Copyright © 2006–2018 Esito AS. All rights reserved.