/*
 * 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.parse.sql.token.impl;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.apache.shardingsphere.core.parse.sql.token.Attachable;
import org.apache.shardingsphere.core.parse.sql.token.SQLToken;

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

/**
 * Insert columns token.
 *
 * @author panjuan
 */
@Getter
@ToString
@EqualsAndHashCode(callSuper = true)
public final class InsertColumnsToken extends SQLToken implements Attachable {
    
    private boolean isPartColumns;
    
    private final List<String> columns = new LinkedList<>();
    
    public InsertColumnsToken(final int startIndex, final boolean isPartColumns) {
        super(startIndex);
        this.isPartColumns = isPartColumns;
    }
}

@@ -1089,41 +1089,18 @@
 til.
-LinkedList;%0Aimport java.util.List
+Collection
 ;%0A%0A/
@@ -1308,95 +1308,88 @@
 ate 
-boolean isPartColumns;%0A    %0A    private final List%3CString%3E columns = new LinkedList%3C%3E()
+final Collection%3CString%3E columns;%0A    %0A    private boolean isToAppendParenthesis
 ;%0A  
@@ -1453,28 +1453,70 @@
 nal 
-boolean isPartColumn
+Collection%3CString%3E columns, final boolean isToAppendParenthesi
 s) %7B
@@ -1556,23 +1556,17 @@
    this.
-isPartC
+c
 olumns =
@@ -1570,20 +1570,74 @@
 s = 
-isPartColumn
+columns;%0A        this.isToAppendParenthesis = isToAppendParenthesi
 s;%0A 

modify InsertColumnsToken