Class MaxRows
java.lang.Object
com.github.fabriciofx.cactoos.jdbc.query.MaxRows
- All Implemented Interfaces:
Query
,org.cactoos.Text
Max rows per query.
- Since:
- 0.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
named()
Return a named query string.params()
Return the Query params.prepared
(Connection connection) Create a PreparedStatement.
-
Constructor Details
-
MaxRows
Ctor.- Parameters:
query
- The SQL querymax
- The max number of rows
-
-
Method Details
-
prepared
Description copied from interface:Query
Create a PreparedStatement. -
params
Description copied from interface:Query
Return the Query params. -
named
Description copied from interface:Query
Return a named query string. -
asString
- Specified by:
asString
in interfaceorg.cactoos.Text
- Throws:
Exception
-