1 /** 2 * Copyright 2014 Internet2 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package edu.internet2.middleware.grouper.hibernate; 17 18 19 20 21 /** 22 * @version $Id: HibernateMisc.java,v 1.2 2008-06-21 04:16:13 mchyzer Exp $ 23 * @author mchyzer 24 */ 25 public class HibernateMisc extends HibernateDelegate { 26 27 /** 28 * @param theHibernateSession 29 */ 30 public HibernateMisc(HibernateSession theHibernateSession) { 31 super(theHibernateSession); 32 } 33 34 /** 35 * Flush the underlying hibernate session (sync the object model with the DB). 36 * This doesnt commit or anything, it just sends the bySql across 37 */ 38 public void flush() { 39 40 HibernateSession.assertNotGrouperReadonly(); 41 42 this.getHibernateSession().getSession().flush(); 43 } 44 45 }