Example #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   SQLArrayExpr other = (SQLArrayExpr) obj;
   if (expr == null) {
     if (other.expr != null) return false;
   } else if (!expr.equals(other.expr)) return false;
   if (values == null) {
     if (other.values != null) return false;
   } else if (!values.equals(other.values)) return false;
   return true;
 }
Example #2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   SQLNotExpr other = (SQLNotExpr) obj;
   if (expr == null) {
     if (other.expr != null) {
       return false;
     }
   } else if (!expr.equals(other.expr)) {
     return false;
   }
   return true;
 }
Example #3
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (!(obj instanceof MySqlExtractExpr)) {
     return false;
   }
   MySqlExtractExpr other = (MySqlExtractExpr) obj;
   if (unit != other.unit) {
     return false;
   }
   if (value == null) {
     if (other.value != null) {
       return false;
     }
   } else if (!value.equals(other.value)) {
     return false;
   }
   return true;
 }