public class DataSourceFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_SOURCE_CREATOR_PROP |
static java.lang.String |
FLUSHABLE_PROPERTY |
static java.lang.String |
GLOBAL_FLUSH_PROPERTY |
static java.lang.String |
GLOBAL_HANDLER_PROPERTY |
static java.lang.String |
GLOBAL_LOG_SQL_PACKAGE_PROPERTY |
static java.lang.String |
GLOBAL_LOG_SQL_PROPERTY |
static java.lang.String |
HANDLER_PROPERTY |
static java.lang.String |
LOG_SQL_PACKAGE_PROPERTY |
static java.lang.String |
LOG_SQL_PROPERTY |
static java.lang.String |
POOL_PROPERTY |
static java.lang.String |
RESET_METHODS_PROPERTY |
static java.lang.String |
RESET_PROPERTY |
static java.lang.String |
XA_FORCE_DIFFERENT |
static java.lang.String |
XA_GLOBAL_FORCE_DIFFERENT |
Constructor and Description |
---|
DataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
static javax.sql.CommonDataSource |
create(java.lang.String name,
boolean configuredManaged,
java.lang.Class impl,
java.lang.String definition,
Duration maxWaitTime,
Duration timeBetweenEvictionRuns,
Duration minEvictableIdleTime,
boolean useAlternativeDriver) |
static DataSourceCreator |
creator(java.lang.Object creatorName,
boolean willBeProxied) |
static void |
destroy(java.lang.Object o) |
static ObjectRecipe |
forgetRecipe(java.lang.Object rawObject,
ObjectRecipe defaultValue) |
static boolean |
knows(java.lang.Object object) |
static javax.sql.DataSource |
makeItLogging(javax.sql.CommonDataSource ds,
java.lang.String packagesStr) |
static javax.sql.CommonDataSource |
makeSerializableFlushableDataSourceProxy(javax.sql.CommonDataSource ds,
java.lang.reflect.InvocationHandler handler) |
static void |
setCreatedWith(DataSourceCreator creator,
javax.sql.CommonDataSource ds) |
static void |
trimNotSupportedDataSourceProperties(java.util.Properties properties) |
public static final java.lang.String LOG_SQL_PROPERTY
public static final java.lang.String LOG_SQL_PACKAGE_PROPERTY
public static final java.lang.String FLUSHABLE_PROPERTY
public static final java.lang.String RESET_PROPERTY
public static final java.lang.String RESET_METHODS_PROPERTY
public static final java.lang.String GLOBAL_LOG_SQL_PROPERTY
public static final java.lang.String GLOBAL_LOG_SQL_PACKAGE_PROPERTY
public static final java.lang.String GLOBAL_FLUSH_PROPERTY
public static final java.lang.String POOL_PROPERTY
public static final java.lang.String DATA_SOURCE_CREATOR_PROP
public static final java.lang.String XA_GLOBAL_FORCE_DIFFERENT
public static final java.lang.String XA_FORCE_DIFFERENT
public static final java.lang.String HANDLER_PROPERTY
public static final java.lang.String GLOBAL_HANDLER_PROPERTY
public static javax.sql.CommonDataSource create(java.lang.String name, boolean configuredManaged, java.lang.Class impl, java.lang.String definition, Duration maxWaitTime, Duration timeBetweenEvictionRuns, Duration minEvictableIdleTime, boolean useAlternativeDriver) throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
public static javax.sql.CommonDataSource makeSerializableFlushableDataSourceProxy(javax.sql.CommonDataSource ds, java.lang.reflect.InvocationHandler handler)
public static void setCreatedWith(DataSourceCreator creator, javax.sql.CommonDataSource ds)
public static javax.sql.DataSource makeItLogging(javax.sql.CommonDataSource ds, java.lang.String packagesStr)
public static DataSourceCreator creator(java.lang.Object creatorName, boolean willBeProxied)
public static void trimNotSupportedDataSourceProperties(java.util.Properties properties)
public static boolean knows(java.lang.Object object)
public static ObjectRecipe forgetRecipe(java.lang.Object rawObject, ObjectRecipe defaultValue)
public static void destroy(java.lang.Object o) throws java.lang.Throwable
java.lang.Throwable