|
||||||||||
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.ContinueOnError
public class ContinueOnError
A pipe element governing whether to continue execution on SQLException or abort.
All elements before this one in the pipe, will not receive any exeception
(if getContinueOnError()
is set to true.
created on Dec 16, 2006
Constructor Summary | |
---|---|
ContinueOnError()
create an element catching all exceptions and ignoring them |
|
ContinueOnError(boolean catchErrors)
create an element whit defualt exceptions handling based on catchErrors |
Method Summary | |
---|---|
void |
execute(java.lang.String cmd)
catch the exception (if any) raised by next in the pipe elements and ignored it if getContinueOnError() is set to true |
boolean |
getContinueOnError()
get current flag, if true all exceptions are ignored, otherwise false |
void |
setContinueOnError(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 ContinueOnError()
public ContinueOnError(boolean catchErrors)
catchErrors
- if true all exceptions will be silenced, if false they
will be passed alog the calling pipe elementsMethod Detail |
---|
public boolean getContinueOnError()
public void setContinueOnError(boolean flg)
public void execute(java.lang.String cmd) throws java.sql.SQLException
getContinueOnError()
is set to 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 |