Package org.openrdf.sail

Examples of org.openrdf.sail.SailConnection.rollback()


                    SailConnection sc = c.getSailConnection();
                    try {
                        sc.begin();
                        SparqlTools.executeQuery(GOLD_TWEETS_QUERY, sc, System.out, 100, SparqlTools.SparqlResultFormat.JSON);
                    } finally {
                        sc.rollback();
                        sc.close();
                    }
                    //queryAndWriteJSON(ISWC_STATEMENTS_QUERY, sc, System.out);
                } finally {
                    c.close();
View Full Code Here


                            client.processSampleStream(rLogger, deleter);
                        } finally {
                            persister.close();
                        }
                    } finally {
                        c.rollback();
                        c.close();
                    }
                } finally {
                    store.shutDown();
                }
View Full Code Here

                        is.close();
                    }
                    sc.commit();
    sc.begin();
                } finally {
                    sc.rollback();
                    sc.close();
                }
            } catch (Throwable t) {
                LOGGER.severe("exception occurred while loading: " + t);
                t.printStackTrace(System.err);
View Full Code Here

                    }
                } finally {
                    iter.close();
                }
            } finally {
                sc.rollback();
                sc.close();
            }
        } finally {
            w.close();
        }
View Full Code Here

                            }
                        } finally {
                            persister.close();
                        }
                    } finally {
                        c.rollback();
                        c.close();
                    }
                } finally {
                    store.shutDown();
                }
View Full Code Here

        SailConnection sc = sail.getConnection();
        try {
            sc.removeStatements(RDF.TYPE, null, null, (URI) null);
            sc.commit();
        } finally {
            sc.rollback();
            sc.close();
        }

        sail.shutDown();
        baseSail.shutDown();
View Full Code Here

                            }
                        };

                        stressTest(h, 1000);
                    } finally {
                        tc.rollback();
                        tc.close();
                    }
                } finally {
                    store.shutDown();
                }
View Full Code Here

                        c.removeStatements(null, null, null, uriOf(g));
                    }

                    c.commit();
                } finally {
                    c.rollback();
                    c.close();
                }
            } catch (SailException e) {
                throw new HandlerException(e);
            }
View Full Code Here

        try {
            sc.begin();
            int count = countStatements(sc, null);
            assertEquals(1, count);
        } finally {
            sc.rollback();
            sc.close();
        }
    }

    public void testAddFromInputStream() throws Exception {
View Full Code Here

            }

            inserter.endRDF();
            sc.commit();
        } finally {
            sc.rollback();
            sc.close();
        }
    }

    private void add(final Sail sail,
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.