|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fikin.sql.SQLPipeElement net.sf.fikin.sql.oracle.SetServerOut
public class SetServerOut
A pipe element enabling Oracle's DBMS_OUTPUT package
It uses JdbcConnection
to create a CallableStatement.
created on Dec 16, 2006
Constructor Summary | |
---|---|
SetServerOut()
create an dbms_output mode setting pipe element by default it is enabled |
|
SetServerOut(boolean echoOn)
create an dbms_output mode setting pipe element |
Method Summary | |
---|---|
protected java.sql.CallableStatement |
createStmt(java.lang.String sql)
instantiates a CallableStatement with given sql command |
void |
execute(java.lang.String cmd)
switch on/off the server out (oracle's dbms_output) |
boolean |
getServerOutOn()
is server out (dbms_output) on |
void |
setServerOutOn(boolean outOn)
set echo on/off |
protected void |
switchItOff()
disable the server out via JDBC CallableStatement |
protected void |
switchItOn()
enable the server out via JDBC CallableStatement |
Methods inherited from class net.sf.fikin.sql.SQLPipeElement |
---|
getBaseClassName, 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 |
---|
public SetServerOut()
public SetServerOut(boolean echoOn)
Method Detail |
---|
public boolean getServerOutOn()
public void setServerOutOn(boolean outOn)
outOn
- public void execute(java.lang.String cmd) throws java.sql.SQLException
execute
in class SQLPipeElement
cmd
- to execute
java.sql.SQLException
- in case of errorprotected void switchItOn() throws java.sql.SQLException
java.sql.SQLException
protected void switchItOff() throws java.sql.SQLException
java.sql.SQLException
protected java.sql.CallableStatement createStmt(java.lang.String sql) throws java.sql.SQLException
sql
-
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |