net.sf.fikin.sql.core
Class AbstractOutput

java.lang.Object
  extended by net.sf.fikin.sql.SQLPipeElement
      extended by net.sf.fikin.sql.core.AbstractOutput
Direct Known Subclasses:
AbstractEnabledOutput

public abstract class AbstractOutput
extends SQLPipeElement

A pipe element having an outputing member.

Provide with setter and getter methods for all log-oriented pipe elements.

created on Dec 16, 2006

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

Constructor Summary
AbstractOutput()
          create an element with empty output
AbstractOutput(java.io.PrintStream out)
          create an element with given output
AbstractOutput(java.io.PrintWriter out)
          create an element with given output
 
Method Summary
protected  java.lang.String getBaseClassName()
          set the base classname to this class
 java.io.PrintWriter getOut()
          get output writer object
 void setOut(java.io.File output)
          set output to print sql commands to
 void setOut(java.io.OutputStream out)
          set output to print sql commands to
 void setOut(java.io.PrintStream out)
          set output to print sql commands to
 void setOut(java.io.PrintWriter out)
          set output to print sql commands to
 void setOutFileName(java.lang.String fileName)
          set output to print sql commands to
 
Methods inherited from class net.sf.fikin.sql.SQLPipeElement
execute, 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

AbstractOutput

public AbstractOutput()
create an element with empty output


AbstractOutput

public AbstractOutput(java.io.PrintWriter out)
create an element with given output


AbstractOutput

public AbstractOutput(java.io.PrintStream out)
create an element with given output

Method Detail

getOut

public java.io.PrintWriter getOut()
get output writer object

Returns:
output to print sql commands to

setOut

public void setOut(java.io.PrintWriter out)
set output to print sql commands to

Parameters:
out -

setOut

public void setOut(java.io.PrintStream out)
set output to print sql commands to

Parameters:
out -

setOut

public void setOut(java.io.OutputStream out)
set output to print sql commands to

Parameters:
out -

setOut

public void setOut(java.io.File output)
            throws java.io.FileNotFoundException
set output to print sql commands to

Parameters:
output - file
Throws:
java.io.FileNotFoundException

setOutFileName

public void setOutFileName(java.lang.String fileName)
                    throws java.io.FileNotFoundException
set output to print sql commands to

Parameters:
fileName - output file
Throws:
java.io.FileNotFoundException

getBaseClassName

protected java.lang.String getBaseClassName()
set the base classname to this class

Overrides:
getBaseClassName in class SQLPipeElement
Returns:
this class name


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