Package net.citizensnpcs.api.util
Interface ResultSetHandler<T>
- Type Parameters:
T
- the target type the input ResultSet will be converted to.
public interface ResultSetHandler<T>
Implementations of this interface convert ResultSets into other objects.
-
Method Summary
-
Method Details
-
handle
Turn theResultSet
into an Object.- Parameters:
rs
- TheResultSet
to handle. It has not been touched before being passed to this method.- Returns:
- An Object initialized with
ResultSet
data. It is legal for implementations to returnnull
if theResultSet
contained 0 rows. - Throws:
SQLException
- if a database access error occurs
-