diff --git a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/AbstractExecutorWrapper.java b/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/AbstractExecutorWrapper.java deleted file mode 100644 index d31fc829323b1fc0b1880c4fea3900bdee970460..0000000000000000000000000000000000000000 --- a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/AbstractExecutorWrapper.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 1999-2015 dangdang.com. - *

- * 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 com.dangdang.ddframe.rdb.sharding.executor.wrapper; - -import com.dangdang.ddframe.rdb.sharding.routing.SQLExecutionUnit; -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * 执行上下文基类. - * - * @author zhangliang - */ -@RequiredArgsConstructor -@Getter -public abstract class AbstractExecutorWrapper { - - private final SQLExecutionUnit sqlExecutionUnit; -} diff --git a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/PreparedStatementExecutorWrapper.java b/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/PreparedStatementExecutorWrapper.java index 576d75075cebb509d96f0d03a29160ddfc93c5e0..6328a06829166f75380c714039226ab103c51d5a 100644 --- a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/PreparedStatementExecutorWrapper.java +++ b/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/PreparedStatementExecutorWrapper.java @@ -36,7 +36,10 @@ import java.util.List; * * @author zhangliang */ -public class PreparedStatementExecutorWrapper extends AbstractExecutorWrapper { +public final class PreparedStatementExecutorWrapper { + + @Getter + private final SQLExecutionUnit sqlExecutionUnit; @Getter private final PreparedStatement preparedStatement; @@ -49,7 +52,7 @@ public class PreparedStatementExecutorWrapper extends AbstractExecutorWrapper { private int batchIndex; public PreparedStatementExecutorWrapper(final SQLType sqlType, final PreparedStatement preparedStatement, final SQLExecutionUnit sqlExecutionUnit) { - super(sqlExecutionUnit); + this.sqlExecutionUnit = sqlExecutionUnit; this.preparedStatement = preparedStatement; switch (sqlType) { case SELECT: diff --git a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/StatementExecutorWrapper.java b/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/StatementExecutorWrapper.java deleted file mode 100644 index 20d0b78d2cc957444b6df9c3fb232d77da4eb53d..0000000000000000000000000000000000000000 --- a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/StatementExecutorWrapper.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 1999-2015 dangdang.com. - *

- * 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 com.dangdang.ddframe.rdb.sharding.executor.wrapper; - -import com.dangdang.ddframe.rdb.sharding.routing.SQLExecutionUnit; -import lombok.Getter; - -import java.sql.Statement; - -/** - * 静态语句对象的执行上下文. - * - * @author zhangliang - */ -public final class StatementExecutorWrapper extends AbstractExecutorWrapper { - - @Getter - private final Statement statement; - - public StatementExecutorWrapper(final Statement statement, final SQLExecutionUnit sqlExecutionUnit) { - super(sqlExecutionUnit); - this.statement = statement; - } -}