Class JUnitConnectionImpl

  • All Implemented Interfaces:
    ParsedStatement, java.lang.AutoCloseable, java.sql.Connection, java.sql.Wrapper

    public class JUnitConnectionImpl
    extends ConnectionImpl
    For testing error flag in connection itself.
    • Field Detail

      • PREPARE_ERROR_QUERY

        public static final java.lang.String PREPARE_ERROR_QUERY
        See Also:
        Constant Field Values
    • Constructor Detail

      • JUnitConnectionImpl

        public JUnitConnectionImpl​(HybrisDataSource ds,
                                   java.sql.Connection conn)
    • Method Detail

      • setError

        public void setError​(boolean hasError)
      • commit

        public void commit()
                    throws java.sql.SQLException
        Specified by:
        commit in interface java.sql.Connection
        Overrides:
        commit in class ConnectionImpl
        Throws:
        java.sql.SQLException
      • hasBeenDestroyed

        public boolean hasBeenDestroyed()
      • parseQuery

        public java.lang.String parseQuery​(java.lang.String queryIn)
                                    throws java.sql.SQLException
        Specified by:
        parseQuery in interface ParsedStatement
        Overrides:
        parseQuery in class ConnectionImpl
        Parameters:
        queryIn - query to be parsed in flex-mode implementation
        Returns:
        parsed query into plain sql for underlying DB to perform on
        Throws:
        java.sql.SQLException - is thrown if during parsing something goes wrong
      • resetTestMode

        public void resetTestMode()