public abstract class BaseTarget extends Object implements Target, StatisticCollectorProvider, StatisticProvider
| Modifier and Type | Field and Description |
|---|---|
protected Entity |
entityAny |
protected org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseTarget() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaroundTransaction, beginTransaction, getTables, isBuffer, isConnectedToDatabase, isLogQueriesEnabledprotected final Entity entityAny
protected org.slf4j.Logger log
public org.slf4j.Logger getLog()
getLog in interface ILoggerBeanprotected Map<Entity,LinkedList<DaobabInterceptor>> getInterceptorsMap()
public void addInterceptorForAllEntities(DaobabInterceptor interceptor)
public void addInterceptor(DaobabInterceptor interceptor, Entity... entities)
protected List<DaobabInterceptor> getInterceptorsForEntity(Entity entity)
protected boolean areInterceptorInUse()
protected void beforeInsert(Entity entity)
protected void afterInsert(Entity entity)
protected void beforeUpdate(Entity entity)
protected void afterUpdate(Entity entity)
protected void beforeDelete(Entity entity)
protected void afterDelete(Entity entity)
public boolean isTransactionActive()
isTransactionActive in interface Targetpublic <Y,T extends TransactionalTarget & QueryReceiver> Y handleTransactionalTarget(T target, Propagation propagation, BiFunction<QueryReceiver,Boolean,Y> jobToDo)
public StatisticCollector getStatisticCollector()
getStatisticCollector in interface StatisticCollectorProviderpublic boolean isStatisticCollectingEnabled()
isStatisticCollectingEnabled in interface StatisticCollectorProviderpublic void enableStatisticCollecting(boolean statisticEnabled)
enableStatisticCollecting in interface StatisticCollectorProviderpublic AccessProtector getAccessProtector()
public void setAccessProtector(AccessProtector accessProtector)
public Entities<StatisticRecord> getStatistics()
getStatistics in interface StatisticProviderCopyright © 2021. All rights reserved.