public class SqlStandardControl extends Object implements SqlControl
For more info please see the Tutorials.
Modifier and Type | Field and Description |
---|---|
private Object |
dynamicUpdateValues
The object used for the SQL update statement dynamic input values.
|
private Map<String,Object> |
features
The optional features.
|
private Integer |
fetchSize
Returns the fetch size of SQL execution output rows, which can be returned in one SQL statement.
|
private Integer |
firstResult
The first SQL execution output row to be returned in the case we need to skip some rows in the result set.
|
private Integer |
maxResults
The max number of SQL execution output rows, which can be returned in the result list.
|
private Integer |
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 String |
processingId
The unique ID of the executed statement based on input values combination.
|
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 |
---|---|
Object |
getDynamicUpdateValues()
The object used for the SQL update statement dynamic input values.
|
Map<String,Object> |
getFeatures()
Returns the optional features.
|
Integer |
getFetchSize()
Returns the fetch size of SQL execution output rows, which can be returned in one SQL statement.
|
Integer |
getFirstResult()
Returns the first SQL execution output row to be returned in the case we need to skip some rows in the result
set.
|
Integer |
getMaxResults()
Returns the max number of SQL execution output rows, which can be returned in the result list.
|
Integer |
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.
|
String |
getProcessingId()
Returns the unique ID of the executed statement based on the input values combination.
|
Object |
getStaticInputValues()
Returns the object used for the SQL statement static input values.
|
SqlStandardControl |
setAscOrder(int order)
Sets the ordering directive list.
|
SqlStandardControl |
setAscOrder(String order)
Sets the ordering directive list.
|
SqlStandardControl |
setDescOrder(int order)
Sets the ordering directive list.
|
SqlStandardControl |
setDescOrder(String order)
Sets the ordering directive list.
|
SqlStandardControl |
setDynamicUpdateValues(Object dynamicUpdateValues)
Sets the object used for the SQL update statement dynamic input values.
|
SqlStandardControl |
setFeature(String name,
Object value)
Sets the optional feature in the stament's execution scope.
|
SqlStandardControl |
setFeatures(Map<String,Object> features)
Sets the optional features.
|
SqlStandardControl |
setFetchSize(Integer fetchSize)
Sets the fetch size of SQL execution output rows, which can be returned in one SQL statement.
|
SqlStandardControl |
setFirstResult(Integer 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(Integer maxResults)
Sets the max number of SQL execution output rows, which can be returned in the result list.
|
SqlStandardControl |
setMaxTimeout(Integer 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 |
setProcessingId(String processingId)
Sets the unique ID of the executed statement based on input values combination.
|
SqlStandardControl |
setStaticInputValues(Object staticInputValues)
Sets the object used for the SQL statement static input values.
|
String |
toString() |
SqlStandardControl |
unsetFeatures(Set<String> names)
Clears the optional features in the stament's or execution scope.
|
private Object staticInputValues
private Object dynamicUpdateValues
SqlCrudEngine.update(SqlSession, Object, SqlControl)
holds all input
values.private Integer maxTimeout
private Integer firstResult
private Integer maxResults
private SqlOrder order
private Map<String,Class<?>> moreResultClasses
private Map<String,Object> features
private String processingId
SqlMetaStatement.process(org.sqlproc.engine.impl.SqlMetaStatement.Type, Object, SqlControl, org.sqlproc.engine.SqlEngine)
The generation of the final ANSI SQL statement from the META SQL statement is influenced by the input values
combination. This ID is an indicator of the uniqueness these input values. For more info please see the
tutorials.private Integer fetchSize
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 Object getDynamicUpdateValues()
SqlCrudEngine.update(SqlSession, Object, SqlControl)
holds all input
values.getDynamicUpdateValues
in interface SqlControl
public SqlStandardControl setDynamicUpdateValues(Object dynamicUpdateValues)
SqlCrudEngine.update(SqlSession, Object, SqlControl)
holds all input
values.dynamicUpdateValues
- the object used for the SQL update statement dynamic input values (UPDATE fragment)public Integer getMaxTimeout()
getMaxTimeout
in interface SqlControl
public SqlStandardControl setMaxTimeout(Integer maxTimeout)
maxTimeout
- the max SQL execution timepublic Integer getFirstResult()
getFirstResult
in interface SqlControl
public SqlStandardControl setFirstResult(Integer firstResult)
firstResult
- the first SQL execution output rowpublic Integer getMaxResults()
getMaxResults
in interface SqlControl
public SqlStandardControl setMaxResults(Integer 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 setAscOrder(String order)
order
- the ordering directivepublic SqlStandardControl setDescOrder(int order)
order
- the ordering directivepublic SqlStandardControl setDescOrder(String 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 SqlStandardControl setFeatures(Map<String,Object> features)
features
- the optional featurespublic SqlStandardControl setFeature(String name, Object value)
name
- the name of the optional featurevalue
- the value of the optional featurepublic SqlStandardControl unsetFeatures(Set<String> names)
names
- the names of the optional featurespublic String getProcessingId()
SqlMetaStatement.process(org.sqlproc.engine.impl.SqlMetaStatement.Type, Object, SqlControl, SqlEngine)
The generation of the final ANSI SQL statement from the META SQL statement is influenced by the input values.
This ID is an indicator of the uniqueness these input values. For more info please see the tutorials.getProcessingId
in interface SqlControl
public SqlStandardControl setProcessingId(String processingId)
SqlMetaStatement.process(org.sqlproc.engine.impl.SqlMetaStatement.Type, Object, SqlControl, org.sqlproc.engine.SqlEngine)
The generation of the final ANSI SQL statement from the META SQL statement is influenced by the input values.
This ID is an indicator of the uniqueness these input values. For more info please see the tutorials.processingId
- the unique ID of the executed statement based on input values combinationpublic Integer getFetchSize()
SqlControl
getFetchSize
in interface SqlControl
public SqlStandardControl setFetchSize(Integer fetchSize)
fetchSize
- the fetch size of SQL execution output rowsCopyright © 2015. All rights reserved.