org.jpox.util
Class SQLWarnings

java.lang.Object
  extended byorg.jpox.util.SQLWarnings

public class SQLWarnings
extends java.lang.Object

Utilities for handling SQL Warnings

Version:
$Revision: 1.2 $

Constructor Summary
SQLWarnings()
           
 
Method Summary
static void log(java.sql.Connection conn)
          Utility to log all warning for the specified Connection.
static void log(java.sql.ResultSet rs)
          Utility to log all warning for the specified ResultSet.
static void log(java.sql.SQLWarning warning)
          Logs SQL warnings to the common log.
static void log(java.sql.Statement stmt)
          Utility to log all warning for the specified Statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLWarnings

public SQLWarnings()
Method Detail

log

public static void log(java.sql.SQLWarning warning)
Logs SQL warnings to the common log. Should be called after any operation on a JDBC Statement or ResultSet object.

Parameters:
warning - the value returned from getWarnings().

log

public static void log(java.sql.Connection conn)
Utility to log all warning for the specified Connection.

Parameters:
conn - The connection to the datastore

log

public static void log(java.sql.Statement stmt)
Utility to log all warning for the specified Statement.

Parameters:
stmt - The statement

log

public static void log(java.sql.ResultSet rs)
Utility to log all warning for the specified ResultSet.

Parameters:
rs - The ResultSet


Copyright © -2007 . All Rights Reserved.