类 SqlParameterValue

    • 构造器详细资料

      • SqlParameterValue

        public SqlParameterValue​(int sqlType,
                                 Object value)
        Create a new SqlParameterValue, supplying the SQL type.
        参数:
        sqlType - SQL type of the parameter according to java.sql.Types
        value - the value object
      • SqlParameterValue

        public SqlParameterValue​(int sqlType,
                                 String typeName,
                                 Object value)
        Create a new SqlParameterValue, supplying the SQL type.
        参数:
        sqlType - SQL type of the parameter according to java.sql.Types
        typeName - the type name of the parameter (optional)
        value - the value object
      • SqlParameterValue

        public SqlParameterValue​(int sqlType,
                                 int scale,
                                 Object value)
        Create a new SqlParameterValue, supplying the SQL type.
        参数:
        sqlType - SQL type of the parameter according to java.sql.Types
        scale - the number of digits after the decimal point (for DECIMAL and NUMERIC types)
        value - the value object
      • SqlParameterValue

        public SqlParameterValue​(SqlParameter declaredParam,
                                 Object value)
        Create a new SqlParameterValue based on the given SqlParameter declaration.
        参数:
        declaredParam - the declared SqlParameter to define a value for
        value - the value object
    • 方法详细资料

      • getValue

        public Object getValue()
        Return the value object that this parameter value holds.