Class SqlUtils


  • public final class SqlUtils
    extends java.lang.Object
    • Field Detail

      • DRIVER_MANAGER_USER_PROPERTY

        public static final java.lang.String DRIVER_MANAGER_USER_PROPERTY
        See Also:
        Constant Field Values
      • DRIVER_MANAGER_PASSWORD_PROPERTY

        public static final java.lang.String DRIVER_MANAGER_PASSWORD_PROPERTY
        See Also:
        Constant Field Values
    • Method Detail

      • escapeBadSqlPatternChars

        public static java.lang.String escapeBadSqlPatternChars​(java.lang.String s)
      • escapeAsTimestamp

        public static java.lang.String escapeAsTimestamp​(java.util.Date date)
      • toSQLException

        public static java.sql.SQLException toSQLException​(java.lang.Throwable t)
      • toSQLException

        public static java.sql.SQLException toSQLException​(java.lang.String msg,
                                                           java.lang.Throwable t)
      • toSQLException

        public static java.sql.SQLException toSQLException​(java.lang.String msg,
                                                           java.lang.String sqlState,
                                                           java.lang.Throwable t)
      • toSQLClientInfoException

        public static java.sql.SQLClientInfoException toSQLClientInfoException​(java.lang.Throwable t)