org.jpu.patterns.proxy
Interface IProxyBean


public interface IProxyBean

This interface can optionally be implemented by a proxy that is backed by ProxyBean. It gives the client access to certain information maintained by the underlying ProxyBean. Use of this interface is not required, and ProxyBean can be used with or without it depending on whether you wish to expose this functionality to clients.

Note you may also elect to just copy and paste some of these methods into your interface. So long as you leave the signatures the same, ProxyBean will supply suitable implementations.


Method Summary
 boolean areAnyAttributesChanged()
           
 void clearChangedFlags()
           
 java.util.Map copyChangesTo(java.lang.Object dest)
           
 java.util.Map copyChangesTo(java.lang.Object dest, CopyOptions options)
           
 java.util.Map copyTo(java.lang.Object dest)
           
 java.util.Map copyTo(java.lang.Object dest, CopyOptions options)
           
 java.util.Map getAttributes()
          Returns a Map containing all the attributes managed by the underlying ProxyBean, keyed by attribute name.
 java.util.Set getChangedAttributes()
           
 boolean isAttributeChanged(java.lang.String attributeName)
           
 void setChangedFlag(java.lang.String attributeName)
           
 

Method Detail

getAttributes

public java.util.Map getAttributes()
Returns a Map containing all the attributes managed by the underlying ProxyBean, keyed by attribute name.


copyChangesTo

public java.util.Map copyChangesTo(java.lang.Object dest)
                            throws CopyException
Throws:
CopyException

copyChangesTo

public java.util.Map copyChangesTo(java.lang.Object dest,
                                   CopyOptions options)
                            throws CopyException
Throws:
CopyException

copyTo

public java.util.Map copyTo(java.lang.Object dest)
                     throws CopyException
Throws:
CopyException

copyTo

public java.util.Map copyTo(java.lang.Object dest,
                            CopyOptions options)
                     throws CopyException
Throws:
CopyException

getChangedAttributes

public java.util.Set getChangedAttributes()

areAnyAttributesChanged

public boolean areAnyAttributesChanged()

isAttributeChanged

public boolean isAttributeChanged(java.lang.String attributeName)

setChangedFlag

public void setChangedFlag(java.lang.String attributeName)

clearChangedFlags

public void clearChangedFlags()


Copyright (c) 2001-2003 - Apache Software Foundation