All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ymate.platform.persistence.ISessionEvent Maven / Gradle / Ivy

There is a newer version: 2.0.11
Show newest version
/*
 * Copyright 2007-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.ymate.platform.persistence;

/**
 * 会话事件处理接口
 *
 * @author 刘镇 ([email protected]) on 2011-9-27 下午03:46:08
 * @version 1.0
 */
public interface ISessionEvent {

    /**
     * 查询操用之前事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onQueryBefore(SessionEventContext eventContext);

    /**
     * 查询操作之后事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onQueryAfter(SessionEventContext eventContext);

    /**
     * 插入操用之前事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onInsertBefore(SessionEventContext eventContext);

    /**
     * 插入操作之后事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onInsertAfter(SessionEventContext eventContext);

    /**
     * 更新操作之前事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onUpdateBefore(SessionEventContext eventContext);

    /**
     * 更新操作之后事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onUpdateAfter(SessionEventContext eventContext);

    /**
     * 删除操作之前事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onRemoveBefore(SessionEventContext eventContext);

    /**
     * 删除操作之后事件调用
     *
     * @param eventContext 事件上下文对象
     */
    void onRemoveAfter(SessionEventContext eventContext);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy