|
||||||||||
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.core.PipeCanceler
public class PipeCanceler
A pipe element which can cancel commands if set to true or pass them on to the next in the pipe if set to false.
created on Dec 16, 2006
Constructor Summary | |
---|---|
PipeCanceler()
create an element catching all exceptions and ignoring them |
|
PipeCanceler(boolean cancel)
create an element able to cancel the pipe |
Method Summary | |
---|---|
void |
execute(java.lang.String cmd)
cancel the sql cmd execution if getCancel() is true |
boolean |
getCancel()
get current flag, if true all exceptions are ignored, otherwise false |
void |
setCancel(boolean flg)
|
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 PipeCanceler()
public PipeCanceler(boolean cancel)
cancel
- if true all commands are canceled here, if false
they are passed to next in the pipeMethod Detail |
---|
public boolean getCancel()
public void setCancel(boolean flg)
public void execute(java.lang.String cmd) throws java.sql.SQLException
getCancel()
is true
execute
in class SQLPipeElement
cmd
- to execute
java.sql.SQLException
- in case of error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |