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

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


    TableWrapper wrapper = new TableWrapper(table);
    return wrapper.getPrimaryKeyProperties();
  }

  public DeleteCommandImpl getDeleteCommand(Table t) {
    DeleteCommandImpl deleteCommand = new DeleteCommandImpl(getDeleteStatement(t));
   
    Iterator i = getDeleteParameters(t).iterator();
    for(int idx=1; i.hasNext(); idx++) {
      String property = (String) i.next();
      Parameter p = new ParameterImpl();
      p.setName(property);
      p.setType(SDODataTypes.OBJECT);
      p.setConverter(getConverter(t, property));
      p.setIndex(idx);
      deleteCommand.addParameter(p);
    }
    return deleteCommand;
  }
View Full Code Here


        return statement.toString();
    }

    public DeleteCommandImpl getDeleteCommand(Table t) {
        TableWrapper tw = new TableWrapper(t);
        DeleteCommandImpl deleteCommand = new DeleteCommandImpl(getDeleteStatement(t));

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

        return statement.toString();
    }

    public DeleteCommandImpl getDeleteCommand(MappingWrapper mapping, Table t) {
        TableWrapper tw = new TableWrapper(t);
        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

        return statement.toString();
    }

    public DeleteCommandImpl getDeleteCommand(MappingWrapper mapping, Table t) {
        TableWrapper tw = new TableWrapper(t);
        DeleteCommandImpl deleteCommand = new DeleteCommandImpl(getDeleteStatement(mapping, t));

        Iterator i = tw.getPrimaryKeyProperties().iterator();
        for (int idx = 1; i.hasNext(); idx++) {
            String property = (String) i.next();
            ParameterImpl p = new ParameterImpl();
            p.setName(property);
            p.setType(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.DeleteCommandImpl

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.