Class StatementHelper

  • All Implemented Interfaces:
    Serializable

    @Deprecated
    public class StatementHelper
    extends Object
    implements Serializable
    Deprecated.
    As of 8.0, no replacement available.
    StatementHelper is a simple helper class that assists TableQuery and the query generators in filling a PreparedStatement. The actual statement is generated by the query generator methods, but the resulting statement and all the parameter values are stored in an instance of StatementHelper. This class will also fill the values with correct setters into the PreparedStatement on request.
    See Also:
    Serialized Form
    • Constructor Detail

      • StatementHelper

        public StatementHelper()
        Deprecated.
    • Method Detail

      • setQueryString

        public void setQueryString​(String queryString)
        Deprecated.
      • getQueryString

        public String getQueryString()
        Deprecated.
      • addParameterValue

        public void addParameterValue​(Object parameter)
        Deprecated.
      • addParameterValue

        public void addParameterValue​(Object parameter,
                                      Class<?> type)
        Deprecated.
      • handleUnrecognizedTypeNullValue

        protected boolean handleUnrecognizedTypeNullValue​(int i,
                                                          PreparedStatement pstmt,
                                                          Map<Integer,​Class<?>> dataTypes)
                                                   throws SQLException
        Deprecated.
        Handle unrecognized null values. Override this to handle null values for platform specific data types that are not handled by the default implementation of the StatementHelper.
        Parameters:
        i - index of the null parameter in the prepared statement's parameter list
        pstmt - the prepared statement that contained the unrecognized null value
        dataTypes - a type ID -> class mapping of known data types
        Returns:
        true if handled, false otherwise
        Throws:
        SQLException - should be thrown if the null cannot be handled
        See Also:
        ticket #9148