- java.lang.Object
-
- org.redkale.source.DataSources
-
public final class DataSources extends Object
构建DataSource对象的工具类- 作者:
- zhangjx
-
-
字段概要
-
方法概要
-
-
-
字段详细资料
-
DATA_SOURCE_CONNECT_TIMEOUT_SECONDS
public static final String DATA_SOURCE_CONNECT_TIMEOUT_SECONDS
- 另请参阅:
- 常量字段值
-
DATA_SOURCE_CONNECTIONS_CAPACITY
public static final String DATA_SOURCE_CONNECTIONS_CAPACITY
- 另请参阅:
- 常量字段值
-
DATA_SOURCE_CONTAIN_SQLTEMPLATE
public static final String DATA_SOURCE_CONTAIN_SQLTEMPLATE
- 另请参阅:
- 常量字段值
-
DATA_SOURCE_NOTCONTAIN_SQLTEMPLATE
public static final String DATA_SOURCE_NOTCONTAIN_SQLTEMPLATE
- 另请参阅:
- 常量字段值
-
DATA_SOURCE_TABLENOTEXIST_SQLSTATES
public static final String DATA_SOURCE_TABLENOTEXIST_SQLSTATES
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
createDataSource
public static DataSource createDataSource(Properties sourceProperties, String sourceName)
-
createDataSource
public static DataSource createDataSource(AnyValue sourceConf, String sourceName)
-
createDataSource
public static DataSource createDataSource(ClassLoader serverClassLoader, ResourceFactory resourceFactory, AnyValue sourceConf, String sourceName, boolean compileMode)
-
createDataSource
@Deprecated(since="2.7.0") public static DataSource createDataSource(String unitName, AnyValue conf) throws IOException
已过时。- 抛出:
IOException
-
createDataSource
@Deprecated(since="2.7.0") public static DataSource createDataSource(String unitName, Properties prop) throws IOException
已过时。- 抛出:
IOException
-
createDataSource
@Deprecated(since="2.7.0") public static DataSource createDataSource(String unitName, Properties readprop, Properties writeprop) throws IOException
已过时。- 抛出:
IOException
-
createDataSource
@Deprecated(since="2.7.0") public static DataSource createDataSource(String unitName, URL persistxml, Properties readprop, Properties writeprop) throws IOException
已过时。- 抛出:
IOException
-
createDataSource
@Deprecated(since="2.7.0") public static DataSource createDataSource(String confURI, String unitName) throws IOException
已过时。- 抛出:
IOException
-
createDataSource
@Deprecated(since="2.7.0") public static DataSource createDataSource(String unitName, URL persistxml) throws IOException
已过时。- 抛出:
IOException
-
loadSourceProperties
@Deprecated(since="2.7.0") public static Properties loadSourceProperties(InputStream in)
已过时。
-
loadPersistenceXml
@Deprecated(since="2.7.0") public static Map<String,Properties> loadPersistenceXml(InputStream in0)
已过时。
-
-