Examples of DeleteAction


Examples of client.net.sf.saxon.ce.trans.update.DeleteAction

          PendingUpdateList list = controller.getPendingUpdateList();
          if (action == REPLACE_CONTENT && command == APIcommand.UPDATE_HTML) {
            int existingChildren = targetNode.getChildCount();
              for (int i=0; i<existingChildren; i++) {
                  Node child = targetNode.getChild(i);
                  list.add(new DeleteAction(child));
              }
          }
 
          list.add(new InsertAction(container, targetNode, InsertAction.LAST));
        }
View Full Code Here

Examples of com.alibaba.wasp.plan.action.DeleteAction

  @Test
  public void testDelete() throws InvalidProtocolBufferException {
    String tableName = "test";
    String primary = "1234";
    DeleteAction action = new DeleteAction(tableName, Bytes.toBytes(primary));
    MessageProto message = ProtobufUtil.convertDeleteAction(action);
    action = (DeleteAction) ProtobufUtil.convertWriteAction(message);
    Assert.assertTrue(tableName.equals(action.getFTableName()));
    Assert.assertTrue(primary.equals(Bytes.toString(action.getCombinedPrimaryKey())));
  }
View Full Code Here

Examples of com.alibaba.wasp.plan.action.DeleteAction

    if (primaryKeyPairs == null) {
      throw new NotMatchPrimaryKeyException("Not match primary key.");
    }

    byte[] primayKey = RowBuilder.build().genRowkey(primaryKeyPairs);
    DeleteAction action = new DeleteAction(wtableName, primayKey);
    if (context.isGenWholePlan()) {
      Condition entityGroupKeyCondition = ParserUtils.getCondition(table
          .getEntityGroupKey().getName(), eqConditions);
      // Get entityGroupLocation according to entity group key
      EntityGroupLocation entityGroupLocation = this.connection
          .locateEntityGroup(Bytes.toBytes(table.getTableName()), DruidParser
              .convert(table.getColumn(entityGroupKeyCondition.getFieldName()),
                  entityGroupKeyCondition.getValue()));
      action.setEntityGroupLocation(entityGroupLocation);
    }
    List<DeleteAction> actions = new ArrayList<DeleteAction>();
    actions.add(action);
    DeletePlan deletePlan = new DeletePlan(actions);
    context.setPlan(deletePlan);
View Full Code Here

