All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pamirs.pradar.pressurement.datasource.TableParserResult Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.pamirs.pradar.pressurement.datasource;

import java.util.Collections;
import java.util.List;

/**
 * @author xiaobin.zfb|[email protected]
 * @since 2021/4/25 1:55 下午
 */
public class TableParserResult {
    public static final TableParserResult EMPTY = new TableParserResult(Collections.EMPTY_LIST, true);

    private List tables;
    private boolean isQuery;

    public TableParserResult(List tables, boolean isQuery) {
        this.tables = tables;
        this.isQuery = isQuery;
    }

    public List getTables() {
        return tables;
    }

    public void setTables(List tables) {
        this.tables = tables;
    }

    public boolean isQuery() {
        return isQuery;
    }

    public void setQuery(boolean query) {
        isQuery = query;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        TableParserResult sqlResult = (TableParserResult) o;

        if (isQuery != sqlResult.isQuery) {
            return false;
        }
        return tables != null ? tables.equals(sqlResult.tables) : sqlResult.tables == null;
    }

    @Override
    public int hashCode() {
        int result = tables != null ? tables.hashCode() : 0;
        result = 31 * result + (isQuery ? 1 : 0);
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy