Package org.exoplatform.services.jcr.storage

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


                  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


            throw new SQLException("Connection is instance of " + conn);
         }

         repairRow((JDBCStorageConnection)conn, resultSet);

         conn.commit();
      }
      catch (RepositoryException e)
      {
         rollback(conn);
         throw new SQLException(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

            throw new SQLException("Connection is instance of " + conn);
         }

         repairRow((JDBCStorageConnection)conn, resultSet);

         conn.commit();
      }
      catch (RepositoryException e)
      {
         rollback(conn);
         throw new SQLException(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

         new TransientPropertyData(QPath.makeChildPath(rootPath, Constants.JCR_PRIMARYTYPE), "1", 1, PropertyType.NAME,
            Constants.ROOT_UUID, false, vd);

      conn.add(node);
      conn.add(ntProp);
      conn.commit();
      // assertNotNull(root);
      // assertEquals(Constants.ROOT_URI, root.getQPath().getAsString());
      // assertEquals("nt:unstructured",
      // locationFactory.createJCRName(root.getPrimaryTypeName()).getAsString());
   }
View Full Code Here

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

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

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

                  conn.commit();

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

            throw new SQLException("Connection is instance of " + conn.getClass());
         }

         repairRow((JDBCStorageConnection)conn, resultSet);

         conn.commit();
      }
      catch (RepositoryException e)
      {
         rollback(conn);
         throw new SQLException(e);
View Full Code Here

         new TransientPropertyData(QPath.makeChildPath(rootPath, Constants.JCR_PRIMARYTYPE), "1", 1, PropertyType.NAME,
            Constants.ROOT_UUID, false, vd);

      conn.add(node);
      conn.add(ntProp);
      conn.commit();
      // assertNotNull(root);
      // assertEquals(Constants.ROOT_URI, root.getQPath().getAsString());
      // assertEquals("nt:unstructured",
      // locationFactory.createJCRName(root.getPrimaryTypeName()).getAsString());
   }
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.