* @param properties
*/
public void initialize(Map properties) {
Object map = properties.get("map");
if (map instanceof ParameterMap) {
ParameterMap parameterMap = (ParameterMap) map;
if (parameterMap != null) {
ParameterMapping[] parameterMappings = parameterMap.getParameterMappings();
String[] parameterPropNames = new String[parameterMappings.length];
for (int i = 0; i < parameterPropNames.length; i++) {
parameterPropNames[i] = parameterMappings[i].getPropertyName();
}
parameterPlan = AccessPlanFactory.getAccessPlan(parameterMap.getParameterClass(), parameterPropNames);
// OUTPUT PARAMS
List outParamList = new ArrayList();
for (int i = 0; i < parameterPropNames.length; i++) {
if (parameterMappings[i].isOutputAllowed()) {
outParamList.add(parameterMappings[i].getPropertyName());
}
}
String[] outParams = (String[]) outParamList.toArray(new String[outParamList.size()]);
outParamPlan = AccessPlanFactory.getAccessPlan(parameterMap.getParameterClass(), outParams);
}
} else if (map instanceof ResultMap) {
ResultMap resultMap = (ResultMap) map;
if (resultMap != null) {