Examples of Delete


Examples of org.apache.tuscany.das.rdb.config.Delete

    }

    public void addDeleteStatement(Table table, String statement, String parameters) {

        Delete delete = ConfigFactory.INSTANCE.createDelete();
        delete.setSql(statement);
        delete.setParameters(parameters);
        table.setDelete(delete);

    }
View Full Code Here

Examples of org.apache.xindice.webadmin.webdav.components.Delete

public class DeleteTest extends MethodSetup {

    public void setUp() throws Exception {
        super.setUp();
        method = new Delete();
    }
View Full Code Here

Examples of org.drools.scm.log.ScmLogEntry.Delete

                  }
                     
                  case SVNLogEntryPath.TYPE_DELETED: {
                      SVNDirEntry dirEntry = this.repository.info( entryPath.getPath(), -1 );
                      char type = ( dirEntry.getKind() == SVNNodeKind.DIR ) ? 'D' : 'F';
                      Delete delete = new Delete( type, entryPath.getPath(), logEntry.getRevision());
                      scmLogEntry.addAction( delete );
                      break;
                  }
                 
                  case SVNLogEntryPath.TYPE_MODIFIED: {
View Full Code Here

Examples of org.geotools.data.wfs.internal.TransactionRequest.Delete

            Identifier featureId = featureId(rid);
            ids.add(featureId);
        }
        if (!ids.isEmpty()) {
            Filter deleteFilter = dataStore.getFilterFactory().id(ids);
            Delete delete = transactionRequest.createDelete(remoteTypeName, deleteFilter);
            transactionRequest.add(delete);
        }

        // Create one update element per modified feature. Batch modified ones should have been
        // added as a single update element at applyBatchUpdate before
View Full Code Here

Examples of org.glassfish.config.support.Delete

            try {
                cbp = (Class<? extends ConfigBeanProxy>) entity.parent().model.classLoaderHolder.loadClass(entity.parent().model.targetTypeName);
            } catch (MultiException e) {
                return null;//
            }
            Delete del = null;
            for (Method m : cbp.getMethods()) {
                ConfigModel.Property pp = entity.parent().model.toProperty(m);
                if ((pp != null) && (pp.xmlName.equals(tagName)) && m.isAnnotationPresent(Delete.class)) {
                    del = m.getAnnotation(Delete.class);
                    break;
                }
            }
            if (del != null) {
                return del.value();
            }

        }
        return result;
    }
View Full Code Here

Examples of org.gradle.api.tasks.Delete

        return String.format("clean%s", StringUtils.capitalize(taskName));
    }

    protected void addWorker(Task worker) {
        lifecycleTask.dependsOn(worker);
        Delete cleanWorker = project.getTasks().add(cleanName(worker.getName()), Delete.class);
        cleanWorker.delete(worker.getOutputs().getFiles());
        cleanTask.dependsOn(cleanWorker);
    }
View Full Code Here

Examples of org.h2.command.dml.Delete

        }
        return new TableFilter(session, table, alias, rightsChecked, currentSelect);
    }

    private Delete parseDelete() {
        Delete command = new Delete(session);
        Expression limit = null;
        if (readIf("TOP")) {
            limit = readTerm().optimize(session);
        }
        currentPrepared = command;
        int start = lastParseIndex;
        readIf("FROM");
        TableFilter filter = readSimpleTableFilter();
        command.setTableFilter(filter);
        if (readIf("WHERE")) {
            Expression condition = readExpression();
            command.setCondition(condition);
        }
        if (readIf("LIMIT") && limit == null) {
            limit = readTerm().optimize(session);
        }
        command.setLimit(limit);
        setSQL(command, "DELETE", start);
        return command;
    }
View Full Code Here

Examples of org.hibernate.search.indexes.serialization.operations.impl.Delete

    ops.add( new PurgeAll( entityClassName ) );
  }

  @Override
  public void addDelete(String entityClassName, byte[] id) {
    ops.add( new Delete( entityClassName, id ) );
  }
View Full Code Here

Examples of org.hibernate.sql.Delete

  /**
   * Generate the SQL DELETE that deletes all rows
   */
  protected String generateDeleteString() {
   
    Delete delete = new Delete()
        .setTableName( qualifiedTableName )
        .setPrimaryKeyColumnNames( keyColumnNames );
   
    if ( hasWhere ) delete.setWhere( sqlWhereString );
   
    if ( getFactory().getSettings().isCommentsEnabled() ) {
      delete.setComment( "delete collection " + getRole() );
    }
   
    return delete.toStatementString();
  }
View Full Code Here

Examples of org.jrest4guice.persistence.ibatis.annotations.Delete

    Statement statement;
    Procedure procedure;
    Select select;
    Update update;
    Insert insert;
    Delete delete;
    for (Method method : methods) {
      if (method.isAnnotationPresent(Statement.class)) {
        statement = method.getAnnotation(Statement.class);
        generateMethodSqlMapping(statementSb, "statement", method,
            statement.id(), statement.parameterMap(), statement
                .parameterClass(), statement.resltMap(),
            statement.resltClass(), statement.sql(), statement
                .cacheModel(), statement.xmlResultName());
      } else if (method.isAnnotationPresent(Procedure.class)) {
        procedure = method.getAnnotation(Procedure.class);
        generateMethodSqlMapping(statementSb, "procedure", method,
            procedure.id(), procedure.parameterMap(), procedure
                .parameterClass(), procedure.resltMap(),
            procedure.resltClass(), procedure.sql(), null,
            procedure.xmlResultName());
      } else if (method.isAnnotationPresent(Select.class)) {
        select = method.getAnnotation(Select.class);
        generateMethodSqlMapping(statementSb, "select", method, select
            .id(), select.parameterMap(), select.parameterClass(),
            select.resltMap(), select.resltClass(), select.sql(),
            select.cacheModel(), null);
      } else if (method.isAnnotationPresent(Update.class)) {
        update = method.getAnnotation(Update.class);
        generateMethodSqlMapping(statementSb, "update", method, update
            .id(), null, update.parameterClass(), null, Null.class,
            update.sql(), null, null);
      } else if (method.isAnnotationPresent(Insert.class)) {
        insert = method.getAnnotation(Insert.class);
        generateMethodSqlMapping(statementSb, "insert", method, insert
            .id(), null, insert.parameterClass(), null, Null.class,
            insert.sql(), null, null);
      } else if (method.isAnnotationPresent(Delete.class)) {
        delete = method.getAnnotation(Delete.class);
        generateMethodSqlMapping(statementSb, "delete", method, delete
            .id(), null, delete.parameterClass(), null, Null.class,
            delete.sql(), null, null);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.