org.sqlproc.engine
Interface SqlControl
- All Known Implementing Classes:
- SqlStandardControl
public interface SqlControl
The compound parameters controlling the META SQL execution.
For more info please see the Tutorials.
- Author:
- Vladimir Hudec
|
Method Summary |
int |
getFirstResult()
Returns the first SQL execution output row to be returned in the case we need to skip some rows in the result
set. |
int |
getMaxResults()
Returns the max number of SQL execution output rows, which can be returned in the result list. |
int |
getMaxTimeout()
Returns the max SQL execution time. |
Map<String,Class<?>> |
getMoreResultClasses()
Returns more result classes used for the return values, like the collections classes or the collections items. |
SqlOrder |
getOrder()
Returns the ordering directive list. |
Object |
getStaticInputValues()
Returns the object used for the SQL statement static input values. |
getStaticInputValues
Object getStaticInputValues()
- Returns the object used for the SQL statement static input values. The class of this object is also named as the
input class or the static parameters class. The exact class type isn't important, all the parameters injected
into the SQL query command are picked up using the reflection API. Compared to dynamicInputValues input
parameters, parameters in this class should't be produced by an end user to prevent SQL injection threat!
- Returns:
- the object used for the SQL statement static input values
getMaxTimeout
int getMaxTimeout()
- Returns the max SQL execution time. This parameter can help to protect production system against ineffective SQL
query commands. The value is in milliseconds.
- Returns:
- the max SQL execution time
getFirstResult
int getFirstResult()
- Returns the first SQL execution output row to be returned in the case we need to skip some rows in the result
set. The primary usage is to support the pagination.
- Returns:
- the first SQL execution output row
getMaxResults
int getMaxResults()
- Returns the max number of SQL execution output rows, which can be returned in the result list. The primary usage
is to support the pagination.
- Returns:
- the max number of SQL execution output rows
getOrder
SqlOrder getOrder()
- Returns the ordering directive list. Using the class SqlOrder the ordering rules can be chained. Every ordering
rule in this chain should correspond to one META SQL ordering statement.
- Returns:
- the ordering directive list
getMoreResultClasses
Map<String,Class<?>> getMoreResultClasses()
- Returns more result classes used for the return values, like the collections classes or the collections items.
They are used mainly for the one-to-one, one-to-many and many-to-many associations.
- Returns:
- more result classes used for the return values
Copyright © 2013. All Rights Reserved.