public class Config extends Object
| Constructor and Description |
|---|
Config(String name,
DataSource dataSource)
Constructor with name and dataSource
|
Config(String name,
DataSource dataSource,
Dialect dialect)
Constructor with name, dataSource and dialect
|
Config(String name,
DataSource dataSource,
Dialect dialect,
boolean showSql,
boolean devMode,
int transactionLevel,
IContainerFactory containerFactory,
com.litongjava.cache.IDbCache cache)
Constructor with full parameters
|
Config(String name,
DataSource dataSource,
int transactionLevel) |
public Config(String name, DataSource dataSource, int transactionLevel)
public Config(String name, DataSource dataSource, Dialect dialect, boolean showSql, boolean devMode, int transactionLevel, IContainerFactory containerFactory, com.litongjava.cache.IDbCache cache)
name - the name of the configdataSource - the dataSourcedialect - the dialectshowSql - the showSqldevMode - the devModetransactionLevel - the transaction levelcontainerFactory - the containerFactorycache - the cachepublic Config(String name, DataSource dataSource)
public Config(String name, DataSource dataSource, Dialect dialect)
public void setSqlStatementStat(ISqlStatementStat stat, boolean writeSync)
public ISqlStatementStat getSqlStatementStat()
public boolean writeSync()
public String getName()
public SqlKit getSqlKit()
public Dialect getDialect()
public com.litongjava.cache.IDbCache getCache()
public int getTransactionLevel()
public DataSource getDataSource()
public IContainerFactory getContainerFactory()
public IDbProFactory getDbProFactory()
public boolean isShowSql()
public boolean isDevMode()
public void setThreadLocalConnection(Connection connection)
public void removeThreadLocalConnection()
public Connection getConnection()
public Connection getThreadLocalConnection()
public boolean isInTransaction()
public void close(ResultSet rs, Statement st, Connection conn)
public void close(Statement st, Connection conn)
public void close(Connection conn)
public RecordConvert getRecordConvert()
public void setRecordConvert(RecordConvert convert)
Copyright © 2025. All rights reserved.