Class C3P0ImplUtils

java.lang.Object
com.mchange.v2.c3p0.impl.C3P0ImplUtils

public final class C3P0ImplUtils extends Object
  • Field Details

    • NULL_AUTH

      public static final DbAuth NULL_AUTH
    • NOARGS

      public static final Object[] NOARGS
    • PARENT_LOGGER

      public static final Logger PARENT_LOGGER
    • VMID_PROPKEY

      public static final String VMID_PROPKEY
      See Also:
  • Method Details

    • allocateIdentityToken

      public static String allocateIdentityToken(Object o)
    • findAuth

      public static DbAuth findAuth(Object o) throws SQLException
      Throws:
      SQLException
    • supportsMethod

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

      public static String createUserOverridesAsString(Map userOverrides) throws IOException, com.mchange.v2.csv.MalformedCsvException
      Throws:
      IOException
      com.mchange.v2.csv.MalformedCsvException
    • parseUserOverridesAsString

      public static Map parseUserOverridesAsString(String userOverridesAsString) throws IOException, com.mchange.v2.csv.MalformedCsvException
      Throws:
      IOException
      com.mchange.v2.csv.MalformedCsvException
    • runWithContextClassLoaderAndPrivileges

      public static void runWithContextClassLoaderAndPrivileges(String contextClassLoaderSource, boolean privilege_spawned_threads, Runnable runnable)
    • assertCompileTimePresenceOfJdbc4_Jdk17Api

      public static void assertCompileTimePresenceOfJdbc4_Jdk17Api(AbstractNewProxyConnection npc) throws 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:
      SQLException
    • jndiAssertNameIsAcceptable

      public static void jndiAssertNameIsAcceptable(Object jndiName) throws NamingException
      Call to guard setting and use of JNDI names. Will throw a NamingException if the name is unsupported
      Throws:
      NamingException