Skip to content

Commit

Permalink
SpringDataJdbc: Callback
Browse files Browse the repository at this point in the history
  • Loading branch information
currenjin committed Dec 3, 2024
1 parent a1bd496 commit 46ee934
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.currenjin.jdbc.callback;

import java.sql.Connection;
import java.sql.SQLException;

public interface ConnectionCallback<T> {
T doInConnection(Connection connection) throws SQLException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.currenjin.jdbc.callback;

import java.sql.ResultSet;
import java.sql.SQLException;

public interface ResultSetCallback<T> {
T doInResultSet(ResultSet rs) throws SQLException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.currenjin.jdbc.callback;

import java.sql.SQLException;
import java.sql.Statement;

public interface StatementCallback<T> {
T doInStatement(Statement statement) throws SQLException;
}

0 comments on commit 46ee934

Please sign in to comment.