com.atlassian.bamboo.util
Class BambooHibernateUtils

java.lang.Object
  extended by com.atlassian.bamboo.util.BambooHibernateUtils

public class BambooHibernateUtils
extends java.lang.Object


Field Summary
static java.util.concurrent.atomic.AtomicInteger counter
           
 
Method Summary
static void disableSqlLogging()
          For debugging only
static void enableSqlLogging()
          For debugging only
static java.util.List listWithSqlLogged(net.sf.hibernate.Criteria criteria, java.lang.String message)
          For debugging only
static
<T> T
withSqlLogged(java.util.concurrent.Callable<T> callable, java.lang.String message)
          For debugging only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

public static final java.util.concurrent.atomic.AtomicInteger counter
Method Detail

enableSqlLogging

public static void enableSqlLogging()
For debugging only


disableSqlLogging

public static void disableSqlLogging()
For debugging only


withSqlLogged

public static <T> T withSqlLogged(@NotNull
                                  java.util.concurrent.Callable<T> callable,
                                  @Nullable
                                  java.lang.String message)
                       throws net.sf.hibernate.HibernateException
For debugging only

Throws:
net.sf.hibernate.HibernateException

listWithSqlLogged

public static java.util.List listWithSqlLogged(@NotNull
                                               net.sf.hibernate.Criteria criteria,
                                               @Nullable
                                               java.lang.String message)
                                        throws net.sf.hibernate.HibernateException
For debugging only

Throws:
net.sf.hibernate.HibernateException


Copyright © 2012 Atlassian. All Rights Reserved.