|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clazzes.jdbc2xml.sql.SimpleSqlCommand
public class SimpleSqlCommand
this is a simple SQL command, which performs SQL upadte queries using
Statement.executeUpdate(String).
| Constructor Summary | |
|---|---|
SimpleSqlCommand(java.lang.String performSql,
java.lang.String rollbackSql)
|
|
| Method Summary | |
|---|---|
void |
cleanupOnCommit(java.sql.Connection connection)
Cleanup resources kept by this command, if the transaction is committed. |
java.lang.String |
getPerformSql()
|
java.lang.String |
getRollbackSql()
|
void |
perform(java.sql.Connection connection)
Perform an atomic SQL command. |
void |
rollback(java.sql.Connection connection)
Roll back an atomic SQL command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSqlCommand(java.lang.String performSql,
java.lang.String rollbackSql)
performSql - The sql statement to perform the change.rollbackSql - The sql statement to roll back the change.| Method Detail |
|---|
public void perform(java.sql.Connection connection)
throws java.sql.SQLException
SqlCommand
perform in interface SqlCommandconnection - A JDBC connection on which to perform queries.
java.sql.SQLException - Upon database errors.
public void rollback(java.sql.Connection connection)
throws java.sql.SQLException
SqlCommand
rollback in interface SqlCommandconnection - A JDBC connection on which to perform queries.
java.sql.SQLException - Upon database errors or when a rollback is
not supported.public java.lang.String getPerformSql()
public java.lang.String getRollbackSql()
public void cleanupOnCommit(java.sql.Connection connection)
throws java.sql.SQLException
SqlCommand
cleanupOnCommit in interface SqlCommandjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||