public class DBConnection extends Object
| Constructor and Description |
|---|
DBConnection(Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
void |
markAsDirty()
Record the fact that this connection has updated the database (so commit or rollback is required)
|
PreparedStatement |
prepareStatement(String sql) |
void |
rollback() |
DBPreparedStatement |
run(String sql) |
boolean |
wasResolved()
True if the database wasn't updated or a commit or rollback was performed.
|
public DBConnection(Connection connection)
public void commit()
throws SQLException
SQLExceptionpublic void rollback()
throws SQLException
SQLExceptionpublic void markAsDirty()
public boolean wasResolved()
public PreparedStatement prepareStatement(String sql) throws SQLException
SQLExceptionpublic DBPreparedStatement run(String sql) throws SQLException
SQLExceptionCopyright © 2003–2017 Sakai Project. All rights reserved.