Parameters may be anonymous, in which case "name" is null.
However, all parameters must define an SQL type according to java..
java.sql.Types
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Integer | |
| private final int | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | SqlParameter(int
the SQL type of the parameter according to sqlType)java.sql.TypesCreate a new anonymous SqlParameter, supplying the SQL type. |
| public | SqlParameter(int
the SQL type of the parameter according to sqlType, String java.sql.Typesthe type name of the parameter (optional) typeName)Create a new anonymous SqlParameter, supplying the SQL type. |
| public | SqlParameter(int
the SQL type of the parameter according to sqlType, int java.sql.Typesthe number of digits after the decimal point
(for DECIMAL and NUMERIC types) scale)Create a new anonymous SqlParameter, supplying the SQL type. |
| public | SqlParameter(String
the name of the parameter, as used in input and output maps name, int the SQL type of the parameter according to sqlType)java.sql.TypesCreate a new SqlParameter, supplying name and SQL type. |
| public | SqlParameter(String
the name of the parameter, as used in input and output maps name, int the SQL type of the parameter according to sqlType, String java.sql.Typesthe type name of the parameter (optional) typeName)Create a new SqlParameter, supplying name and SQL type. |
| public | SqlParameter(String
the name of the parameter, as used in input and output maps name, int the SQL type of the parameter according to sqlType, int java.sql.Typesthe number of digits after the decimal point
(for DECIMAL and NUMERIC types) scale)Create a new SqlParameter, supplying name and SQL type. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Integer | |
| public int | |
| public String | |
| public boolean | isInputValueProvided()
Return whether this parameter holds input values that should be set
before execution even if they are |
| public boolean | isResultsParameter()
Return whether this parameter is an implicit return parameter used during the
results processing of |
| public static List | sqlTypesToAnonymousParameterList(int... types)
Convert a list of JDBC types, as defined in |
| name | back to summary |
|---|---|
| private String name
| |
| scale | back to summary |
|---|---|
| private Integer scale
| |
| sqlType | back to summary |
|---|---|
| private final int sqlType | |
| typeName | back to summary |
|---|---|
| private String typeName
| |
| SqlParameter | back to summary |
|---|---|
| public SqlParameter(int sqlType) Create a new anonymous SqlParameter, supplying the SQL type.
| |
| SqlParameter | back to summary |
|---|---|
| public SqlParameter(int sqlType, String typeName) Create a new anonymous SqlParameter, supplying the SQL type.
| |
| SqlParameter | back to summary |
|---|---|
| public SqlParameter(int sqlType, int scale) Create a new anonymous SqlParameter, supplying the SQL type.
| |
| SqlParameter | back to summary |
|---|---|
| public SqlParameter(String name, int sqlType) Create a new SqlParameter, supplying name and SQL type.
| |
| SqlParameter | back to summary |
|---|---|
| public SqlParameter(String name, int sqlType, String typeName) Create a new SqlParameter, supplying name and SQL type. | |
| SqlParameter | back to summary |
|---|---|
| public SqlParameter(String name, int sqlType, int scale) Create a new SqlParameter, supplying name and SQL type.
| |
| SqlParameter | back to summary |
|---|---|
| public SqlParameter(SqlParameter otherParam) Copy constructor.
| |
| getName | back to summary |
|---|---|
| public String getName() Return the name of the parameter, or
| |
| getScale | back to summary |
|---|---|
| public Integer getScale() Return the scale of the parameter, if any.
| |
| getSqlType | back to summary |
|---|---|
| public int getSqlType() Return the SQL type of the parameter. | |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Return the type name of the parameter, if any.
| |
| isInputValueProvided | back to summary |
|---|---|
| public boolean isInputValueProvided() Return whether this parameter holds input values that should be set
before execution even if they are This implementation always returns | |
| isResultsParameter | back to summary |
|---|---|
| public boolean isResultsParameter() Return whether this parameter is an implicit return parameter used during the
results processing of This implementation always returns | |
| sqlTypesToAnonymousParameterList | back to summary |
|---|---|
| public static List Convert a list of JDBC types, as defined in | |