org.babyfish.jimmer.sql.dialect.UpdateJoin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
package org.babyfish.jimmer.sql.dialect;
import java.util.Objects;
public final class UpdateJoin {
private boolean joinedTableUpdatable;
private From from;
public UpdateJoin(boolean joinedTableUpdatable, From from) {
this.joinedTableUpdatable = joinedTableUpdatable;
this.from = from;
}
public boolean isJoinedTableUpdatable() {
return joinedTableUpdatable;
}
public From getFrom() {
return from;
}
@Override
public int hashCode() {
return Objects.hash(joinedTableUpdatable, from);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateJoin that = (UpdateJoin) o;
return joinedTableUpdatable == that.joinedTableUpdatable && from == that.from;
}
@Override
public String toString() {
return "UpdateJoin{" +
"joinedTableUpdatable=" + joinedTableUpdatable +
", from=" + from +
'}';
}
public enum From {
UNNECESSARY,
AS_ROOT,
AS_JOIN
}
}