net.sf.fikin.sql.core
Class ShowWarnings

java.lang.Object
  extended by net.sf.fikin.sql.SQLPipeElement
      extended by net.sf.fikin.sql.core.AbstractOutput
          extended by net.sf.fikin.sql.core.AbstractEnabledOutput
              extended by net.sf.fikin.sql.core.ShowWarnings

public class ShowWarnings
extends AbstractEnabledOutput

A pipe element showing warnings after the execution of last sql command

created on Dec 16, 2006

Since:
Version:
$Revision: 1.4 $
Author:
fiykov

Constructor Summary
ShowWarnings(java.io.PrintStream out)
          create an element by default showing all warning from last sql command
ShowWarnings(java.io.PrintStream out, boolean showOn)
          create an showing warnings sql commands pipe element
ShowWarnings(java.io.PrintWriter out)
          create an element by default showing all warning from last sql command
ShowWarnings(java.io.PrintWriter out, boolean showOn)
          create an showing warnings sql commands pipe element
 
Method Summary
 void execute(java.lang.String cmd)
          show JDBC stmt warnings if any after sqlcmd execution
 
Methods inherited from class net.sf.fikin.sql.core.AbstractEnabledOutput
getBaseClassName, getOutOn, setOutOn
 
Methods inherited from class net.sf.fikin.sql.core.AbstractOutput
getOut, setOut, setOut, setOut, setOut, setOutFileName
 
Methods inherited from class net.sf.fikin.sql.SQLPipeElement
getId, getNext, getPipe, setNext, setPipe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowWarnings

public ShowWarnings(java.io.PrintWriter out)
create an element by default showing all warning from last sql command


ShowWarnings

public ShowWarnings(java.io.PrintStream out)
create an element by default showing all warning from last sql command


ShowWarnings

public ShowWarnings(java.io.PrintStream out,
                    boolean showOn)
create an showing warnings sql commands pipe element


ShowWarnings

public ShowWarnings(java.io.PrintWriter out,
                    boolean showOn)
create an showing warnings sql commands pipe element

Method Detail

execute

public void execute(java.lang.String cmd)
             throws java.sql.SQLException
show JDBC stmt warnings if any after sqlcmd execution

Specified by:
execute in class SQLPipeElement
Parameters:
cmd - to execute
Throws:
java.sql.SQLException - in case of error


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.