class TeradataTimePeriod extends DbStruct {

    @Override
    public boolean equals(Object other) {
        if (other == null) {
            return false;
        }

        if (!(other instanceof TeradataTimePeriod)) {
            return false;
        }

        TeradataTimePeriod odp = (TeradataTimePeriod) other;

        Object[] thisAtts = null;
        Object[] otherAtts = null;

        try {
            otherAtts = odp.getAttributes();
            thisAtts = this.getAttributes();
        } catch (SQLException e) {
            System.out.println("TeradataTimePeriod: equals: caught exception");
        }

        if (!(thisAtts[0].equals(otherAtts[0]))) {
            return false;
        }

        if (!(thisAtts[1].equals(otherAtts[1]))) {
            return false;
        }

        return true;
    }

    public  TeradataTimePeriod(Object[] dates);

}