Class JdbcDriverUtils


  • public final class JdbcDriverUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getSessionProperty​(java.sql.Connection connection, java.lang.String key)  
      static java.lang.String getSessionPropertyDefault​(java.sql.Connection connection, java.lang.String key)  
      static void resetSessionProperty​(java.sql.Connection connection, java.lang.String key)  
      static void setRole​(java.sql.Connection connection, java.lang.String role)  
      static void setSessionProperty​(java.sql.Connection connection, java.lang.String key, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setRole

        public static void setRole​(java.sql.Connection connection,
                                   java.lang.String role)
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSessionProperty

        public static java.lang.String getSessionProperty​(java.sql.Connection connection,
                                                          java.lang.String key)
                                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSessionPropertyDefault

        public static java.lang.String getSessionPropertyDefault​(java.sql.Connection connection,
                                                                 java.lang.String key)
                                                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setSessionProperty

        public static void setSessionProperty​(java.sql.Connection connection,
                                              java.lang.String key,
                                              java.lang.String value)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • resetSessionProperty

        public static void resetSessionProperty​(java.sql.Connection connection,
                                                java.lang.String key)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException