Class QueryScope.SynchronizedScriptSessionImpl
java.lang.Object
com.illumon.iris.db.tables.select.QueryScope
com.illumon.iris.db.tables.select.QueryScope.SynchronizedScriptSessionImpl
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable
- Enclosing class:
- QueryScope
public static class QueryScope.SynchronizedScriptSessionImpl extends QueryScope
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.tables.select.QueryScope
QueryScope.MissingVariableException, QueryScope.StandaloneImpl, QueryScope.SynchronizedScriptSessionImpl, QueryScope.UnsynchronizedScriptSessionImpl -
Field Summary
Fields inherited from class com.illumon.iris.db.tables.select.QueryScope
CLIENT_HOST_PARAM_NAME, QUERY_NAME_PARAM_NAME -
Method Summary
Modifier and Type Method Description protected <T> Param<T>createParam(String name)Get a Param by name.Set<String>getParamNames()Get all known scope variable names.booleanhasParamName(String name)Check if the scope has the given name.<T> voidputParam(String name, T value)Add a parameter to the scope.<T> TreadParamValue(String name)Get the value of a given scope parameter by name.<T> TreadParamValue(String name, T defaultValue)Get the value of a given scope parameter by name.Methods inherited from class com.illumon.iris.db.tables.select.QueryScope
addObjectFields, addParam, append, getClientHost, getDefaultInstance, getParams, getParamValue, getQueryName, makeScriptSessionImpl, setClientHost, setDefaultInstance, setQueryName
-
Method Details
-
getParamNames
Description copied from class:QueryScopeGet all known scope variable names.- Specified by:
getParamNamesin classQueryScope- Returns:
- A collection of scope variable names.
-
hasParamName
Description copied from class:QueryScopeCheck if the scope has the given name.- Specified by:
hasParamNamein classQueryScope- Parameters:
name- param name- Returns:
- True iff the scope has the given param name
-
createParam
Description copied from class:QueryScopeGet a Param by name.- Specified by:
createParamin classQueryScope- Parameters:
name- parameter name- Returns:
- newly-constructed Param (name + value-snapshot pair).
- Throws:
QueryScope.MissingVariableException- If any of the named scope variables does not exist.
-
readParamValue
Description copied from class:QueryScopeGet the value of a given scope parameter by name.- Specified by:
readParamValuein classQueryScope- Parameters:
name- parameter name.- Returns:
- parameter value.
- Throws:
QueryScope.MissingVariableException- If no such scope parameter exists.
-
readParamValue
Description copied from class:QueryScopeGet the value of a given scope parameter by name.- Specified by:
readParamValuein classQueryScope- Parameters:
name- parameter name.defaultValue- default parameter value.- Returns:
- parameter value, or the default parameter value, if the value is not present.
-
putParam
Description copied from class:QueryScopeAdd a parameter to the scope.- Specified by:
putParamin classQueryScope- Parameters:
name- parameter name.value- parameter value.
-