org.springframework.jdbc.core

Class ResultSetSupportingSqlParameter

    • Constructor Detail

      • ResultSetSupportingSqlParameter

        public ResultSetSupportingSqlParameter(java.lang.String name,
                                               int sqlType)
        Create a new ResultSetSupportingSqlParameter.
        Parameters:
        name - name of the parameter, as used in input and output maps
        sqlType - the parameter SQL type according to java.sql.Types
      • ResultSetSupportingSqlParameter

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

        public ResultSetSupportingSqlParameter(java.lang.String name,
                                               int sqlType,
                                               @Nullable
                                               java.lang.String typeName)
        Create a new ResultSetSupportingSqlParameter.
        Parameters:
        name - name of the parameter, as used in input and output maps
        sqlType - the parameter SQL type according to java.sql.Types
        typeName - the type name of the parameter (optional)
      • ResultSetSupportingSqlParameter

        public ResultSetSupportingSqlParameter(java.lang.String name,
                                               int sqlType,
                                               ResultSetExtractor<?> rse)
        Create a new ResultSetSupportingSqlParameter.
        Parameters:
        name - name of the parameter, as used in input and output maps
        sqlType - the parameter SQL type according to java.sql.Types
        rse - the ResultSetExtractor to use for parsing the ResultSet
      • ResultSetSupportingSqlParameter

        public ResultSetSupportingSqlParameter(java.lang.String name,
                                               int sqlType,
                                               RowCallbackHandler rch)
        Create a new ResultSetSupportingSqlParameter.
        Parameters:
        name - name of the parameter, as used in input and output maps
        sqlType - the parameter SQL type according to java.sql.Types
        rch - the RowCallbackHandler to use for parsing the ResultSet
      • ResultSetSupportingSqlParameter

        public ResultSetSupportingSqlParameter(java.lang.String name,
                                               int sqlType,
                                               RowMapper<?> rm)
        Create a new ResultSetSupportingSqlParameter.
        Parameters:
        name - name of the parameter, as used in input and output maps
        sqlType - the parameter SQL type according to java.sql.Types
        rm - the RowMapper to use for parsing the ResultSet
    • Method Detail

      • isResultSetSupported

        public boolean isResultSetSupported()
        Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper?
      • getResultSetExtractor

        @Nullable
        public ResultSetExtractor<?> getResultSetExtractor()
        Return the ResultSetExtractor held by this parameter, if any.
      • getRowCallbackHandler

        @Nullable
        public RowCallbackHandler getRowCallbackHandler()
        Return the RowCallbackHandler held by this parameter, if any.
      • getRowMapper

        @Nullable
        public RowMapper<?> getRowMapper()
        Return the RowMapper held by this parameter, if any.
      • isInputValueProvided

        public boolean isInputValueProvided()
        This implementation always returns false.
        Overrides:
        isInputValueProvided in class SqlParameter