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, wait
aroundTransaction, beginTransaction, getTables, isBuffer, isConnectedToDatabase, isLogQueriesEnabled
protected final Entity entityAny
protected org.slf4j.Logger log
public org.slf4j.Logger getLog()
getLog
in interface ILoggerBean
protected 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 Target
public <Y,T extends TransactionalTarget & QueryReceiver> Y handleTransactionalTarget(T target, Propagation propagation, BiFunction<QueryReceiver,Boolean,Y> jobToDo)
public StatisticCollector getStatisticCollector()
getStatisticCollector
in interface StatisticCollectorProvider
public boolean isStatisticCollectingEnabled()
isStatisticCollectingEnabled
in interface StatisticCollectorProvider
public void enableStatisticCollecting(boolean statisticEnabled)
enableStatisticCollecting
in interface StatisticCollectorProvider
public AccessProtector getAccessProtector()
public void setAccessProtector(AccessProtector accessProtector)
public Entities<StatisticRecord> getStatistics()
getStatistics
in interface StatisticProvider
Copyright © 2021. All rights reserved.