Class HibernateMisc

java.lang.Object
edu.internet2.middleware.grouper.hibernate.HibernateMisc

public class HibernateMisc extends Object
Version:
$Id: HibernateMisc.java,v 1.2 2008-06-21 04:16:13 mchyzer Exp $
  • Constructor Summary

    Constructors
    Constructor
    Description
    HibernateMisc(HibernateSession theHibernateSession)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    copyFieldsTo(edu.internet2.middleware.grouper.hibernate.ByQueryBase byQueryBase)
    copy fields from this to the argument
    void
    Flush the underlying hibernate session (sync the object model with the DB).
     
    boolean
    if we should ignore hooks
    static void
    main(String[] args)
     
    protected edu.internet2.middleware.grouper.hibernate.ByQueryBase
    set(HibernateSession theHibernateSession2)
    set the hibernate session to re-use, or null for a new one byCriteriaStatic().set(hibernateSession2).select(...)
    edu.internet2.middleware.grouper.hibernate.ByQueryBase
    setIgnoreHooks(boolean theIgnoreHooks)
    if we should ignore hooks

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HibernateMisc

      public HibernateMisc(HibernateSession theHibernateSession)
      Parameters:
      theHibernateSession -
  • Method Details

    • flush

      public void flush()
      Flush the underlying hibernate session (sync the object model with the DB). This doesnt commit or anything, it just sends the bySql across
    • setIgnoreHooks

      public edu.internet2.middleware.grouper.hibernate.ByQueryBase setIgnoreHooks(boolean theIgnoreHooks)
      if we should ignore hooks
      Parameters:
      theIgnoreHooks -
      Returns:
      if we should ignore hooks
    • isIgnoreHooks

      public boolean isIgnoreHooks()
      if we should ignore hooks
      Returns:
      if we should ignore hooks
    • copyFieldsTo

      protected void copyFieldsTo(edu.internet2.middleware.grouper.hibernate.ByQueryBase byQueryBase)
      copy fields from this to the argument
      Parameters:
      byQueryBase -
    • getHibernateSession

      protected HibernateSession getHibernateSession()
      Returns:
      Returns the hibernateSession.
    • set

      protected edu.internet2.middleware.grouper.hibernate.ByQueryBase set(HibernateSession theHibernateSession2)
      set the hibernate session to re-use, or null for a new one byCriteriaStatic().set(hibernateSession2).select(...)
      Parameters:
      theHibernateSession2 - is the session to reuse
      Returns:
      this for chaining
    • main

      public static void main(String[] args)
      Parameters:
      args -