Interface DatabaseAPI.StatementCommon
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
DatabaseAPI.Query
,DatabaseAPI.Update
- Enclosing interface:
- DatabaseAPI
public static interface DatabaseAPI.StatementCommon extends AutoCloseable
Common shared API between
DatabaseAPI.Query
and DatabaseAPI.Update
. This supports
prepared statements within the general mechanisms of this API.- Author:
- Donal Fellows
-
Method Summary
Modifier and Type Method Description void
close()
Close this statement.List<String>
getParameters()
Get the list of parameters to the statement.
-
Method Details
-
close
void close()Close this statement. This never throws a checked exception. Some database connector may ignore this method.- Specified by:
close
in interfaceAutoCloseable
-
getParameters
Get the list of parameters to the statement. This may be an expensive operation.- Returns:
- List of parameter names. Unnamed parameters may be
mapped as
null
.
-