Interface ExecutableStatement
-
- All Superinterfaces:
ExecutableSearch
public interface ExecutableStatement extends ExecutableSearch
A statement that can be executed against a database to fetch results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResultSetexecute(Connection connection)Executes the statement and returns the results.-
Methods inherited from interface net.shibboleth.idp.attribute.resolver.dc.ExecutableSearch
getResultCacheKey
-
-
-
-
Method Detail
-
execute
@Nonnull ResultSet execute(@Nonnull Connection connection) throws SQLException
Executes the statement and returns the results. This method MUST NOT close the givenConnection.- Parameters:
connection- ready-to-use connection to the database- Returns:
- the result of the executed statement
- Throws:
SQLException- thrown if there is a problem executing the statement
-
-