package com.alibaba.druid.sql.ast.statement;

import com.alibaba.druid.sql.ast.SQLObjectImpl;

public abstract class SQLSelectQueryBase extends SQLObjectImpl implements SQLSelectQuery {
    protected boolean parenthesized;

    @Override
    public boolean isParenthesized() {
        return parenthesized;
    }

    @Override
    public void setParenthesized(boolean parenthesized) {
        this.parenthesized = parenthesized;
    }

    public abstract SQLSelectQueryBase clone();

    protected void cloneTo(SQLSelectQueryBase x) {
        x.setParenthesized(this.parenthesized);
    }
}
