-
- All Implemented Interfaces:
-
cn.cloudself.query.config.IQueryProConfigDb,cn.cloudself.query.config.IQueryProConfigDbWriteable
public class QueryProConfigDb extends DefaultQueryProConfigDbWriteable<QueryProConfigDb> implements IQueryProConfigDb
通用的
DB实现(构造函数的参数中需传入一个Store)
-
-
Constructor Summary
Constructors Constructor Description QueryProConfigDb(Store store)
-
Method Summary
Modifier and Type Method Description DbTypedbType()IntegermaxParameterSize()读取Connection配置(如有),与dataSource二选一即可 Connectionconnection()配置connection,与dataSource二选一即可。相比起connection更推荐使用dataSource, 因为dataSource会自动管理链接的开启与关闭。 而connection需要手动管理链接的开启与关闭(这在存在事务的时候需要额外注意) DataSourcedataSource()BooleanbeautifySql()BooleanprintLog()LogLevelprintLogLevel()BooleanprintLargeElementWholly()BooleanprintCallByInfo()LogLevelprintCallByInfoLevel()BooleanprintResult()LogLevelprintResultLevel()BooleandryRun()BooleanlogicDelete()StringlogicDeleteField()ObjectlogicDeleteTrue()ObjectlogicDeleteFalse()-
Methods inherited from class cn.cloudself.query.config.DefaultQueryProConfigDbWriteable
beautifySql, connection, dataSource, dbType, dryRun, logicDelete, logicDelete, maxParameterSize, printCallByInfo, printCallByInfo, printLargeElementWholly, printLog, printLog, printResult, printResult -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
QueryProConfigDb
QueryProConfigDb(Store store)
-
-
Method Detail
-
maxParameterSize
Integer maxParameterSize()
读取Connection配置(如有),与dataSource二选一即可
-
connection
Connection connection()
配置connection,与dataSource二选一即可。
相比起connection更推荐使用dataSource, 因为dataSource会自动管理链接的开启与关闭。 而connection需要手动管理链接的开启与关闭(这在存在事务的时候需要额外注意)
-
dataSource
DataSource dataSource()
-
beautifySql
Boolean beautifySql()
-
printLogLevel
LogLevel printLogLevel()
-
printLargeElementWholly
Boolean printLargeElementWholly()
-
printCallByInfo
Boolean printCallByInfo()
-
printCallByInfoLevel
LogLevel printCallByInfoLevel()
-
printResult
Boolean printResult()
-
printResultLevel
LogLevel printResultLevel()
-
logicDelete
Boolean logicDelete()
-
logicDeleteField
String logicDeleteField()
-
logicDeleteTrue
Object logicDeleteTrue()
-
logicDeleteFalse
Object logicDeleteFalse()
-
-
-
-