Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.db
Class H2Functions

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctions
      extended by org.nuxeo.ecm.core.storage.sql.db.H2Functions

public class H2Functions
extends EmbeddedFunctions

Functions used as stored procedures for H2.

Author:
Florent Guillaume

Constructor Summary
H2Functions()
           
 
Method Summary
static void clusterInvalidateString(Connection conn, String id, String fragments, int kind)
          Adds an invalidation from this cluster node to the invalidations list.
static ResultSet getAncestorsIds(Connection conn, String idsString)
           
static ResultSet getClusterInvalidationsString(Connection conn)
          Gets the invalidations for this cluster node.
static boolean isAccessAllowedLong(Connection conn, Long id, String principals, String permissions)
           
static boolean isAccessAllowedString(Connection conn, String id, String principals, String permissions)
           
static boolean isInTreeLong(Connection conn, Long id, Long baseId)
           
static boolean isInTreeString(Connection conn, String id, String baseId)
           
static ResultSet upgradeLastContributor(Connection conn)
           
static ResultSet upgradeVersions(Connection conn)
           
 
Methods inherited from class org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctions
isAccessAllowed, isAccessAllowed, isInTree, isInTree, parseFullText, parseWord, split, split
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2Functions

public H2Functions()
Method Detail

isInTreeString

public static boolean isInTreeString(Connection conn,
                                     String id,
                                     String baseId)
                              throws SQLException
Throws:
SQLException

isInTreeLong

public static boolean isInTreeLong(Connection conn,
                                   Long id,
                                   Long baseId)
                            throws SQLException
Throws:
SQLException

isAccessAllowedString

public static boolean isAccessAllowedString(Connection conn,
                                            String id,
                                            String principals,
                                            String permissions)
                                     throws SQLException
Throws:
SQLException

isAccessAllowedLong

public static boolean isAccessAllowedLong(Connection conn,
                                          Long id,
                                          String principals,
                                          String permissions)
                                   throws SQLException
Throws:
SQLException

clusterInvalidateString

public static void clusterInvalidateString(Connection conn,
                                           String id,
                                           String fragments,
                                           int kind)
                                    throws SQLException
Adds an invalidation from this cluster node to the invalidations list.

Throws:
SQLException

getClusterInvalidationsString

public static ResultSet getClusterInvalidationsString(Connection conn)
                                               throws SQLException
Gets the invalidations for this cluster node.

Returns:
a result set with columns id, fragments, kind
Throws:
SQLException

upgradeVersions

public static ResultSet upgradeVersions(Connection conn)
                                 throws SQLException
Throws:
SQLException

upgradeLastContributor

public static ResultSet upgradeLastContributor(Connection conn)
                                        throws SQLException
Throws:
SQLException

getAncestorsIds

public static ResultSet getAncestorsIds(Connection conn,
                                        String idsString)
                                 throws SQLException
Throws:
SQLException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.