Tabnine Logo
RDFUpdateImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
RDFUpdateImpl
in
com.mysema.rdfbean.model

Best Java code snippets using com.mysema.rdfbean.model.RDFUpdateImpl (Showing top 2 results out of 315)

origin: com.mysema.rdf/rdfbean-core

@Override
public void execute() {
  UID[] _from = from.toArray(new UID[from.size()]);
  Block[] _where = where.toArray(new Block[where.size()]);
  List<STMT> added = null;
  List<STMT> removed = null;
  if (!insert.isEmpty()) {
    CloseableIterator<STMT> stmts = new RDFQueryImpl(connection)
        .from(_from).where(_where)
        .construct(insert.toArray(new Block[insert.size()]));
    added = convertStatements(stmts, into);
    // System.err.println("added " + added);
  }
  if (!delete.isEmpty()) {
    CloseableIterator<STMT> stmts = new RDFQueryImpl(connection)
        .from(_from).where(_where)
        .construct(delete.toArray(new Block[delete.size()]));
    removed = convertStatements(stmts, from);
    // System.err.println("removed " + removed);
  }
  connection.update(removed, added);
}
origin: com.mysema.rdf/rdfbean-core

private RDFUpdate update() {
  return new RDFUpdateImpl(connection());
}
com.mysema.rdfbean.modelRDFUpdateImpl

Most used methods

  • <init>
  • convertStatements

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JFileChooser (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for Android Studio
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