Class HibernateMisc
java.lang.Object
edu.internet2.middleware.grouper.hibernate.HibernateMisc
- Version:
- $Id: HibernateMisc.java,v 1.2 2008-06-21 04:16:13 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyFieldsTo(edu.internet2.middleware.grouper.hibernate.ByQueryBase byQueryBase) copy fields from this to the argumentvoidflush()Flush the underlying hibernate session (sync the object model with the DB).protected HibernateSessionbooleanif we should ignore hooksstatic voidprotected edu.internet2.middleware.grouper.hibernate.ByQueryBaseset(HibernateSession theHibernateSession2) set the hibernate session to re-use, or null for a new one byCriteriaStatic().set(hibernateSession2).select(...)edu.internet2.middleware.grouper.hibernate.ByQueryBasesetIgnoreHooks(boolean theIgnoreHooks) if we should ignore hooks
-
Constructor Details
-
HibernateMisc
- 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
- 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
- Parameters:
args-
-