org.skife.jdbi
Interface HandleCallback
public interface HandleCallback
Callback interface to be used with DBI instances a la
dbi.withHandle(new HandleCallback() {
public void withHandle(Handle handle) {
handle.execute("do-stuff");
handle.execute("do-more-stuff");
}
}
Guarantees resources will be closed appropriately
Method Summary |
void |
withHandle(Handle handle)
Will be called by the dbi instance |
withHandle
void withHandle(Handle handle)
throws java.lang.Exception
- Will be called by the dbi instance
- Parameters:
handle
- Live instance
- Throws:
java.lang.Exception
- anything thrown will be re-thrown after reource cleanup