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

db.sql.api.impl.cmd.basic.TableField Maven / Gradle / Ivy

There is a newer version: 1.7.6-RC2
Show newest version
package db.sql.api.impl.cmd.basic;

import db.sql.api.cmd.basic.ITableField;

public class TableField extends AbstractDatasetField implements ITableField {

    public TableField(Table table, String name) {
        super(table, name);
    }

    protected boolean canEqual(Object other) {
        return other instanceof TableField;
    }

    @Override
    public Table getTable() {
        return (Table) super.getTable();
    }

    @Override
    public int hashCode() {
        int result = 1;
        Object $table = this.getTable().toString();
        result = result * 59 + ($table == null ? 43 : $table.hashCode());
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $alias = this.getAlias();
        result = result * 59 + ($alias == null ? 43 : $alias.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof TableField)) {
            return false;
        } else {
            TableField other = (TableField) o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$table = this.getTable();
                Object other$table = other.getTable();
                if (this$table != other$table) {
                    return false;
                }

                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$alias = this.getAlias();
                Object other$alias = other.getAlias();
                if (this$alias == null) {
                    return other$alias == null;
                }
                return this$alias.equals(other$alias);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy