Loading sharding-jdbc/src/main/java/io/shardingsphere/core/executor/event/EventExecutionType.javadeleted 100644 → 0 +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 } sharding-jdbc/src/main/java/io/shardingsphere/core/jdbc/adapter/AbstractStatementAdapter.java +0 −4 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
sharding-jdbc/src/main/java/io/shardingsphere/core/executor/event/EventExecutionType.javadeleted 100644 → 0 +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 }
sharding-jdbc/src/main/java/io/shardingsphere/core/jdbc/adapter/AbstractStatementAdapter.java +0 −4 Original line number Diff line number Diff line Loading @@ -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; Loading