| java.lang.Object liquibase.database.template.SqlParameter
All known Subclasses: liquibase.database.template.SqlParameterValue,
SqlParameter | class SqlParameter (Code) | | Object to represent a SQL parameter definition.
Parameters may be anonymous, in which case "name" is null .
However, all parameters must define a SQL type according to
java.sql.Types .
author: Spring Framework See Also: java.sql.Types |
Constructor Summary | |
public | SqlParameter(int sqlType) Create a new anonymous SqlParameter, supplying the SQL type. | public | SqlParameter(int sqlType, String typeName) Create a new anonymous SqlParameter, supplying the SQL type. | public | SqlParameter(int sqlType, int scale) Create a new anonymous SqlParameter, supplying the SQL type. | public | SqlParameter(String name, int sqlType) Create a new SqlParameter, supplying name and SQL type. | public | SqlParameter(String name, int sqlType, String typeName) Create a new SqlParameter, supplying name and SQL type. | public | SqlParameter(String name, int sqlType, int scale) Create a new SqlParameter, supplying name and SQL type. | public | SqlParameter(SqlParameter otherParam) Copy constructor. |
Method Summary | |
public String | getName() Return the name of the parameter. | public Integer | getScale() Return the scale of the parameter, if any. | public int | getSqlType() Return the SQL type of the parameter. | public String | getTypeName() Return the type name of the parameter, if any. | public boolean | isInputValueProvided() Return whether this parameter holds input values that should be set
before execution even if they are null . | public boolean | isResultsParameter() Return whether this parameter is an implicit return parameter used during the
reults preocessing of the CallableStatement.getMoreResults/getUpdateCount. |
SqlParameter | public SqlParameter(int sqlType)(Code) | | Create a new anonymous SqlParameter, supplying the SQL type.
Parameters: sqlType - SQL type of the parameter according to java.sql.Types |
SqlParameter | public SqlParameter(int sqlType, String typeName)(Code) | | Create a new anonymous SqlParameter, supplying the SQL type.
Parameters: sqlType - SQL type of the parameter according to java.sql.Types Parameters: typeName - the type name of the parameter (optional) |
SqlParameter | public SqlParameter(int sqlType, int scale)(Code) | | Create a new anonymous SqlParameter, supplying the SQL type.
Parameters: sqlType - SQL type of the parameter according to java.sql.Types Parameters: scale - the number of digits after the decimal point(for DECIMAL and NUMERIC types) |
SqlParameter | public SqlParameter(String name, int sqlType)(Code) | | Create a new SqlParameter, supplying name and SQL type.
Parameters: name - name of the parameter, as used in input and output maps Parameters: sqlType - SQL type of the parameter according to java.sql.Types |
SqlParameter | public SqlParameter(String name, int sqlType, String typeName)(Code) | | Create a new SqlParameter, supplying name and SQL type.
Parameters: name - name of the parameter, as used in input and output maps Parameters: sqlType - SQL type of the parameter according to java.sql.Types Parameters: typeName - the type name of the parameter (optional) |
SqlParameter | public SqlParameter(String name, int sqlType, int scale)(Code) | | Create a new SqlParameter, supplying name and SQL type.
Parameters: name - name of the parameter, as used in input and output maps Parameters: sqlType - SQL type of the parameter according to java.sql.Types Parameters: scale - the number of digits after the decimal point(for DECIMAL and NUMERIC types) |
SqlParameter | public SqlParameter(SqlParameter otherParam)(Code) | | Copy constructor.
Parameters: otherParam - the SqlParameter object to copy from |
getName | public String getName()(Code) | | Return the name of the parameter.
|
getScale | public Integer getScale()(Code) | | Return the scale of the parameter, if any.
|
getSqlType | public int getSqlType()(Code) | | Return the SQL type of the parameter.
|
getTypeName | public String getTypeName()(Code) | | Return the type name of the parameter, if any.
|
isInputValueProvided | public boolean isInputValueProvided()(Code) | | Return whether this parameter holds input values that should be set
before execution even if they are null .
This implementation always returns true .
|
isResultsParameter | public boolean isResultsParameter()(Code) | | Return whether this parameter is an implicit return parameter used during the
reults preocessing of the CallableStatement.getMoreResults/getUpdateCount.
This implementation always returns false .
|
|
|