Class C3P0ImplUtils


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

      • NULL_AUTH

        public static final DbAuth NULL_AUTH
      • NOARGS

        public static final java.lang.Object[] NOARGS
      • PARENT_LOGGER

        public static final java.util.logging.Logger PARENT_LOGGER
    • Method Detail

      • allocateIdentityToken

        public static java.lang.String allocateIdentityToken​(java.lang.Object o)
      • findAuth

        public static DbAuth findAuth​(java.lang.Object o)
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • supportsMethod

        public static boolean supportsMethod​(java.lang.Object target,
                                             java.lang.String mname,
                                             java.lang.Class[] argTypes)
      • createUserOverridesAsString

        public static java.lang.String createUserOverridesAsString​(java.util.Map userOverrides)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseUserOverridesAsString

        public static java.util.Map parseUserOverridesAsString​(java.lang.String userOverridesAsString)
                                                        throws java.io.IOException,
                                                               java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • runWithContextClassLoaderAndPrivileges

        public static void runWithContextClassLoaderAndPrivileges​(java.lang.String contextClassLoaderSource,
                                                                  boolean privilege_spawned_threads,
                                                                  java.lang.Runnable runnable)
      • assertCompileTimePresenceOfJdbc4_Jdk17Api

        public static void assertCompileTimePresenceOfJdbc4_Jdk17Api​(NewProxyConnection npc)
                                                              throws java.sql.SQLException
        never intended to be called. we just want a compiler error if somehow we are building/code-generating against an old version of JDBC, as happened somehow with the c3p0-0.9.5-pre2 release
        Throws:
        java.sql.SQLException