Examples of begin()


Examples of org.odmg.Transaction.begin()

    protected void setUp() throws Exception
    {
        super.setUp();
        Transaction tx = odmg.newTransaction();
        tx.begin();
        testProductGroup = new ProductGroup();
        testProductGroup.setGroupName("NamedRootsTest_" + System.currentTimeMillis());
        database.makePersistent(testProductGroup);
        tx.commit();
    }
View Full Code Here

Examples of org.omg.CosTransactions.Current.begin()

        try
        {
            Current current = OTSManager.get_current();
            System.out.println("Beginning a User transaction to create account");
            current.begin();
            Account acc = _bank.create_account(name);
            System.out.println("Credit the Account");
            acc.credit(fbalance);
            System.out.println("Attempt to commit the account creation transaction");
            current.commit(false);
View Full Code Here

Examples of org.openbp.server.ProcessFacade.begin()

    ProcessFacade processFacade = processServer.getProcessFacade();
    Object tokenId = "?";

    try
    {
      processFacade.begin();

      TokenContext tc = null;
      tokenId = dataMap.get(KEY_TOKEN_ID);
      if (tokenId == null)
      {
View Full Code Here

Examples of org.openrdf.http.server.helpers.ServerConnection.begin()

      ServerConnection connection = getConnection();

      boolean autoCommit = connection.isAutoCommit();
      if (autoCommit) {
        connection.begin();
      }

      try {
        for (TransactionOperation op : txn) {
          op.execute(connection);
View Full Code Here

Examples of org.openrdf.repository.RepositoryConnection.begin()

    InputStream stream = urlCon.getInputStream();
    try {
      RepositoryConnection repCon = getRepositoryConnection();
      try {
        repCon.begin();
        repCon.clear(context);
        repCon.add(stream, url.toExternalForm(), format, context);
        repCon.commit();
        lastModified.put(url, modified);
      }
View Full Code Here

Examples of org.openrdf.repository.event.InterceptingRepositoryConnection.begin()

     */
    @DELETE
    public Response deleteMetaRemote(@QueryParam("uri") @NotNull String uri) throws UnsupportedEncodingException {
        try {
            InterceptingRepositoryConnection connection = new InterceptingRepositoryConnectionWrapper(sesameService.getRepository(), sesameService.getConnection());
            connection.begin();
            final Resource subject = connection.getValueFactory().createURI(uri);

            try {
                connection.addRepositoryConnectionInterceptor(new ResourceSubjectMetadata(subject));

View Full Code Here

Examples of org.openrdf.repository.event.base.InterceptingRepositoryConnectionWrapper.begin()

     */
    @DELETE
    public Response deleteMetaRemote(@QueryParam("uri") @NotNull String uri) throws UnsupportedEncodingException {
        try {
            InterceptingRepositoryConnection connection = new InterceptingRepositoryConnectionWrapper(sesameService.getRepository(), sesameService.getConnection());
            connection.begin();
            final Resource subject = connection.getValueFactory().createURI(uri);

            try {
                connection.addRepositoryConnectionInterceptor(new ResourceSubjectMetadata(subject));

View Full Code Here

Examples of org.openrdf.repository.sail.SailRepositoryConnection.begin()

     */
    public void load(InputStream inStream, RDFFormat forFileName) throws RDFParseException, IOException {
        try {
            final SailRepositoryConnection con = repository.getConnection();
            try {
                con.begin();

                final Resource[] ctx;
                if (context != null) {
                    ctx = new Resource[] { con.getValueFactory().createURI(context) };
                } else {
View Full Code Here

Examples of org.openrdf.sail.NotifyingSailConnection.begin()

            URI uriC = sail.getValueFactory().createURI("http://example.org/uriC");

            TestListener listener1 = new TestListener(), listener2 = new TestListener();
            NotifyingSailConnection sc = ((NotifyingSail) sail).getConnection();
            try {
                sc.begin();
                sc.clear();
                sc.commit();
                sc.begin();

                // Add a listener and add statements
View Full Code Here

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

    sail.setUser("sesame");
    sail.setPassword("opensesame");
    sail.initialize();
    SailConnection conn = sail.getConnection();
    try {
      conn.begin();
      conn.removeStatements(null, null, null);
      conn.clearNamespaces();
      conn.commit();
    }
    finally {
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.