接口 ParameterRegistrationImplementor<T>

    • 方法详细资料

      • prepare

        void prepare​(CallableStatement statement,
                     int i)
              throws SQLException
        Prepare for execution.
        参数:
        statement - The statement about to be executed
        i - The parameter index for this registration (used for positional)
        抛出:
        SQLException - Indicates a problem accessing the statement object
      • getHibernateType

        Type getHibernateType()
        Access to the Hibernate type for this parameter registration
        指定者:
        getHibernateType 在接口中 QueryParameter<T>
        返回:
        The Hibernate Type
      • isPassNullsEnabled

        boolean isPassNullsEnabled()
        If no value is bound for this parameter registration, is the passing of NULL to the JDBC CallableStatement for that parameter enabled? This effectively controls whether default values for the argument as defined in the database are applied or not.
        指定者:
        isPassNullsEnabled 在接口中 ProcedureParameter<T>
        返回:
        true indicates that NULL will be passed to the JDBC driver, effectively disabling the application of the default argument value defined in the database; false indicates that the parameter will simply be ignored, with the assumption that the corresponding argument defined a default value.
        另请参阅:
        isPassNullsEnabled()
      • getSqlTypes

        int[] getSqlTypes()
        Access to the SQL type(s) for this parameter
        返回:
        The SQL types (JDBC type codes)
      • extract

        T extract​(CallableStatement statement)
        Extract value from the statement after execution (used for OUT/INOUT parameters).
        参数:
        statement - The callable statement
        返回:
        The extracted value