Class H2Functions
- java.lang.Object
- 
- org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctions
- 
- org.nuxeo.ecm.core.storage.sql.db.H2Functions
 
 
- 
 public class H2Functions extends EmbeddedFunctions Functions used as stored procedures for H2.- Author:
- Florent Guillaume
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctionsEmbeddedFunctions.RowInfo
 
- 
 - 
Field Summary- 
Fields inherited from class org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctionsREAD, READ_VERSION
 
- 
 - 
Constructor SummaryConstructors Constructor Description H2Functions()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidclusterInvalidateString(Connection conn, long nodeId, String id, String fragments, int kind)Adds an invalidation from this cluster node to the invalidations list.static ResultSetgetAncestorsIds(Connection conn, String idsString)static ResultSetgetClusterInvalidationsString(Connection conn, long nodeId)Gets the invalidations for this cluster node.protected static StringgetSelectParentIdsByIdsSql(int size)static booleanisAccessAllowed2(Connection conn, String id, String principals, String permissions, boolean disableVersionACL, boolean disableReadVersionPermission)static booleanisAccessAllowedLong(Connection conn, Long id, String principals, String permissions)Deprecated.since 11.3, unusedstatic booleanisAccessAllowedString(Connection conn, String id, String principals, String permissions)Compatibility signature withoutdisableVersionACLordisableReadVersionPermissionparameterstatic booleanisInTreeLong(Connection conn, Long id, Long baseId)Deprecated.since 11.3, unusedstatic booleanisInTreeString(Connection conn, String id, String baseId)static ResultSetupgradeLastContributor(Connection conn)static ResultSetupgradeVersions(Connection conn)- 
Methods inherited from class org.nuxeo.ecm.core.storage.sql.db.EmbeddedFunctionsgetAccess, getRowInfo, isAccessAllowed, isAccessAllowed, isAccessAllowed, isInTree, isInTree, matchesFullText, parseFullText, parseFullText, parseWord, split, split
 
- 
 
- 
- 
- 
Constructor Detail- 
H2Functionspublic H2Functions() 
 
- 
 - 
Method Detail- 
isInTreeStringpublic static boolean isInTreeString(Connection conn, String id, String baseId) throws SQLException - Throws:
- SQLException
 
 - 
isInTreeLong@Deprecated public static boolean isInTreeLong(Connection conn, Long id, Long baseId) throws SQLException Deprecated.since 11.3, unused- Throws:
- SQLException
 
 - 
isAccessAllowedStringpublic static boolean isAccessAllowedString(Connection conn, String id, String principals, String permissions) throws SQLException Compatibility signature withoutdisableVersionACLordisableReadVersionPermissionparameter- Throws:
- SQLException
 
 - 
isAccessAllowed2public static boolean isAccessAllowed2(Connection conn, String id, String principals, String permissions, boolean disableVersionACL, boolean disableReadVersionPermission) throws SQLException - Throws:
- SQLException
- Since:
- 11.3
 
 - 
isAccessAllowedLong@Deprecated public static boolean isAccessAllowedLong(Connection conn, Long id, String principals, String permissions) throws SQLException Deprecated.since 11.3, unused- Throws:
- SQLException
 
 - 
clusterInvalidateStringpublic static void clusterInvalidateString(Connection conn, long nodeId, String id, String fragments, int kind) throws SQLException Adds an invalidation from this cluster node to the invalidations list.- Throws:
- SQLException
 
 - 
getClusterInvalidationsStringpublic static ResultSet getClusterInvalidationsString(Connection conn, long nodeId) throws SQLException Gets the invalidations for this cluster node.- Returns:
- a result set with columns id, fragments, kind
- Throws:
- SQLException
 
 - 
upgradeVersionspublic static ResultSet upgradeVersions(Connection conn) throws SQLException - Throws:
- SQLException
 
 - 
upgradeLastContributorpublic static ResultSet upgradeLastContributor(Connection conn) throws SQLException - Throws:
- SQLException
 
 - 
getAncestorsIdspublic static ResultSet getAncestorsIds(Connection conn, String idsString) throws SQLException - Throws:
- SQLException
 
 - 
getSelectParentIdsByIdsSqlprotected static String getSelectParentIdsByIdsSql(int size) 
 
- 
 
-