/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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 org.apache.shardingsphere.core.routing.strategy;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.core.encrypt.encryptor.ShardingEncryptor;

import java.util.LinkedList;
import java.util.List;

/**
 * Sharding encryptor strategy.
 *
 * @author panjuan
 */
@Getter
@RequiredArgsConstructor
public final class ShardingEncryptorStrategy {
    
    private final List<String> columns;
    
    private final List<String> assistedQueryColumns;
    
    private final ShardingEncryptor shardingEncryptor;
    
    public ShardingEncryptorStrategy(final List<String> columns, final ShardingEncryptor shardingEncryptor) {
        this(columns, new LinkedList<String>(), shardingEncryptor);
    }
}

@@ -880,47 +880,8 @@
 er;%0A
-import lombok.RequiredArgsConstructor;%0A
 impo
@@ -950,16 +950,96 @@
 cryptor;
+%0Aimport org.apache.shardingsphere.core.exception.ShardingConfigurationException;
 %0A%0Aimport
@@ -1159,33 +1159,8 @@
 ter%0A
-@RequiredArgsConstructor%0A
 publ
@@ -1302,32 +1302,32 @@
 ryColumns;%0A    %0A
-
     private fina
@@ -1366,24 +1366,549 @@
 yptor;%0A    %0A
+    public ShardingEncryptorStrategy(final List%3CString%3E columns, final List%3CString%3E assistedQueryColumns, final ShardingEncryptor shardingEncryptor) %7B%0A        if (!assistedQueryColumns.isEmpty() && assistedQueryColumns.size() != columns.size()) %7B%0A            throw new ShardingConfigurationException(%22The size of columns and assistedQueryColumns is not same.%22);%0A        %7D%0A        this.columns = columns;%0A        this.assistedQueryColumns = assistedQueryColumns;%0A        this.shardingEncryptor = shardingEncryptor;%0A    %7D%0A    %0A
     public S

add ShardingEncryptorStrategy()