Examples of com.alibaba.wasp.plan.action.DeleteAction

      throws ServiceException {
    List<ClientProtos.WriteResultProto> writeResultProtos = new ArrayList<ClientProtos.WriteResultProto>();
    List<DeleteAction> actions = plan.getActions();
    // if actions > 1. will commit by 2pc
    if (actions.size() == 1) {
      DeleteAction action = actions.get(0);
      EntityGroupInfo entityGroupInfo = action.getEntityGroupLocation()
          .getEntityGroupInfo();
      ServerName serverName = new ServerName(action.getEntityGroupLocation()
          .getHostname(), action.getEntityGroupLocation().getPort(),
          ServerName.NON_STARTCODE);
      try {
        if (workingOnLocalServer(server, serverName)) {
          ClientProtos.DeleteResponse response = server.delete(
              entityGroupInfo.getEntityGroupName(), action);
View Full Code Here

Examples of com.hdfsTools.action.deleteAction

    String result = "";
    HdfsFile file = filedao.findFile(fileId);
    if (filedao.findFile(fileId) == null)
      System.out.println("kongduixiang");// 获得文件的url
    System.out.println("url is :" + file.getFileUrl());
    deleteAction delete = new deleteAction();
    boolean deletehdfs = delete.deleteDirector(file.getFileUrl());
    if (deletehdfs) {
      int delmem = filedao.deleteFilesmem(file.getFileUrl());
      deletedb = filedao.deleteFiles(file.getFileUrl());// 删除数据库中该文件和子文件的记
      // Users user = new Users();
      // System.out.println(hfile.getFileId());
View Full Code Here

Examples of com.sleepycat.persist.model.DeleteAction

                rel == Relationship.MANY_TO_MANY) {
                config.setMultiKeyCreator(keyCreator);
            } else {
                config.setKeyCreator(keyCreator);
            }
            DeleteAction deleteAction = secKeyMeta.getDeleteAction();
            if (deleteAction != null) {
                ForeignKeyDeleteAction baseDeleteAction;
                switch (deleteAction) {
                case ABORT:
                    baseDeleteAction = ForeignKeyDeleteAction.ABORT;
                    break;
                case CASCADE:
                    baseDeleteAction = ForeignKeyDeleteAction.CASCADE;
                    break;
                case NULLIFY:
                    baseDeleteAction = ForeignKeyDeleteAction.NULLIFY;
                    break;
                default:
                    throw DbCompat.unexpectedState(deleteAction.toString());
                }
                config.setForeignKeyDeleteAction(baseDeleteAction);
                if (deleteAction == DeleteAction.NULLIFY) {
                    config.setForeignMultiKeyNullifier(keyCreator);
                }
View Full Code Here

Examples of com.sleepycat.persist.model.DeleteAction

                rel == Relationship.MANY_TO_MANY) {
                config.setMultiKeyCreator(keyCreator);
            } else {
                config.setKeyCreator(keyCreator);
            }
            DeleteAction deleteAction = secKeyMeta.getDeleteAction();
            if (deleteAction != null) {
                ForeignKeyDeleteAction baseDeleteAction;
                switch (deleteAction) {
                case ABORT:
                    baseDeleteAction = ForeignKeyDeleteAction.ABORT;
                    break;
                case CASCADE:
                    baseDeleteAction = ForeignKeyDeleteAction.CASCADE;
                    break;
                case NULLIFY:
                    baseDeleteAction = ForeignKeyDeleteAction.NULLIFY;
                    break;
                default:
                    throw new IllegalStateException(deleteAction.toString());
                }
                config.setForeignKeyDeleteAction(baseDeleteAction);
                if (deleteAction == DeleteAction.NULLIFY) {
                    config.setForeignMultiKeyNullifier(keyCreator);
                }
View Full Code Here

Examples of de.grey.ownsync.action.DeleteAction

                    case FileState.UNKNOWN: // B
                    case FileState.DELETED_FILE: // B
//                        return new NoAction(fileStateA, fileStateB);
                        return null;
                    case FileState.UNCHANGED_FILE: // B
                        return new DeleteAction(fileStateB, folderStateB);
                    case FileState.CHANGED_FILE: // B
                    case FileState.NEW_FILE: // B
                        return getCopyNewerAction(fileStateA, fileStateB);
                }
            }
            case FileState.UNCHANGED_FILE: // A
            {
                switch (fileStateB.getModifications())
                {
                    case FileState.DELETED_FILE: // B
                        return new DeleteAction(fileStateA, folderStateA);
                    case FileState.UNKNOWN: // B
                    case FileState.UNCHANGED_FILE: // B
//                        return new NoAction(fileStateA, fileStateB);
                        return null;
                    case FileState.CHANGED_FILE: // B
View Full Code Here

Examples of de.mhus.cao.model.fs.action.DeleteAction

  FsActionProvider(MActivator activator) {
    list.add(new CreateFolderAction(activator,null));
    list.add(new CopyToAction(activator,null));
    list.add(new MoveToAction(activator,null));
    list.add(new DeleteAction(activator,null));
   
    list.add(new SetTargetAction(activator,null)); // TODO put in default provider
  }
View Full Code Here

Examples of de.mhus.hair.dctm.action.DeleteAction

  DctmActionProvider(MActivator activator) {
//    list.add(new CreateFolderAction(activator,null));
    list.add(new CopyToAction(activator,null));
    list.add(new CopyFromStreamAction(activator,null));
    list.add(new MoveToAction(activator,null));
    list.add(new DeleteAction(activator,null));
   
    list.add(new SetTargetAction(activator,null)); // TODO put in default provider
  }
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.