org.openxava.util
Interface IPropertiesContainer

All Known Subinterfaces:
EJBReplicable
All Known Implementing Classes:
EJBReplicableBase, POJOPropertiesContainerAdapter

public interface IPropertiesContainer

Allows update and read object properties to/from a Map.

Author:
Javier Paniza

Method Summary
 java.util.Map executeGets(java.lang.String properties)
          Obtain the values of properties in a Map.
 void executeSets(java.util.Map properties)
          Update the properties from a map.
 

Method Detail

executeGets

java.util.Map executeGets(java.lang.String properties)
                          throws java.rmi.RemoteException
Obtain the values of properties in a Map.

Parameters:
properties - Names of properties to obtain separated by a colon (:). The properties have to exists in the object.
Returns:
Map withString propertyName:Object value. Not null
Throws:
java.rmi.RemoteException - Some system problem or another unexpected problem

executeSets

void executeSets(java.util.Map properties)
                 throws ValidationException,
                        java.rmi.RemoteException
Update the properties from a map.

Parameters:
properties - Map with String propertyName:Object value. Null is like a empty map.
Throws:
ValidationException - Some problem validating the data
java.rmi.RemoteException - Some system problem or another unexpected problem