public class SqlStandardControl extends Object implements SqlControl
For more info please see the Tutorials.
Modifier and Type | Field and Description |
---|---|
private Map<String,Object> |
features
The optional features.
|
private int |
firstResult
The first SQL execution output row to be returned in the case we need to skip some rows in the result set.
|
private int |
maxResults
The max number of SQL execution output rows, which can be returned in the result list.
|
private int |
maxTimeout
The max SQL execution time.
|
private Map<String,Class<?>> |
moreResultClasses
More result classes used for the return values, like the collections classes or the collections items.
|
private SqlOrder |
order
The ordering directive list.
|
private Object |
staticInputValues
The object used for the SQL statement dynamic input values.
|
Constructor and Description |
---|
SqlStandardControl()
Standard constructor.
|
SqlStandardControl(SqlControl sqlControl)
Merging constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getFeatures()
Returns the optional features.
|
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.
|
SqlStandardControl |
setAscOrder(int order)
Sets the ordering directive list.
|
SqlStandardControl |
setDescOrder(int order)
Sets the ordering directive list.
|
void |
setFeature(String name,
Object value)
Sets the optional feature in the stament's execution scope.
|
void |
setFeatures(Map<String,Object> features)
Sets the optional features.
|
SqlStandardControl |
setFirstResult(int firstResult)
Sets the first SQL execution output row to be returned in the case we need to skip some rows in the result set.
|
SqlStandardControl |
setMaxResults(int maxResults)
Sets the max number of SQL execution output rows, which can be returned in the result list.
|
SqlStandardControl |
setMaxTimeout(int maxTimeout)
Sets the max SQL execution time.
|
SqlStandardControl |
setMoreResultClasses(Map<String,Class<?>> moreResultClasses)
Sets more result classes used for the return values, like the collections classes or the collections items.
|
SqlStandardControl |
setOrder(SqlOrder order)
Sets the ordering directive list.
|
SqlStandardControl |
setStaticInputValues(Object staticInputValues)
Sets the object used for the SQL statement static input values.
|
String |
toString() |
void |
unsetFeatures(Set<String> names)
Clears the optional features in the stament's or execution scope.
|
private Object staticInputValues
private int maxTimeout
private int firstResult
private int maxResults
private SqlOrder order
private Map<String,Class<?>> moreResultClasses
public SqlStandardControl()
public SqlStandardControl(SqlControl sqlControl)
public Object getStaticInputValues()
getStaticInputValues
in interface SqlControl
public SqlStandardControl setStaticInputValues(Object staticInputValues)
staticInputValues
- the object used for the SQL statement static input valuespublic int getMaxTimeout()
getMaxTimeout
in interface SqlControl
public SqlStandardControl setMaxTimeout(int maxTimeout)
maxTimeout
- the max SQL execution timepublic int getFirstResult()
getFirstResult
in interface SqlControl
public SqlStandardControl setFirstResult(int firstResult)
firstResult
- the first SQL execution output rowpublic int getMaxResults()
getMaxResults
in interface SqlControl
public SqlStandardControl setMaxResults(int maxResults)
maxResults
- the max number of SQL execution output rowspublic SqlOrder getOrder()
getOrder
in interface SqlControl
public SqlStandardControl setOrder(SqlOrder order)
order
- the ordering directive listpublic SqlStandardControl setAscOrder(int order)
order
- the ordering directivepublic SqlStandardControl setDescOrder(int order)
order
- the ordering directivepublic Map<String,Class<?>> getMoreResultClasses()
getMoreResultClasses
in interface SqlControl
public SqlStandardControl setMoreResultClasses(Map<String,Class<?>> moreResultClasses)
moreResultClasses
- more result classes used for the return valuespublic Map<String,Object> getFeatures()
getFeatures
in interface SqlControl
public void setFeatures(Map<String,Object> features)
features
- the optional featurespublic void setFeature(String name, Object value)
name
- the name of the optional featurevalue
- the value of the optional featurepublic void unsetFeatures(Set<String> names)
names
- the names of the optional featuresCopyright © 2014. All Rights Reserved.