Package org.exoplatform.services.jcr.storage

Examples of org.exoplatform.services.jcr.storage.WorkspaceStorageConnection.commit()


      {
         con.add(nodeData);
         con.add(ptData);
         con.add(mtData);
         con.add(uuidData);
         con.commit();
      }
      catch (Exception e)
      {
         con.rollback();
         throw e;
View Full Code Here


         Statement smnt = jdbcConn.getJdbcConnection().createStatement();
         log.info("Update container version records: "
            + smnt.executeUpdate("update JCR_" + (dbStructureType.isMultiDatabase() ? "M" : "S") + "CONTAINER set VERSION='1.0'"));
         jdbcConn.getJdbcConnection().commit();

         conn.commit();
      }
      else
      {
         conn.rollback();
View Full Code Here

         Statement smnt = jdbcConn.getJdbcConnection().createStatement();
         log.info("Update container version records: "
            + smnt.executeUpdate("update JCR_" + (dbStructureType.isMultiDatabase() ? "M" : "S") + "CONTAINER set VERSION='1.0'"));
         jdbcConn.getJdbcConnection().commit();

         conn.commit();
      }
      else
      {
         conn.rollback();
View Full Code Here

      {
         con.add(nodeData);
         con.add(ptData, new SimpleChangedSizeHandler());
         con.add(mtData, new SimpleChangedSizeHandler());
         con.add(uuidData, new SimpleChangedSizeHandler());
         con.commit();
      }
      catch (Exception e)
      {
         con.rollback();
         throw e;
View Full Code Here

                  prop =
                     (PropertyData)conn.getItemData(parent, new QPathEntry(Constants.JCR_LOCKOWNER, 0),
                        ItemType.PROPERTY);
                  conn.delete(prop);

                  conn.commit();

                  logComment("Lock has been removed form ITEM table. Node UUID: " + nodeId);
               }
               catch (RepositoryException e)
               {
View Full Code Here

                  prop =
                     (PropertyData)conn.getItemData(parent, new QPathEntry(Constants.JCR_LOCKOWNER, 0),
                        ItemType.PROPERTY);
                  conn.delete(prop);

                  conn.commit();

                  logComment("Lock has been removed form ITEM table. Node UUID: " + nodeId);
               }
               catch (RepositoryException e)
               {
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.