Top Fields Constructors Methods
com.mchange.v2.c3p0.impl

public final Class C3P0ImplUtils

extends Object
Class Inheritance
Imports
java.beans.*, java.util.*, java.lang.reflect.*, java.security.AccessController, .PrivilegedAction, com.mchange.v2.c3p0.*, com.mchange.v2.c3p0.cfg.*, java.io.IOException, java.sql.Connection, .SQLException, com.mchange.lang.ByteUtils, com.mchange.v1.identicator.IdentityHashCodeIdenticator, com.mchange.v2.encounter.EncounterCounter, .EncounterUtils, .WeakIdentityEncounterCounter, com.mchange.v2.lang.VersionUtils, com.mchange.v2.log.MLevel, .MLog, .MLogger, com.mchange.v2.log.jdk14logging.ForwardingLogger, com.mchange.v2.ser.SerializableUtils, com.mchange.v2.sql.SqlUtils, com.mchange.v2.uid.UidUtils

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final String
private static final EncounterCounter
pack-priv static final MLogger
public static final Object[]
public static final DbAuth
public static final Logger
private static final String
public static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
public static void
private static EncounterCounter
public static String
createUserOverridesAsString(Map<K, V> userOverrides)

public static DbAuth
private static void
maybePrivilegedRun(final boolean privilege_spawned_threads, final Runnable runnable)

public static Map<K, V>
parseUserOverridesAsString(String userOverridesAsString)

pack-priv static void
resetTxnState(Connection pCon, boolean forceIgnoreUnresolvedTransactions, boolean autoCommitOnClose, boolean txnKnownResolved)

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

public static boolean
supportsMethod(Object target, String mname, Class<T>[] argTypes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONDITIONAL_LONG_TOKENSback to summary
private static final boolean CONDITIONAL_LONG_TOKENS
HASM_HEADERback to summary
private static final String HASM_HEADER
ID_TOKEN_COUNTERback to summary
private static final EncounterCounter ID_TOKEN_COUNTER
loggerback to summary
pack-priv static final MLogger logger
NOARGSback to summary
public static final Object[] NOARGS
NULL_AUTHback to summary
public static final DbAuth NULL_AUTH
PARENT_LOGGERback to summary
public static final Logger PARENT_LOGGER
VMID_PFXback to summary
private static final String VMID_PFX
VMID_PROPKEYback to summary
public static final String VMID_PROPKEY

Constructor Detail

C3P0ImplUtilsback to summary
private C3P0ImplUtils()

Method Detail

allocateIdentityTokenback to summary
public static String allocateIdentityToken(Object o)
assertCompileTimePresenceOfJdbc4_Jdk17Apiback to summary
public static void assertCompileTimePresenceOfJdbc4_Jdk17Api(NewProxyConnection 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

createEncounterCounterback to summary
private static EncounterCounter createEncounterCounter()
createUserOverridesAsStringback to summary
public static String createUserOverridesAsString(Map<K, V> userOverrides) throws IOException
findAuthback to summary
public static DbAuth findAuth(Object o) throws SQLException
maybePrivilegedRunback to summary
private static void maybePrivilegedRun(final boolean privilege_spawned_threads, final Runnable runnable)
parseUserOverridesAsStringback to summary
public static Map<K, V> parseUserOverridesAsString(String userOverridesAsString) throws IOException, ClassNotFoundException
resetTxnStateback to summary
pack-priv static void resetTxnState(Connection pCon, boolean forceIgnoreUnresolvedTransactions, boolean autoCommitOnClose, boolean txnKnownResolved) throws SQLException
runWithContextClassLoaderAndPrivilegesback to summary
public static void runWithContextClassLoaderAndPrivileges(final String contextClassLoaderSource, final boolean privilege_spawned_threads, final Runnable runnable)
supportsMethodback to summary
public static boolean supportsMethod(Object target, String mname, Class<T>[] argTypes)