|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fikin.sql.SQLPipeElement
net.sf.fikin.sql.core.SetAutocommit
public class SetAutocommit
A pipe element governing autocommit mode.
created on Dec 16, 2006
| Constructor Summary | |
|---|---|
SetAutocommit()
create an element catching all exceptions and ignoring them |
|
SetAutocommit(boolean autoCommitOn)
create an element whit defualt exceptions handling based on catchErrors |
|
| Method Summary | |
|---|---|
void |
execute(java.lang.String cmd)
set on/off JDBC's connection to autocommit |
boolean |
getAutocommit()
get current flag, if true all exceptions are ignored, otherwise false |
void |
setAutocommit(boolean autoCommitOn)
|
| 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 SetAutocommit()
public SetAutocommit(boolean autoCommitOn)
autoCommitOn - if true all exceptions will be silenced, if false they
will be passed alog the calling pipe elements| Method Detail |
|---|
public void execute(java.lang.String cmd)
throws java.sql.SQLException
execute in class SQLPipeElementcmd - to execute
java.sql.SQLException - in case of errorpublic boolean getAutocommit()
public void setAutocommit(boolean autoCommitOn)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||