public class EntityEventListener extends Object implements org.hswebframework.ezorm.rdb.events.EventListener
| 构造器和说明 |
|---|
EntityEventListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Object> |
createAfterData(List<Object> olds,
org.hswebframework.ezorm.rdb.events.EventContext context) |
protected reactor.core.publisher.Mono<Void> |
doAsyncEvent(java.util.function.Supplier<reactor.core.publisher.Mono<Void>> eventSupplier) |
String |
getId() |
String |
getName() |
protected void |
handleBatchOperation(Class clazz,
EntityEventType entityEventType,
org.hswebframework.ezorm.rdb.events.EventContext context,
java.util.function.BiFunction<List<?>,Class,AsyncEvent> before,
java.util.function.BiFunction<List<?>,Class,AsyncEvent> execute,
java.util.function.BiFunction<List<?>,Class,AsyncEvent> after) |
protected void |
handleDeleteBefore(Class<Entity> entityType,
org.hswebframework.ezorm.rdb.events.EventContext context) |
protected void |
handleQueryBefore(org.hswebframework.ezorm.rdb.mapping.EntityColumnMapping mapping,
org.hswebframework.ezorm.rdb.events.EventContext context) |
protected void |
handleSingleOperation(Class clazz,
EntityEventType entityEventType,
org.hswebframework.ezorm.rdb.events.EventContext context,
java.util.function.BiFunction<List<?>,Class,AsyncEvent> before,
java.util.function.BiFunction<List<?>,Class,AsyncEvent> execute,
java.util.function.BiFunction<List<?>,Class,AsyncEvent> after) |
protected void |
handleUpdateAfter(org.hswebframework.ezorm.rdb.events.EventContext context) |
protected void |
handleUpdateBefore(org.hswebframework.ezorm.rdb.mapping.DSLUpdate<?,?> update,
org.hswebframework.ezorm.rdb.events.EventContext context) |
protected void |
handleUpdateBefore(org.hswebframework.ezorm.rdb.events.EventContext context) |
void |
onEvent(org.hswebframework.ezorm.rdb.events.EventType type,
org.hswebframework.ezorm.rdb.events.EventContext context) |
protected reactor.core.publisher.Mono<Void> |
sendDeleteEvent(List<Object> olds,
Class<Object> type,
java.util.function.BiFunction<List<Object>,Class<Object>,AsyncEvent> eventBuilder) |
protected reactor.core.publisher.Mono<Void> |
sendUpdateEvent(List<Object> before,
List<Object> after,
Class<Object> type,
reactor.function.Function3<List<Object>,List<Object>,Class<Object>,AsyncEvent> mapper) |
public String getId()
getId 在接口中 org.hswebframework.ezorm.core.meta.FeaturegetId 在接口中 org.hswebframework.ezorm.rdb.events.EventListenerpublic String getName()
getName 在接口中 org.hswebframework.ezorm.core.meta.FeaturegetName 在接口中 org.hswebframework.ezorm.rdb.events.EventListenerpublic void onEvent(org.hswebframework.ezorm.rdb.events.EventType type,
org.hswebframework.ezorm.rdb.events.EventContext context)
onEvent 在接口中 org.hswebframework.ezorm.rdb.events.EventListenerprotected void handleQueryBefore(org.hswebframework.ezorm.rdb.mapping.EntityColumnMapping mapping,
org.hswebframework.ezorm.rdb.events.EventContext context)
protected List<Object> createAfterData(List<Object> olds, org.hswebframework.ezorm.rdb.events.EventContext context)
protected reactor.core.publisher.Mono<Void> sendUpdateEvent(List<Object> before, List<Object> after, Class<Object> type, reactor.function.Function3<List<Object>,List<Object>,Class<Object>,AsyncEvent> mapper)
protected reactor.core.publisher.Mono<Void> sendDeleteEvent(List<Object> olds, Class<Object> type, java.util.function.BiFunction<List<Object>,Class<Object>,AsyncEvent> eventBuilder)
protected void handleUpdateBefore(org.hswebframework.ezorm.rdb.mapping.DSLUpdate<?,?> update,
org.hswebframework.ezorm.rdb.events.EventContext context)
protected void handleUpdateBefore(org.hswebframework.ezorm.rdb.events.EventContext context)
protected void handleDeleteBefore(Class<Entity> entityType, org.hswebframework.ezorm.rdb.events.EventContext context)
protected void handleUpdateAfter(org.hswebframework.ezorm.rdb.events.EventContext context)
protected void handleBatchOperation(Class clazz, EntityEventType entityEventType, org.hswebframework.ezorm.rdb.events.EventContext context, java.util.function.BiFunction<List<?>,Class,AsyncEvent> before, java.util.function.BiFunction<List<?>,Class,AsyncEvent> execute, java.util.function.BiFunction<List<?>,Class,AsyncEvent> after)
protected void handleSingleOperation(Class clazz, EntityEventType entityEventType, org.hswebframework.ezorm.rdb.events.EventContext context, java.util.function.BiFunction<List<?>,Class,AsyncEvent> before, java.util.function.BiFunction<List<?>,Class,AsyncEvent> execute, java.util.function.BiFunction<List<?>,Class,AsyncEvent> after)
protected reactor.core.publisher.Mono<Void> doAsyncEvent(java.util.function.Supplier<reactor.core.publisher.Mono<Void>> eventSupplier)
Copyright © 2016–2022. All rights reserved.