if (info.isInsertModeReturnOnly()) { strInsert = strInsert + "ReturnOnly";
@Override public int hashCode() { DatabaseField field = getField(); Class type = field != null ? field.getType() : null; boolean isInsert = isInsert(); boolean isInsertModeReturnOnly = isInsertModeReturnOnly(); boolean isUpdate = isUpdate(); int result = field != null ? field.hashCode() : 0; result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (isInsert ? 1 : 0); result = 31 * result + (isInsertModeReturnOnly ? 1 : 0); result = 31 * result + (isUpdate ? 1 : 0); return result; } }
if (info1.isInsert() && !info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info1.isInsertModeReturnOnly(); } else if (!info1.isInsert() && info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info2.isInsertModeReturnOnly(); } else if (info1.isInsert() && info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info1.isInsertModeReturnOnly(); if (info1.isInsertModeReturnOnly() != info2.isInsertModeReturnOnly()) { session.getIntegrityChecker().handleError(DescriptorException.returningPolicyFieldInsertConflict(info1.getField().getName(), descriptor)); ok = false;
if (info1.isInsert() && !info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info1.isInsertModeReturnOnly(); } else if (!info1.isInsert() && info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info2.isInsertModeReturnOnly(); } else if (info1.isInsert() && info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info1.isInsertModeReturnOnly(); if (info1.isInsertModeReturnOnly() != info2.isInsertModeReturnOnly()) { session.getIntegrityChecker().handleError(DescriptorException.returningPolicyFieldInsertConflict(info1.getField().getName(), descriptor)); ok = false;
if (info1.isInsert() && !info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info1.isInsertModeReturnOnly(); } else if (!info1.isInsert() && info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info2.isInsertModeReturnOnly(); } else if (info1.isInsert() && info2.isInsert()) { isInsertMerged = true; isInsertModeReturnOnlyMerged = info1.isInsertModeReturnOnly(); if (info1.isInsertModeReturnOnly() != info2.isInsertModeReturnOnly()) { session.getIntegrityChecker().handleError(DescriptorException.returningPolicyFieldInsertConflict(info1.getField().getName(), descriptor)); ok = false;
if (info.isInsertModeReturnOnly()) { strInsert = strInsert + "ReturnOnly";
if (info.isInsertModeReturnOnly()) { strInsert = strInsert + "ReturnOnly";
boolean equals(Info infoToCompare) { if (this == infoToCompare) { return true; } if (!getField().equals(infoToCompare.getField())) { return false; } if ((getField().getType() == null) && (infoToCompare.getField().getType() != null)) { return false; } if ((getField().getType() != null) && !getField().getType().equals(infoToCompare.getField().getType())) { return false; } if (isInsert() != infoToCompare.isInsert()) { return false; } if (isInsertModeReturnOnly() != infoToCompare.isInsertModeReturnOnly()) { return false; } if (isUpdate() != infoToCompare.isUpdate()) { return false; } return true; } }
boolean equals(Info infoToCompare) { if (this == infoToCompare) { return true; } if (!getField().equals(infoToCompare.getField())) { return false; } if ((getField().getType() == null) && (infoToCompare.getField().getType() != null)) { return false; } if ((getField().getType() != null) && !getField().getType().equals(infoToCompare.getField().getType())) { return false; } if (isInsert() != infoToCompare.isInsert()) { return false; } if (isInsertModeReturnOnly() != infoToCompare.isInsertModeReturnOnly()) { return false; } if (isUpdate() != infoToCompare.isUpdate()) { return false; } return true; }
boolean equals(Info infoToCompare) { if (this == infoToCompare) { return true; } if (!getField().equals(infoToCompare.getField())) { return false; } if ((getField().getType() == null) && (infoToCompare.getField().getType() != null)) { return false; } if ((getField().getType() != null) && !getField().getType().equals(infoToCompare.getField().getType())) { return false; } if (isInsert() != infoToCompare.isInsert()) { return false; } if (isInsertModeReturnOnly() != infoToCompare.isInsertModeReturnOnly()) { return false; } if (isUpdate() != infoToCompare.isUpdate()) { return false; } return true; } }