All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----powersoft.jcm.db.DbUtil
Notes: This method simply calls Debug#setGroupLog with 'database' as the parameter.
public DbUtil()
public static void connectTransaction(Transaction trans, String name)
Notes: This method calls the Transaction.connect method of the transaction object and throws a runtime exception if the connection fails. It also registers the object with the given name in an internal table, so that a subsequent call to #createQuery knows which transaction object the query should be connected to.
public static void createQuery(Query query, String transName)
Notes: This method looks up the transaction object that has been previously registered by #connectTransaction. It then uses the transaction object to create the query. If no transaction objects has been registered with the name or if the Query#create returns false, a runtime exception will be thrown.
public static void autoOpenQuery(Query query)
Notes: This method calls Query#open and then Query#moveNext.
public static boolean getLog()
Notes: This method simply calls Debug#getGroupLog with 'database' as the parameter.
true
if debug messages are output to the
debug log stream; false
othewise.
public static void setLog(boolean log)
Notes: This method simply calls Debug#setGroupLog with 'database' as the parameter.
true
, debug messages are output to the
debug log. If false
, debug message are not output to
the debug log.
All Packages Class Hierarchy This Package Previous Next Index