org.apache.openejb.resource.jdbc
Class DataSourceFactory

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.DataSourceFactory

public class DataSourceFactory
extends Object

Version:
$Rev$ $Date$

Field Summary
static String DATA_SOURCE_CREATOR_PROP
           
static String FLUSHABLE_PROPERTY
           
static String GLOBAL_FLUSH_PROPERTY
           
static String GLOBAL_LOG_SQL_PACKAGE_PROPERTY
           
static String GLOBAL_LOG_SQL_PROPERTY
           
static String LOG_SQL_PACKAGE_PROPERTY
           
static String LOG_SQL_PROPERTY
           
static String POOL_PROPERTY
           
 
Constructor Summary
DataSourceFactory()
           
 
Method Summary
static CommonDataSource create(String name, boolean configuredManaged, Class impl, String definition, Duration maxWaitTime, Duration timeBetweenEvictionRuns, Duration minEvictableIdleTime)
           
static DataSourceCreator creator(Object creatorName, boolean willBeProxied)
           
static void destroy(Object o)
           
static org.apache.xbean.recipe.ObjectRecipe forgetRecipe(Object rawObject, org.apache.xbean.recipe.ObjectRecipe defaultValue)
           
static boolean knows(Object object)
           
static DataSource makeItLogging(CommonDataSource ds, String packagesStr)
           
static void setCreatedWith(DataSourceCreator creator, CommonDataSource ds)
           
static void trimNotSupportedDataSourceProperties(Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_SQL_PROPERTY

public static final String LOG_SQL_PROPERTY
See Also:
Constant Field Values

LOG_SQL_PACKAGE_PROPERTY

public static final String LOG_SQL_PACKAGE_PROPERTY
See Also:
Constant Field Values

FLUSHABLE_PROPERTY

public static final String FLUSHABLE_PROPERTY
See Also:
Constant Field Values

GLOBAL_LOG_SQL_PROPERTY

public static final String GLOBAL_LOG_SQL_PROPERTY
See Also:
Constant Field Values

GLOBAL_LOG_SQL_PACKAGE_PROPERTY

public static final String GLOBAL_LOG_SQL_PACKAGE_PROPERTY
See Also:
Constant Field Values

GLOBAL_FLUSH_PROPERTY

public static final String GLOBAL_FLUSH_PROPERTY
See Also:
Constant Field Values

POOL_PROPERTY

public static final String POOL_PROPERTY
See Also:
Constant Field Values

DATA_SOURCE_CREATOR_PROP

public static final String DATA_SOURCE_CREATOR_PROP
See Also:
Constant Field Values
Constructor Detail

DataSourceFactory

public DataSourceFactory()
Method Detail

create

public static CommonDataSource create(String name,
                                      boolean configuredManaged,
                                      Class impl,
                                      String definition,
                                      Duration maxWaitTime,
                                      Duration timeBetweenEvictionRuns,
                                      Duration minEvictableIdleTime)
                               throws IllegalAccessException,
                                      InstantiationException,
                                      IOException
Throws:
IllegalAccessException
InstantiationException
IOException

setCreatedWith

public static void setCreatedWith(DataSourceCreator creator,
                                  CommonDataSource ds)

makeItLogging

public static DataSource makeItLogging(CommonDataSource ds,
                                       String packagesStr)

creator

public static DataSourceCreator creator(Object creatorName,
                                        boolean willBeProxied)

trimNotSupportedDataSourceProperties

public static void trimNotSupportedDataSourceProperties(Properties properties)

knows

public static boolean knows(Object object)

forgetRecipe

public static org.apache.xbean.recipe.ObjectRecipe forgetRecipe(Object rawObject,
                                                                org.apache.xbean.recipe.ObjectRecipe defaultValue)

destroy

public static void destroy(Object o)
                    throws Throwable
Throws:
Throwable


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.