Tabnine Logo
CouchDbClient.remove
Code IndexAdd Tabnine to your IDE (free)

How to use
remove
method
in
org.lightcouch.CouchDbClient

Best Java code snippets using org.lightcouch.CouchDbClient.remove (Showing top 7 results out of 315)

origin: org.apache.camel/camel-couchdb

public Response remove(Object doc) {
  return client.remove(doc);
}
origin: streampipes/streampipes-ce

 @Override
 protected Boolean executeCommand(CouchDbClient couchDbClient) {
  try {
   T result = couchDbClient.find(clazz, key);
   couchDbClient.remove(result);
   return true;
  } catch (NoDocumentException e) {
   return false;
  }
 }
}
origin: org.streampipes/streampipes-app-file-export

@DELETE
@Path("/file/{fileName}")
@Override
public Response deleteFile(@PathParam("fileName") String fileName) {
 CouchDbClient couchDbClient = getCouchDbClient();
 JsonObject found = couchDbClient.find(JsonObject.class, fileName);
 couchDbClient.remove(found.get("_id").getAsString(), found.get("_rev").getAsString());
 File file = new File(mainFilePath + fileName);
 file.delete();
 LOG.info("Deleted: " + fileName);
 return Response.ok().build();
}
origin: streampipes/streampipes-ce

@DELETE
@Path("/file/{fileName}")
@Override
public Response deleteFile(@PathParam("fileName") String fileName) {
 CouchDbClient couchDbClient = getCouchDbClient();
 JsonObject found = couchDbClient.find(JsonObject.class, fileName);
 couchDbClient.remove(found.get("_id").getAsString(), found.get("_rev").getAsString());
 File file = new File(mainFilePath + fileName);
 file.delete();
 LOG.info("Deleted: " + fileName);
 return Response.ok().build();
}
origin: streampipes/streampipes-ce

  @Override
  public void deleteAdapterTemplate(String adapterId) {
    AdapterDescription adapterDescription = getAdapterTemplate(adapterId);
    couchDbClientSupplier.get().remove(adapterDescription.getId(), adapterDescription.getRev());
  }
}
origin: streampipes/streampipes-ce

  @Override
  public void deleteAdapter(String adapterId) {

    AdapterDescription adapterDescription = getAdapter(adapterId);
    couchDbClientSupplier.get().remove(adapterDescription.getId(), adapterDescription.getRev());

//        T result = couchDbClient.find(clazz, key);
//        couchDbClient.remove(result);
//        DbCommand<Boolean, AdapterDescription> cmd = new DeleteCommand<>(couchDbClientSupplier, adapterId, AdapterDescription.class);
//        cmd.execute();
//
//        delete(adapterId);
  }
}
origin: streampipes/streampipes-ce

  @Override
  public void deleteVisualization(String pipelineId) {
    try {
      CouchDbClient couchDbClient = couchDbClientSupplier.get();
      List<RunningVisualization> currentVisualizations = getRunningVisualizations();
      for (RunningVisualization viz : currentVisualizations) {
        if (viz.getPipelineId() != null) {
          if (viz.getPipelineId().equals(pipelineId))
            couchDbClient.remove(viz);
        }
      }
      couchDbClient.shutdown();
    } catch (NoDocumentException e) {
      e.printStackTrace();
    }
  }
}
org.lightcouchCouchDbClientremove

Popular methods of CouchDbClient

  • shutdown
  • view
  • find
  • save
  • update
  • <init>
    Constructs a new instance of this class.
  • changes
  • context
  • createConnectionManager
  • createRegistry
  • design
  • getDBUri
  • design,
  • getDBUri,
  • registerInterceptors,
  • setGsonBuilder,
  • validate

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now