public class DomainProxy extends Object
| Constructor and Description |
|---|
DomainProxy(boolean useAccessMethods,
G9Enums enums)
Constructs a new instance of
DomainProxy, which can be used
to create new DomainObjectProxies. |
| Modifier and Type | Method and Description |
|---|---|
<T> DomainObjectProxy<T> |
getNewProxy(T o,
String roleName)
Returns a new proxy for the domain object
|
<T> DomainObjectProxy<T> |
getProxy(T o,
String roleName)
Returns the proxy associeated with the specified object.
|
void |
removeAllProxies()
Removes all proxies regiestred in this proxy holder.
|
void |
removeProxy(DomainObjectProxy<?> proxy)
Removes a proxy from the list of registred proxies.
|
public DomainProxy(boolean useAccessMethods,
G9Enums enums)
DomainProxy, which can be used
to create new DomainObjectProxies.useAccessMethods - flag singalling if attributes should be accessed
through bean-style get- and set-methods. If true get- and
set-methods are used.enums - a reference to the application enums.public <T> DomainObjectProxy<T> getProxy(T o, String roleName)
T - Type of proxied domain objecto - the object to proxyroleName - the role name of the objectpublic <T> DomainObjectProxy<T> getNewProxy(T o, String roleName)
T - Type of proxied domain objecto - the domain objectroleName - the role name of the domain objectpublic void removeProxy(DomainObjectProxy<?> proxy)
proxy - the proxy to removepublic void removeAllProxies()
Copyright © 2006–2018 Esito AS. All rights reserved.