Interface Query
- All Superinterfaces:
org.cactoos.Text
public interface Query
extends org.cactoos.Text
Query.
There is no thread-safety guarantee.
- Since:
- 0.1
-
Method Summary
Modifier and TypeMethodDescriptionnamed()
Return a named query string.params()
Return the Query params.prepared
(Connection connection) Create a PreparedStatement.Methods inherited from interface org.cactoos.Text
asString
-
Method Details
-
prepared
Create a PreparedStatement.- Parameters:
connection
- A connection to the DataSource- Returns:
- A PreparedStatement
- Throws:
Exception
- If fails
-
params
Params params()Return the Query params.- Returns:
- The query parameters
-
named
String named()Return a named query string.- Returns:
- A named query string
-