@Override public int hashCode() { int result = super.hashCode(); ValueReadQuery selectQuery = getSelectQuery(); DataModifyQuery updateQuery = getUpdateQuery(); result = 31 * result + (selectQuery != null ? selectQuery.hashCode() : 0); result = 31 * result + (updateQuery != null ? updateQuery.hashCode() : 0); result = 31 * result + (shouldAcquireValueAfterInsert() ? 1 : 0); result = 31 * result + (shouldUseTransaction() ? 1 : 0); result = 31 * result + (shouldSkipUpdate() ? 1 : 0); result = 31 * result + (shouldSelectBeforeUpdate() ? 1 : 0); return result; }
public boolean equals(Object obj) { if (obj instanceof QuerySequence && super.equals(obj)) { QuerySequence other = (QuerySequence)obj; return (getSelectQuery() == other.getSelectQuery()) && (getUpdateQuery() == other.getUpdateQuery()) && (shouldAcquireValueAfterInsert() == other.shouldAcquireValueAfterInsert()) && (shouldUseTransaction() == other.shouldUseTransaction()) && (shouldSkipUpdate() == other.shouldSkipUpdate()) && (shouldSelectBeforeUpdate() == other.shouldSelectBeforeUpdate()); } else { return false; } }
public boolean equals(Object obj) { if (obj instanceof QuerySequence && super.equals(obj)) { QuerySequence other = (QuerySequence)obj; return (getSelectQuery() == other.getSelectQuery()) && (getUpdateQuery() == other.getUpdateQuery()) && (shouldAcquireValueAfterInsert() == other.shouldAcquireValueAfterInsert()) && (shouldUseTransaction() == other.shouldUseTransaction()) && (shouldSkipUpdate() == other.shouldSkipUpdate()) && (shouldSelectBeforeUpdate() == other.shouldSelectBeforeUpdate()); } else { return false; } }
public boolean equals(Object obj) { if (obj instanceof QuerySequence && super.equals(obj)) { QuerySequence other = (QuerySequence)obj; return (getSelectQuery() == other.getSelectQuery()) && (getUpdateQuery() == other.getUpdateQuery()) && (shouldAcquireValueAfterInsert() == other.shouldAcquireValueAfterInsert()) && (shouldUseTransaction() == other.shouldUseTransaction()) && (shouldSkipUpdate() == other.shouldSkipUpdate()) && (shouldSelectBeforeUpdate() == other.shouldSelectBeforeUpdate()); } else { return false; } }
this.delegateSequence.setName(getName()); this.delegateSequence.onConnect(platform); setShouldUseTransaction(this.delegateSequence.shouldUseTransaction()); setShouldAcquireValueAfterInsert(this.delegateSequence.shouldAcquireValueAfterInsert()); setShouldSkipUpdate(this.delegateSequence.shouldSkipUpdate());
this.delegateSequence.setName(getName()); this.delegateSequence.onConnect(platform); setShouldUseTransaction(this.delegateSequence.shouldUseTransaction()); setShouldAcquireValueAfterInsert(this.delegateSequence.shouldAcquireValueAfterInsert()); setShouldSkipUpdate(this.delegateSequence.shouldSkipUpdate());