|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sqlproc.engine.impl.SqlStandardControl
public class SqlStandardControl
The compound parameters controlling the META SQL execution.
For more info please see the Tutorials.
Field Summary | |
---|---|
private Map<String,Object> |
features
The optional features. |
private int |
fetchSize
Returns the fetch size of SQL execution output rows, which can be returned in one SQL statement. |
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 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 Summary | |
---|---|
SqlStandardControl()
Standard constructor. |
|
SqlStandardControl(SqlControl sqlControl)
Merging constructor. |
Method Summary | |
---|---|
Map<String,Object> |
getFeatures()
Returns the optional features. |
int |
getFetchSize()
Returns the fetch size of SQL execution output rows, which can be returned in one SQL statement. |
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. |
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 |
setDescOrder(int order)
Sets the ordering directive list. |
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(int fetchSize)
Sets the fetch size of SQL execution output rows, which can be returned in one SQL statement. |
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Object staticInputValues
private int maxTimeout
private int firstResult
private int 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 int fetchSize
Constructor Detail |
---|
public SqlStandardControl()
public SqlStandardControl(SqlControl sqlControl)
Method Detail |
---|
public Object getStaticInputValues()
getStaticInputValues
in interface SqlControl
public SqlStandardControl setStaticInputValues(Object staticInputValues)
staticInputValues
- the object used for the SQL statement static input values
public int getMaxTimeout()
getMaxTimeout
in interface SqlControl
public SqlStandardControl setMaxTimeout(int maxTimeout)
maxTimeout
- the max SQL execution time
public int getFirstResult()
getFirstResult
in interface SqlControl
public SqlStandardControl setFirstResult(int firstResult)
firstResult
- the first SQL execution output row
public int getMaxResults()
getMaxResults
in interface SqlControl
public SqlStandardControl setMaxResults(int maxResults)
maxResults
- the max number of SQL execution output rows
public SqlOrder getOrder()
getOrder
in interface SqlControl
public SqlStandardControl setOrder(SqlOrder order)
order
- the ordering directive list
public SqlStandardControl setAscOrder(int order)
order
- the ordering directive
public SqlStandardControl setDescOrder(int order)
order
- the ordering directive
public Map<String,Class<?>> getMoreResultClasses()
getMoreResultClasses
in interface SqlControl
public SqlStandardControl setMoreResultClasses(Map<String,Class<?>> moreResultClasses)
moreResultClasses
- more result classes used for the return values
public 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 int getFetchSize()
SqlControl
getFetchSize
in interface SqlControl
public SqlStandardControl setFetchSize(int fetchSize)
fetchSize
- the fetch size of SQL execution output rows
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |