Commit 2ab5fc5f authored by terrymanu's avatar terrymanu
Browse files

remove inline comment

parent 8c98f76e
Loading
Loading
Loading
Loading
+0 −41
Original line number Diff line number Diff line
/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * 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.
 * </p>
 */

package io.shardingsphere.core.executor.event;

/**
 * Event execution type.
 * 
 * @author zhangliang
 */
public enum EventExecutionType {
    
    /**
     * Before SQL execute.
     */
    BEFORE_EXECUTE, 
    
    /**
     * SQL execute success.
     */
    EXECUTE_SUCCESS, 
    
    /**
     * SQL execute failure.
     */
    EXECUTE_FAILURE
}
+0 −4
Original line number Diff line number Diff line
@@ -111,10 +111,6 @@ public abstract class AbstractStatementAdapter extends AbstractUnsupportedOperat
        long result = 0;
        boolean hasResult = false;
        for (Statement each : getRoutedStatements()) {
            /**
             * In oracle ojdbc driver, getUpdateCount can only be called once after a successful call.
             * Otherwise, this method return -1 by default.
             */
            int updateCount = each.getUpdateCount();
            if (updateCount > -1) {
                hasResult = true;