T - is the type of object that will be returned.public abstract class GcPreparedStatementCallback<T> extends Object
| Constructor and Description |
|---|
GcPreparedStatementCallback(String _query)
Create a callableStatement from the query given.
|
| Modifier and Type | Method and Description |
|---|---|
abstract T |
callback(PreparedStatement preparedStatement)
Get access to the database connection.
|
String |
getQuery() |
public GcPreparedStatementCallback(String _query)
_query - public String getQuery()
public abstract T callback(PreparedStatement preparedStatement) throws SQLException
Get access to the database connection. If no exceptions are thrown, the session will be automatically committed.
preparedStatement - is the connection access.SQLException - is thrown if things go wrong.Copyright © 2020 Internet2. All rights reserved.