添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
老实的玉米  ·  Top50 榜单中90% ...·  8 月前    · 
卖萌的马铃薯  ·  如何判断java ...·  1 年前    · 
从容的青蛙  ·  excel unique function ...·  1 年前    · 
奋斗的炒饭  ·  Docker-compose / ...·  1 年前    · 
Direct Known Subclasses:
ResultSetSupportingSqlParameter , SqlParameterValue , SqlReturnUpdateCount
public class SqlParameter extends Object
Object to represent an SQL parameter definition.

Parameters may be anonymous, in which case "name" is null . However, all parameters must define an SQL type according to Types .

Author:
Rod Johnson, Thomas Risberg, Juergen Hoeller
See Also:
  • Types
  • Create a new SqlParameter, supplying name and SQL type.
    Copy constructor.
    Return whether this parameter holds input values that should be set before execution even if they are null .
    boolean
    Return whether this parameter is an implicit return parameter used during the results processing of CallableStatement.getMoreResults/getUpdateCount .
    Convert a list of JDBC types, as defined in java.sql.Types , to a List of SqlParameter objects as used in this package.

    SqlParameter

    public SqlParameter (int sqlType)
    Create a new anonymous SqlParameter, supplying the SQL type.
    Parameters:
    sqlType - the SQL type of the parameter according to java.sql.Types
    public SqlParameter (int sqlType, int scale)
    Create a new anonymous SqlParameter, supplying the SQL type.
    Parameters:
    sqlType - the SQL type of the parameter according to java.sql.Types
    scale - the number of digits after the decimal point (for DECIMAL and NUMERIC types)
    public SqlParameter ( String name, int sqlType)
    Create a new SqlParameter, supplying name and SQL type.
    Parameters:
    name - the name of the parameter, as used in input and output maps
    sqlType - the SQL type of the parameter according to java.sql.Types
    Parameters:
    name - the name of the parameter, as used in input and output maps
    sqlType - the SQL type of the parameter according to java.sql.Types
    typeName - the type name of the parameter (optional)
    Parameters:
    name - the name of the parameter, as used in input and output maps
    sqlType - the SQL type of the parameter according to java.sql.Types
    scale - the number of digits after the decimal point (for DECIMAL and NUMERIC types)

    isInputValueProvided

    public boolean isInputValueProvided ()
    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 ()
    Return whether this parameter is an implicit return parameter used during the results processing of CallableStatement.getMoreResults/getUpdateCount .

    This implementation always returns false .

    sqlTypesToAnonymousParameterList

    public static List < SqlParameter > sqlTypesToAnonymousParameterList ( @Nullable int... types)
    Convert a list of JDBC types, as defined in java.sql.Types , to a List of SqlParameter objects as used in this package.