@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; }
/** * INTERNAL: */ public void onConnect() { super.onConnect(); if (getSelectQuery() == null) { setSelectQuery(buildSelectQuery()); wasSelectQueryCreated = getSelectQuery() != null; } if ((getUpdateQuery() == null) && !shouldSkipUpdate()) { setUpdateQuery(buildUpdateQuery()); wasUpdateQueryCreated = getUpdateQuery() != null; } }
/** * OBSOLETE: * This method lazy initializes the update sequence number query. It * allows for other queries to be used instead of the default one. */ public DataModifyQuery getUpdateSequenceQuery() { if (getDefaultSequence() instanceof QuerySequence) { return ((QuerySequence)getDefaultSequence()).getUpdateQuery(); } else { throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getUpdateQuery"); } }
/** * OBSOLETE: * This method lazy initializes the update sequence number query. It * allows for other queries to be used instead of the default one. */ public DataModifyQuery getUpdateSequenceQuery() { if (getDefaultSequence() instanceof QuerySequence) { return ((QuerySequence)getDefaultSequence()).getUpdateQuery(); } else { throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getUpdateQuery"); } }
/** * OBSOLETE: * This method lazy initializes the update sequence number query. It * allows for other queries to be used instead of the default one. */ public DataModifyQuery getUpdateSequenceQuery() { if (getDefaultSequence() instanceof QuerySequence) { return ((QuerySequence)getDefaultSequence()).getUpdateQuery(); } else { throw ValidationException.wrongSequenceType(Helper.getShortClassName(getDefaultSequence()), "getUpdateQuery"); } }
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 (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()); } } }
DataModifyQuery query = getUpdateQuery(); if (query != null) { if (accessor != null) {
DataModifyQuery query = getUpdateQuery(); if (query != null) { if (accessor != null) {
DataModifyQuery query = getUpdateQuery(); if (query != null) { if (accessor != null) {
setShouldSkipUpdate(this.delegateSequence.shouldSkipUpdate()); setShouldSelectBeforeUpdate(this.delegateSequence.shouldSelectBeforeUpdate()); setUpdateQuery(this.delegateSequence.getUpdateQuery()); super.onConnect(); return;
setShouldSkipUpdate(this.delegateSequence.shouldSkipUpdate()); setShouldSelectBeforeUpdate(this.delegateSequence.shouldSelectBeforeUpdate()); setUpdateQuery(this.delegateSequence.getUpdateQuery()); super.onConnect(); return;