Examples of Remove


Examples of com.alvazan.orm.api.z8spi.action.Remove

    actions.add(persist);
  }

  @Override
  public void remove(DboTableMeta colFamily, byte[] rowKey) {
    Remove remove = new Remove();
    remove.setAction(RemoveEnum.REMOVE_ENTIRE_ROW);
    remove.setColFamily(colFamily);
    remove.setRowKey(rowKey);
    actions.add(remove);     
  }
View Full Code Here

Examples of com.github.sardine.model.Remove

      }
      set.setProp(prop);
    }
    // Remove properties
    {
      Remove remove = new Remove();
      body.getRemoveOrSet().add(remove);
      Prop prop = new Prop();
      // Returns a reference to the live list
      List<Element> any = prop.getAny();
      for (QName entry : removeProps)
      {
        Element element = SardineUtil.createElement(entry);
        any.add(element);
      }
      remove.setProp(prop);
    }
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    Multistatus multistatus = this.execute(entity, new MultiStatusResponseHandler());
    List<Response> responses = multistatus.getResponse();
    List<DavResource> resources = new ArrayList<DavResource>(responses.size());
View Full Code Here

Examples of com.googlecode.sardine.model.Remove

      }
      set.setProp(prop);
    }
    // Remove properties
    {
      Remove remove = new Remove();
      body.getRemoveOrSet().add(remove);
      Prop prop = new Prop();
      // Returns a reference to the live list
      List<Element> any = prop.getAny();
      for (QName entry : removeProps)
      {
        Element element = SardineUtil.createElement(entry);
        any.add(element);
      }
      remove.setProp(prop);
    }
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    Multistatus multistatus = this.execute(entity, new MultiStatusResponseHandler());
    List<Response> responses = multistatus.getResponse();
    List<DavResource> resources = new ArrayList<DavResource>(responses.size());
View Full Code Here

Examples of com.ponysdk.core.instruction.Remove

    @Override
    public boolean remove(final PWidget w) {
        if (w.getParent() != this) return false;
        orphan(w);
        if (getChildren().remove(w)) {
            final Remove remove = new Remove(w.getID(), getID());
            Txn.get().getTxnContext().save(remove);
            return true;
        } else {
            return false;
        }
View Full Code Here

Examples of fr.inra.lipm.jezlucene.action.Remove

            final Search searcher = new Search();
            main.parseParameters(searcher, parameters);
            System.out.println(searcher.search());
        }
        else if (args[0].equalsIgnoreCase("remove")) {
            final Remove remove = new Remove();
            main.parseParameters(remove, parameters);
            remove.remove();
        }
        else if (args[0].equalsIgnoreCase("test")) {
            final File dir = new File("/home/llegrand/Documents/personnel/Dropbox/Camera Uploads");
            for (final File file : dir.listFiles()) {
                final org.apache.tika.parser.Parser parser = new AutoDetectParser();
View Full Code Here

Examples of javax.ejb.Remove

        // Now, analyze each interceptors found on methods.
        for (EasyBeansEjbJarMethodMetadata methodAnnotationMetaData
                : classAnnotationMetadata.getMethodMetadataCollection()) {

            // Set global interceptors for a given method (ie : Remove)
            Remove remove = methodAnnotationMetaData.getJRemove();
            if (remove != null) {
                List<JClassInterceptor> easyBeansMethodGlobalInterceptors = new ArrayList<JClassInterceptor>();
                String classType = null;
                // choose right interceptor class
                if (remove.retainIfException()) {
                    classType = Type.getInternalName(RemoveOnlyWithoutExceptionInterceptor.class);
                } else {
                    classType = Type.getInternalName(RemoveAlwaysInterceptor.class);
                }
                easyBeansMethodGlobalInterceptors.add(new JClassInterceptor(classType, EASYBEANS_INTERCEPTOR));
View Full Code Here

Examples of javax.ejb.Remove

    out.println("isValidFinally = isValid;");
    out.popDepth();
    out.println("} finally {");
    out.pushDepth();
   
    Remove remove = getMethod().getAnnotation(Remove.class);

    if (remove != null) {
      boolean isRetainIfException= remove.retainIfException();
   
      if (isRetainIfException) {
        out.println("if (isValid)");
        out.println("  __caucho_destroy(null);");
      }
View Full Code Here

Examples of javax.ejb.Remove

                Map<NamedMethod,RemoveMethod> declaredRemoveMethods = new HashMap<NamedMethod,RemoveMethod>();
                for (RemoveMethod removeMethod : session.getRemoveMethod()) {
                    declaredRemoveMethods.put(removeMethod.getBeanMethod(), removeMethod);
                }
                for (Method method : removeMethods) {
                    Remove remove = method.getAnnotation(Remove.class);
                    RemoveMethod removeMethod = new RemoveMethod(method, remove.retainIfException());

                    RemoveMethod declaredRemoveMethod = declaredRemoveMethods.get(removeMethod.getBeanMethod());

                    if (declaredRemoveMethod == null) {
                        session.getRemoveMethod().add(removeMethod);
                    } else if (!declaredRemoveMethod.isExplicitlySet()){
                        declaredRemoveMethod.setRetainIfException(remove.retainIfException());
                    }
                }
            }
        }
View Full Code Here

Examples of javax.ejb.Remove

        // Get all the public methods of the bean class and super class
        Method[] methods = beanClass.getMethods();

        // Search for methods annotated with @Remove
        for (Method method : methods) {
            Remove annotation = method.getAnnotation(Remove.class);
            if (annotation != null) {
                // Get the corresponding method into the bean interface
                Method interfaceMethod;
                try {
                    interfaceMethod = beanInterface.getMethod(method.getName(), method
View Full Code Here

Examples of javax.ejb.Remove

                Map<NamedMethod, RemoveMethod> declaredRemoveMethods = new HashMap<NamedMethod, RemoveMethod>();
                for (RemoveMethod removeMethod : session.getRemoveMethod()) {
                    declaredRemoveMethods.put(removeMethod.getBeanMethod(), removeMethod);
                }
                for (Annotated<Method> method : removeMethods) {
                    Remove remove = method.getAnnotation(Remove.class);
                    RemoveMethod removeMethod = new RemoveMethod(method.get(), remove.retainIfException());

                    RemoveMethod declaredRemoveMethod = declaredRemoveMethods.get(removeMethod.getBeanMethod());

                    if (declaredRemoveMethod == null) {
                        session.getRemoveMethod().add(removeMethod);
                    } else if (!declaredRemoveMethod.isExplicitlySet()) {
                        declaredRemoveMethod.setRetainIfException(remove.retainIfException());
                    }
                }
            }
        }
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.