Package com.couchbase.lite
Class Parameters
java.lang.Object
com.couchbase.lite.Parameters
A Parameters object used for setting values to the query parameters defined in the query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a parameter's value.Set the Array value to the query parameter referenced by the given name.Set the Blob value to the query parameter referenced by the given name.setBoolean
(String name, boolean value) Set a boolean value to the query parameter referenced by the given name.Set a date value to the query parameter referenced by the given name.setDictionary
(String name, Dictionary value) Set the Dictionary value to the query parameter referenced by the given name.Set a double value to the query parameter referenced by the given name.Set a float value to the query parameter referenced by the given name.Set an int value to the query parameter referenced by the given name.Set an long value to the query parameter referenced by the given name.Set an Number value to the query parameter referenced by the given name.Set an String value to the query parameter referenced by the given name.Set a value to the query parameter referenced by the given name.
-
Constructor Details
-
Parameters
public Parameters() -
Parameters
-
-
Method Details
-
getValue
Gets a parameter's value.- Parameters:
name
- The parameter name.- Returns:
- The parameter value.
-
setString
Set an String value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The String value.- Returns:
- The self object.
-
setNumber
Set an Number value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The Number value.- Returns:
- The self object.
-
setInt
Set an int value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The int value.- Returns:
- The self object.
-
setLong
Set an long value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The long value.- Returns:
- The self object.
-
setFloat
Set a float value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The float value.- Returns:
- The self object.
-
setDouble
Set a double value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The double value.- Returns:
- The self object.
-
setBoolean
Set a boolean value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The boolean value.- Returns:
- The self object.
-
setDate
Set a date value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The date value.- Returns:
- The self object.
-
setBlob
Set the Blob value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The Blob value.- Returns:
- The self object.
-
setDictionary
Set the Dictionary value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The Dictionary value.- Returns:
- The self object.
-
setArray
Set the Array value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The Array value.- Returns:
- The self object.
-
setValue
Set a value to the query parameter referenced by the given name. A query parameter is defined by using the Expression's parameter(String name) function.- Parameters:
name
- The parameter name.value
- The value.- Returns:
- The self object.
-