Пример #1
0
  public void setParameterMappingList(List parameterMappingList) {
    this.parameterMappings =
        (ParameterMapping[])
            parameterMappingList.toArray(new ParameterMapping[parameterMappingList.size()]);
    parameterMappingIndex.clear();
    for (int i = 0; i < parameterMappings.length; i++) {
      parameterMappingIndex.put(parameterMappings[i].getPropertyName(), new Integer(i));
    }
    Map props = new HashMap();
    props.put("map", this);

    dataExchange = delegate.getDataExchangeFactory().getDataExchangeForClass(parameterClass);
    dataExchange.initialize(props);
  }
Пример #2
0
 public CacheKey getCacheKey(StatementScope statementScope, Object parameterObject) {
   return dataExchange.getCacheKey(statementScope, this, parameterObject);
 }
Пример #3
0
 public void refreshParameterObjectValues(
     StatementScope statementScope, Object parameterObject, Object[] values) {
   dataExchange.setData(statementScope, this, parameterObject, values);
 }
Пример #4
0
 public Object[] getParameterObjectValues(StatementScope statementScope, Object parameterObject) {
   return dataExchange.getData(statementScope, this, parameterObject);
 }