Class DataSourceParameter

  • DataSourceParameter allows you to access existing data source parameters, but should only be used with data connected to a database.

  • You can usegetName() to retrieve the parameter name.

  • You can usegetSourceCell() to get the source cell the parameter is valued based on, ornull if the type is not CELL.

  • You can usegetType() to get the parameter type.

DataSourceParameter

Access existing data source parameters.

Only use this class with data that's connected to a database.

Methods

MethodReturn typeBrief description
getName()StringGets the parameter name.
getSourceCell()String|nullGets the source cell the parameter is valued based on, ornull if the parameter type isnotDataSourceParameterType.CELL.
getType()DataSourceParameterTypeGets the parameter type.

Detailed documentation

getName()

Gets the parameter name.

Return

String — The parameter name.


getSourceCell()

Gets the source cell the parameter is valued based on, ornull if the parameter type isnotDataSourceParameterType.CELL.

Return

String|null — The source cell, as specified in A1 notation.


getType()

Gets the parameter type.

Return

DataSourceParameterType — The parameter type.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.