org.alfresco.repo.domain.hibernate
Class HibernateHelper

java.lang.Object
  extended by org.alfresco.repo.domain.hibernate.HibernateHelper

public class HibernateHelper
extends java.lang.Object

Helper methods related to Hibernate


Constructor Summary
HibernateHelper()
           
 
Method Summary
static int deleteDbAccessControlEntries(org.hibernate.Session session, org.hibernate.Query query)
          Helper method to scroll through the results of a query and delete all the resulting access control entries, performing batch flushes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateHelper

public HibernateHelper()
Method Detail

deleteDbAccessControlEntries

public static int deleteDbAccessControlEntries(org.hibernate.Session session,
                                               org.hibernate.Query query)
Helper method to scroll through the results of a query and delete all the resulting access control entries, performing batch flushes.

Parameters:
session - the session to use for the deletions
query - the query with all parameters set and that will return access control entry instances
Returns:
Returns the number of entries deleted


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.