@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; }
if (shouldSkipUpdate()) { return (Number)select(accessor, writeSession, seqName, sizeInteger); } else {
if (shouldSkipUpdate()) { return (Number)select(accessor, writeSession, seqName, sizeInteger); } else {
if (shouldSkipUpdate()) { return (Number)select(accessor, writeSession, seqName, sizeInteger); } else {
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; } }
/** * INTERNAL: */ public void onConnect() { super.onConnect(); if (getSelectQuery() == null) { setSelectQuery(buildSelectQuery()); wasSelectQueryCreated = getSelectQuery() != null; } if ((getUpdateQuery() == null) && !shouldSkipUpdate()) { setUpdateQuery(buildUpdateQuery()); wasUpdateQueryCreated = getUpdateQuery() != null; } }
/** * INTERNAL: */ public void onConnect() { super.onConnect(); if (getSelectQuery() == null) { setSelectQuery(buildSelectQuery()); wasSelectQueryCreated = getSelectQuery() != null; if (wasSelectQueryCreated) { getSelectQuery().setName(getName()); } } if ((getUpdateQuery() == null) && !shouldSkipUpdate()) { setUpdateQuery(buildUpdateQuery()); wasUpdateQueryCreated = getUpdateQuery() != null; if (wasUpdateQueryCreated) { getUpdateQuery().setName(getName()); } } }
/** * INTERNAL: */ public void onConnect() { super.onConnect(); if (getSelectQuery() == null) { setSelectQuery(buildSelectQuery()); wasSelectQueryCreated = getSelectQuery() != null; if (wasSelectQueryCreated) { getSelectQuery().setName(getName()); } } if ((getUpdateQuery() == null) && !shouldSkipUpdate()) { setUpdateQuery(buildUpdateQuery()); wasUpdateQueryCreated = getUpdateQuery() != null; if (wasUpdateQueryCreated) { getUpdateQuery().setName(getName()); } } }
setShouldUseTransaction(this.delegateSequence.shouldUseTransaction()); setShouldAcquireValueAfterInsert(this.delegateSequence.shouldAcquireValueAfterInsert()); setShouldSkipUpdate(this.delegateSequence.shouldSkipUpdate()); setShouldSelectBeforeUpdate(this.delegateSequence.shouldSelectBeforeUpdate()); setUpdateQuery(this.delegateSequence.getUpdateQuery());
setShouldUseTransaction(this.delegateSequence.shouldUseTransaction()); setShouldAcquireValueAfterInsert(this.delegateSequence.shouldAcquireValueAfterInsert()); setShouldSkipUpdate(this.delegateSequence.shouldSkipUpdate()); setShouldSelectBeforeUpdate(this.delegateSequence.shouldSelectBeforeUpdate()); setUpdateQuery(this.delegateSequence.getUpdateQuery());