public class BeetlSqlService
extends act.db.sql.SqlDbService
Implement act.db.DbService using BeetlSql
| Modifier and Type | Field and Description |
|---|---|
static String |
DEF_LOADER_PATH |
| Constructor and Description |
|---|
BeetlSqlService(String dbId,
act.app.App app,
Map<String,String> config) |
| Modifier and Type | Method and Description |
|---|---|
org.beetl.sql.core.SQLManager |
beetlSql() |
protected act.db.sql.DataSourceProvider |
builtInDataSourceProvider() |
protected void |
dataSourceProvided(DataSource dataSource,
act.db.sql.DataSourceConfig dataSourceConfig,
boolean readonly) |
<DAO extends act.db.Dao> |
defaultDao(Class<?> aClass) |
protected void |
doEndTxIfActive(Object delegate) |
protected void |
doRollbackTx(Object delegate,
Throwable cause) |
protected void |
doStartTx(Object delegate,
boolean readOnly) |
Class<? extends Annotation> |
entityAnnotationType() |
protected <ID_TYPE,MODEL_TYPE> |
newDao(String idAttr,
Class<ID_TYPE> idType,
Class<MODEL_TYPE> modelType) |
<DAO extends act.db.Dao> |
newDaoInstance(Class<DAO> aClass) |
<MAPPER extends org.beetl.sql.core.mapper.BaseMapper> |
prepareMapperClass(Class<MAPPER> mapperClass,
Class<?> modelClass) |
protected void |
releaseResources() |
protected boolean |
supportDdl() |
beginTxIfRequired, configured, createTxListener, dataSource, dataSource, dataSourceConfig, dataSourceProvider, dataSourceReadOnly, dataSourceStatus, executeDdl, fieldNameFromPropertyName, forceBeginTx, initAsynchronously, initialized, jobId, newDataSource, tableNameFromClassName, toStringclassInfo, columnName, createdColumn, entityClasses, entityMetaInfoRepo, entityName, findModelIdTypeByAnnotation, id, idColumn, idField, lastModifiedColumnaddSubResource, destroy, isDestroyed, reload, scopedebug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, printCenter, printCenterWithLead, printDashedLine, printDoubleDashedLine, printHashSimbolLine, println, printStarLine, printTildLine, trace, trace, warn, warnpublic static final String DEF_LOADER_PATH
public org.beetl.sql.core.SQLManager beetlSql()
protected act.db.sql.DataSourceProvider builtInDataSourceProvider()
builtInDataSourceProvider in class act.db.sql.SqlDbServiceprotected void doStartTx(Object delegate, boolean readOnly)
doStartTx in class act.db.sql.SqlDbServiceprotected void doRollbackTx(Object delegate, Throwable cause)
doRollbackTx in class act.db.sql.SqlDbServiceprotected void doEndTxIfActive(Object delegate)
doEndTxIfActive in class act.db.sql.SqlDbServiceprotected void dataSourceProvided(DataSource dataSource, act.db.sql.DataSourceConfig dataSourceConfig, boolean readonly)
dataSourceProvided in class act.db.sql.SqlDbServiceprotected boolean supportDdl()
supportDdl in class act.db.sql.SqlDbServicepublic <DAO extends act.db.Dao> DAO defaultDao(Class<?> aClass)
defaultDao in class act.db.DbServiceprotected <ID_TYPE,MODEL_TYPE> BeetlSqlDao<ID_TYPE,MODEL_TYPE> newDao(String idAttr, Class<ID_TYPE> idType, Class<MODEL_TYPE> modelType)
public <DAO extends act.db.Dao> DAO newDaoInstance(Class<DAO> aClass)
newDaoInstance in class act.db.DbServicepublic Class<? extends Annotation> entityAnnotationType()
entityAnnotationType in class act.db.DbServiceprotected void releaseResources()
releaseResources in class act.db.sql.SqlDbServiceCopyright © 2017–2020 ActFramework. All rights reserved.