Package org.apache.tuscany.das.rdb.impl

Examples of org.apache.tuscany.das.rdb.impl.ParameterExtendedImpl


                }
               
                if (value == null) {                  
                    statement.append(" is null");                   
                } else {
                  ParameterExtendedImpl param = createCollisionParameter(tableWrapper, changedProperty, idx++);
                    statement.append(" = ?");
                    param.setValue(value);
                    parameters.add(param);
                }
               
              
            }
View Full Code Here


        }
        param.setColumnType(SDODataTypeHelper.columnTypeForSDOType(property.getType()));
        return param;
    }
    private ParameterExtendedImpl createCollisionParameter(TableWrapper tableWrapper, Property property, int i) {
      ParameterExtendedImpl param = new CollisionParameter();
      return fillExtendedParameter(param, tableWrapper, property, i);
    }
View Full Code Here

      ParameterExtendedImpl param = new CollisionParameter();
      return fillExtendedParameter(param, tableWrapper, property, i);
    }
   
    private ParameterExtendedImpl createManagedParameter(TableWrapper table, Property property, int idx) {
      ParameterExtendedImpl param = new ManagedParameterImpl();
      return fillExtendedParameter(param, table, property, idx);
    }
View Full Code Here

      ParameterExtendedImpl param = new ManagedParameterImpl();
      return fillExtendedParameter(param, table, property, idx);
    }

    private ParameterExtendedImpl createParameter(TableWrapper table, Property property, int idx) {
      ParameterExtendedImpl param = new ParameterExtendedImpl();
      return fillExtendedParameter(param, table, property, idx);
    }
View Full Code Here

        InsertCommandImpl cmd = new InsertCommandImpl(statement.toString(),
                (String[]) generatedKeys.toArray(new String[0]));
        Iterator params = parameters.iterator();
        for (int idx = 1; params.hasNext(); idx++) {
            Property property = (Property) params.next();
            ParameterExtendedImpl p = new ParameterExtendedImpl();
            p.setName(property.getName());
            p.setType(property.getType());
            p.setColumnType(SDODataTypeHelper.columnTypeForSDOType(property.getType()));
            p.setConverter(getConverter(table.getConverter(property.getName())));
            p.setIndex(idx);
            cmd.addParameter(p);

        }
        if (this.logger.isDebugEnabled()) {
            this.logger.debug(statement.toString());
View Full Code Here

        DeleteCommandImpl deleteCommand = new DeleteCommandImpl(getDeleteStatement(mapping, t));

        Iterator i = tw.getPrimaryKeyProperties().iterator();
        for (int idx = 1; i.hasNext(); idx++) {
            String property = (String) i.next();
            ParameterExtendedImpl p = new ParameterExtendedImpl();
            p.setName(property);
            p.setColumnType(SDODataTypeHelper.columnTypeForSDOType(SDODataTypes.OBJECT));
            p.setConverter(getConverter(tw.getConverter(property)));
            p.setIndex(idx);
            deleteCommand.addParameter(p);
        }
        return deleteCommand;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.das.rdb.impl.ParameterExtendedImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.