2930313233343536
broker = brk; try { broker.beginTransaction(); } catch (final Throwable t) { throw new DaoException("Error starting OJB broker transaction. Cause: " + t, t); } }
3738394041424344454647
public void commit() { try { broker.commitTransaction(); } catch (final Throwable t) { throw new DaoException("Error committing OJB broker transaction. Cause: " + t); } finally { if (broker != null) { broker.close(); } }
4950515253545556575859
public void rollback() { try { broker.abortTransaction(); } catch (final Throwable t) { throw new DaoException("Error ending OJB broker transaction. Cause: " + t); } finally { if (broker != null) { broker.close(); } }
5758596061626364
public void flush() { try { getSession().flush(); } catch (HibernateException e) { throw new DaoException("Error occurred in a Hibernate DAO. Cause: " + e, e); } }
7778798081828384
public Connection connection() { try { return getSession().connection(); } catch (HibernateException e) { throw new DaoException("Error occurred in a Hibernate DAO. Cause: " + e, e); } }
8586878889909192
public Connection disconnect() { try { return getSession().disconnect(); } catch (HibernateException e) { throw new DaoException("Error occurred in a Hibernate DAO. Cause: " + e, e); } }
93949596979899100
public void reconnect() { try { getSession().reconnect(); } catch (HibernateException e) { throw new DaoException("Error occurred in a Hibernate DAO. Cause: " + e, e); } }
101102103104105106107108
public void reconnect(Connection connection) { try { getSession().reconnect(connection); } catch (HibernateException e) { throw new DaoException(e); } }
109110111112113114115116
public Connection close() { try { return getSession().close(); } catch (HibernateException e) { throw new DaoException("Error occurred in a Hibernate DAO. Cause: " + e, e); } }
117118119120121122123124
public void cancelQuery() { try { getSession().cancelQuery(); } catch (HibernateException e) { throw new DaoException("Error occurred in a Hibernate DAO. Cause: " + e, e); } }