/*
 * Copyright 2016 requery.io
 *
 * 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 io.requery;

import io.requery.proxy.EntityProxy;

import java.util.Set;

public interface TransactionListener {

    void beforeBegin(TransactionIsolation isolation);

    void afterBegin(TransactionIsolation isolation);

    void beforeCommit(Set<EntityProxy<?>> entities);

    void afterCommit(Set<EntityProxy<?>> entities);

    void beforeRollback(Set<EntityProxy<?>> entities);

    void afterRollback(Set<EntityProxy<?>> entities);
}

@@ -674,319 +674,1321 @@
 t;%0A%0A
-public interface TransactionListener %7B%0A%0A    void beforeBegin(TransactionIsolation isolation);%0A%0A    void afterBegin(TransactionIsolation isolation);%0A%0A    void beforeCommit(Set%3CEntityProxy%3C?%3E%3E entities);%0A%0A    void afterCommit(Set%3CEntityProxy%3C?%3E%3E entities);%0A%0A    void beforeRollback(Set%3CEntityProxy%3C?%3E%3E entities);%0A
+/**%0A * Provides an interface for listening to %7B@link Transaction%7D actions.%0A */%0Apublic interface TransactionListener %7B%0A%0A    /**%0A     * Invoked before the transaction is begun.%0A     *%0A     * @param isolation %7B@link TransactionIsolation%7D level of the transaction.%0A     */%0A    void beforeBegin(TransactionIsolation isolation);%0A%0A    /**%0A     * Invoked after the transaction is begun.%0A     *%0A     * @param isolation %7B@link TransactionIsolation%7D level of the transaction.%0A     */%0A    void afterBegin(TransactionIsolation isolation);%0A%0A    /**%0A     * Invoked before the transaction is committed.%0A     *%0A     * @param entities collection of entities involved in the transaction%0A     */%0A    void beforeCommit(Set%3CEntityProxy%3C?%3E%3E entities);%0A%0A    /**%0A     * Invoked after the transaction is committed successfully.%0A     *%0A     * @param entities collection of entities involved in the transaction%0A     */%0A    void afterCommit(Set%3CEntityProxy%3C?%3E%3E entities);%0A%0A    /**%0A     * Invoked before the transaction is rolled back.%0A     *%0A     * @param entities collection of entities involved in the transaction%0A     */%0A    void beforeRollback(Set%3CEntityProxy%3C?%3E%3E entities);%0A%0A    /**%0A     * Invoked after the transaction is rolled back successfully.%0A     *%0A     * @param entities collection of entities involved in the transaction%0A     */
 %0A   

add documentation