public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFFreeSwitchFSSFDirectoryHBuff) { CFFreeSwitchFSSFDirectoryHBuff rhs = (CFFreeSwitchFSSFDirectoryHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredFSSFDirectoryId() != rhs.getRequiredFSSFDirectoryId()) { return (false); } if (getRequiredFSSofiaId() != rhs.getRequiredFSSofiaId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } if (!getRequiredDialString().equals(rhs.getRequiredDialString())) { return (false); } if (getRequiredRecordStereo() != rhs.getRequiredRecordStereo()) { return (false); } if (!getRequiredDefaultGateway().equals(rhs.getRequiredDefaultGateway())) { return (false); } if (!getRequiredDefaultAreacode().equals(rhs.getRequiredDefaultAreacode())) { return (false); } if (!getRequiredTransferFallbackExtension() .equals(rhs.getRequiredTransferFallbackExtension())) { return (false); } return (true); } else if (obj instanceof CFFreeSwitchFSSFDirectoryBuff) { CFFreeSwitchFSSFDirectoryBuff rhs = (CFFreeSwitchFSSFDirectoryBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredFSSFDirectoryId() != rhs.getRequiredFSSFDirectoryId()) { return (false); } if (getRequiredFSSofiaId() != rhs.getRequiredFSSofiaId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } if (!getRequiredDialString().equals(rhs.getRequiredDialString())) { return (false); } if (getRequiredRecordStereo() != rhs.getRequiredRecordStereo()) { return (false); } if (!getRequiredDefaultGateway().equals(rhs.getRequiredDefaultGateway())) { return (false); } if (!getRequiredDefaultAreacode().equals(rhs.getRequiredDefaultAreacode())) { return (false); } if (!getRequiredTransferFallbackExtension() .equals(rhs.getRequiredTransferFallbackExtension())) { return (false); } return (true); } else if (obj instanceof CFFreeSwitchFSSFDirectoryByTenantIdxKey) { CFFreeSwitchFSSFDirectoryByTenantIdxKey rhs = (CFFreeSwitchFSSFDirectoryByTenantIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } return (true); } else if (obj instanceof CFFreeSwitchFSSFDirectoryBySofiaIdxKey) { CFFreeSwitchFSSFDirectoryBySofiaIdxKey rhs = (CFFreeSwitchFSSFDirectoryBySofiaIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredFSSofiaId() != rhs.getRequiredFSSofiaId()) { return (false); } return (true); } else if (obj instanceof CFFreeSwitchFSSFDirectoryByUNameIdxKey) { CFFreeSwitchFSSFDirectoryByUNameIdxKey rhs = (CFFreeSwitchFSSFDirectoryByUNameIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredFSSofiaId() != rhs.getRequiredFSSofiaId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFFreeSwitchFSSFDirectoryHPKey) { CFFreeSwitchFSSFDirectoryHPKey rhs = (CFFreeSwitchFSSFDirectoryHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredFSSFDirectoryId() != rhs.getRequiredFSSFDirectoryId()) { return (false); } return (true); } else if (obj instanceof CFFreeSwitchHPKey) { CFFreeSwitchHPKey rhs = (CFFreeSwitchHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } return (true); } else if (obj instanceof CFFreeSwitchFSSFDirectoryPKey) { CFFreeSwitchFSSFDirectoryPKey rhs = (CFFreeSwitchFSSFDirectoryPKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredFSSFDirectoryId() != rhs.getRequiredFSSFDirectoryId()) { return (false); } return (true); } else { return (super.equals(obj)); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamEnumTagHBuff) { CFBamEnumTagHBuff rhs = (CFBamEnumTagHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getOptionalDefSchemaTenantId() != null) { if (rhs.getOptionalDefSchemaTenantId() != null) { if (!getOptionalDefSchemaTenantId().equals(rhs.getOptionalDefSchemaTenantId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaTenantId() != null) { return (false); } } if (getOptionalDefSchemaId() != null) { if (rhs.getOptionalDefSchemaId() != null) { if (!getOptionalDefSchemaId().equals(rhs.getOptionalDefSchemaId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaId() != null) { return (false); } } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } if (getOptionalEnumCode() != null) { if (rhs.getOptionalEnumCode() != null) { if (!getOptionalEnumCode().equals(rhs.getOptionalEnumCode())) { return (false); } } } else { if (rhs.getOptionalEnumCode() != null) { return (false); } } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } if (getOptionalPrevTenantId() != null) { if (rhs.getOptionalPrevTenantId() != null) { if (!getOptionalPrevTenantId().equals(rhs.getOptionalPrevTenantId())) { return (false); } } } else { if (rhs.getOptionalPrevTenantId() != null) { return (false); } } if (getOptionalPrevId() != null) { if (rhs.getOptionalPrevId() != null) { if (!getOptionalPrevId().equals(rhs.getOptionalPrevId())) { return (false); } } } else { if (rhs.getOptionalPrevId() != null) { return (false); } } if (getOptionalNextTenantId() != null) { if (rhs.getOptionalNextTenantId() != null) { if (!getOptionalNextTenantId().equals(rhs.getOptionalNextTenantId())) { return (false); } } } else { if (rhs.getOptionalNextTenantId() != null) { return (false); } } if (getOptionalNextId() != null) { if (rhs.getOptionalNextId() != null) { if (!getOptionalNextId().equals(rhs.getOptionalNextId())) { return (false); } } } else { if (rhs.getOptionalNextId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagBuff) { CFBamEnumTagBuff rhs = (CFBamEnumTagBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getOptionalDefSchemaTenantId() != null) { if (rhs.getOptionalDefSchemaTenantId() != null) { if (!getOptionalDefSchemaTenantId().equals(rhs.getOptionalDefSchemaTenantId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaTenantId() != null) { return (false); } } if (getOptionalDefSchemaId() != null) { if (rhs.getOptionalDefSchemaId() != null) { if (!getOptionalDefSchemaId().equals(rhs.getOptionalDefSchemaId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaId() != null) { return (false); } } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } if (getOptionalEnumCode() != null) { if (rhs.getOptionalEnumCode() != null) { if (!getOptionalEnumCode().equals(rhs.getOptionalEnumCode())) { return (false); } } } else { if (rhs.getOptionalEnumCode() != null) { return (false); } } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } if (getOptionalPrevTenantId() != null) { if (rhs.getOptionalPrevTenantId() != null) { if (!getOptionalPrevTenantId().equals(rhs.getOptionalPrevTenantId())) { return (false); } } } else { if (rhs.getOptionalPrevTenantId() != null) { return (false); } } if (getOptionalPrevId() != null) { if (rhs.getOptionalPrevId() != null) { if (!getOptionalPrevId().equals(rhs.getOptionalPrevId())) { return (false); } } } else { if (rhs.getOptionalPrevId() != null) { return (false); } } if (getOptionalNextTenantId() != null) { if (rhs.getOptionalNextTenantId() != null) { if (!getOptionalNextTenantId().equals(rhs.getOptionalNextTenantId())) { return (false); } } } else { if (rhs.getOptionalNextTenantId() != null) { return (false); } } if (getOptionalNextId() != null) { if (rhs.getOptionalNextId() != null) { if (!getOptionalNextId().equals(rhs.getOptionalNextId())) { return (false); } } } else { if (rhs.getOptionalNextId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagByEnumTagTenantIdxKey) { CFBamEnumTagByEnumTagTenantIdxKey rhs = (CFBamEnumTagByEnumTagTenantIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } return (true); } else if (obj instanceof CFBamEnumTagByEnumIdxKey) { CFBamEnumTagByEnumIdxKey rhs = (CFBamEnumTagByEnumIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } return (true); } else if (obj instanceof CFBamEnumTagByDefSchemaIdxKey) { CFBamEnumTagByDefSchemaIdxKey rhs = (CFBamEnumTagByDefSchemaIdxKey) obj; if (getOptionalDefSchemaTenantId() != null) { if (rhs.getOptionalDefSchemaTenantId() != null) { if (!getOptionalDefSchemaTenantId().equals(rhs.getOptionalDefSchemaTenantId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaTenantId() != null) { return (false); } } if (getOptionalDefSchemaId() != null) { if (rhs.getOptionalDefSchemaId() != null) { if (!getOptionalDefSchemaId().equals(rhs.getOptionalDefSchemaId())) { return (false); } } } else { if (rhs.getOptionalDefSchemaId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagByEnumNameIdxKey) { CFBamEnumTagByEnumNameIdxKey rhs = (CFBamEnumTagByEnumNameIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredEnumId() != rhs.getRequiredEnumId()) { return (false); } if (!getRequiredName().equals(rhs.getRequiredName())) { return (false); } return (true); } else if (obj instanceof CFBamEnumTagByPrevIdxKey) { CFBamEnumTagByPrevIdxKey rhs = (CFBamEnumTagByPrevIdxKey) obj; if (getOptionalPrevTenantId() != null) { if (rhs.getOptionalPrevTenantId() != null) { if (!getOptionalPrevTenantId().equals(rhs.getOptionalPrevTenantId())) { return (false); } } } else { if (rhs.getOptionalPrevTenantId() != null) { return (false); } } if (getOptionalPrevId() != null) { if (rhs.getOptionalPrevId() != null) { if (!getOptionalPrevId().equals(rhs.getOptionalPrevId())) { return (false); } } } else { if (rhs.getOptionalPrevId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagByNextIdxKey) { CFBamEnumTagByNextIdxKey rhs = (CFBamEnumTagByNextIdxKey) obj; if (getOptionalNextTenantId() != null) { if (rhs.getOptionalNextTenantId() != null) { if (!getOptionalNextTenantId().equals(rhs.getOptionalNextTenantId())) { return (false); } } } else { if (rhs.getOptionalNextTenantId() != null) { return (false); } } if (getOptionalNextId() != null) { if (rhs.getOptionalNextId() != null) { if (!getOptionalNextId().equals(rhs.getOptionalNextId())) { return (false); } } } else { if (rhs.getOptionalNextId() != null) { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagHPKey) { CFBamEnumTagHPKey rhs = (CFBamEnumTagHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamHPKey) { CFBamHPKey rhs = (CFBamHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } return (true); } else if (obj instanceof CFBamEnumTagPKey) { CFBamEnumTagPKey rhs = (CFBamEnumTagPKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else { return (super.equals(obj)); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFSecuritySysClusterHBuff) { CFSecuritySysClusterHBuff rhs = (CFSecuritySysClusterHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredSingletonId() != rhs.getRequiredSingletonId()) { return (false); } if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } return (true); } else if (obj instanceof CFSecuritySysClusterBuff) { CFSecuritySysClusterBuff rhs = (CFSecuritySysClusterBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredSingletonId() != rhs.getRequiredSingletonId()) { return (false); } if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } return (true); } else if (obj instanceof CFSecuritySysClusterByClusterIdxKey) { CFSecuritySysClusterByClusterIdxKey rhs = (CFSecuritySysClusterByClusterIdxKey) obj; if (getRequiredClusterId() != rhs.getRequiredClusterId()) { return (false); } return (true); } else if (obj instanceof CFSecuritySysClusterHPKey) { CFSecuritySysClusterHPKey rhs = (CFSecuritySysClusterHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredSingletonId() != rhs.getRequiredSingletonId()) { return (false); } return (true); } else if (obj instanceof CFSecurityHPKey) { CFSecurityHPKey rhs = (CFSecurityHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } return (true); } else if (obj instanceof CFSecuritySysClusterPKey) { CFSecuritySysClusterPKey rhs = (CFSecuritySysClusterPKey) obj; if (getRequiredSingletonId() != rhs.getRequiredSingletonId()) { return (false); } return (true); } else { return (super.equals(obj)); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamISOLanguageHPKey) { CFBamISOLanguageHPKey rhs = (CFBamISOLanguageHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamHPKey) { CFBamHPKey rhs = (CFBamHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } return (true); } else if (obj instanceof CFBamISOLanguagePKey) { CFBamISOLanguagePKey rhs = (CFBamISOLanguagePKey) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamISOLanguageHBuff) { CFBamISOLanguageHBuff rhs = (CFBamISOLanguageHBuff) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamISOLanguageBuff) { CFBamISOLanguageBuff rhs = (CFBamISOLanguageBuff) obj; if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else { return (false); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFCrmAddressHBuff) { CFCrmAddressHBuff rhs = (CFCrmAddressHBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredAddressId() != rhs.getRequiredAddressId()) { return (false); } if (getRequiredContactId() != rhs.getRequiredContactId()) { return (false); } if (!getRequiredDescription().equals(rhs.getRequiredDescription())) { return (false); } if (getOptionalAddrLine1() != null) { if (rhs.getOptionalAddrLine1() != null) { if (!getOptionalAddrLine1().equals(rhs.getOptionalAddrLine1())) { return (false); } } } else { if (rhs.getOptionalAddrLine1() != null) { return (false); } } if (getOptionalAddrLine2() != null) { if (rhs.getOptionalAddrLine2() != null) { if (!getOptionalAddrLine2().equals(rhs.getOptionalAddrLine2())) { return (false); } } } else { if (rhs.getOptionalAddrLine2() != null) { return (false); } } if (getOptionalCity() != null) { if (rhs.getOptionalCity() != null) { if (!getOptionalCity().equals(rhs.getOptionalCity())) { return (false); } } } else { if (rhs.getOptionalCity() != null) { return (false); } } if (getOptionalState() != null) { if (rhs.getOptionalState() != null) { if (!getOptionalState().equals(rhs.getOptionalState())) { return (false); } } } else { if (rhs.getOptionalState() != null) { return (false); } } if (getOptionalCountryId() != null) { if (rhs.getOptionalCountryId() != null) { if (!getOptionalCountryId().equals(rhs.getOptionalCountryId())) { return (false); } } } else { if (rhs.getOptionalCountryId() != null) { return (false); } } if (getOptionalZip() != null) { if (rhs.getOptionalZip() != null) { if (!getOptionalZip().equals(rhs.getOptionalZip())) { return (false); } } } else { if (rhs.getOptionalZip() != null) { return (false); } } return (true); } else if (obj instanceof CFCrmAddressBuff) { CFCrmAddressBuff rhs = (CFCrmAddressBuff) obj; if (!super.equals(obj)) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredAddressId() != rhs.getRequiredAddressId()) { return (false); } if (getRequiredContactId() != rhs.getRequiredContactId()) { return (false); } if (!getRequiredDescription().equals(rhs.getRequiredDescription())) { return (false); } if (getOptionalAddrLine1() != null) { if (rhs.getOptionalAddrLine1() != null) { if (!getOptionalAddrLine1().equals(rhs.getOptionalAddrLine1())) { return (false); } } } else { if (rhs.getOptionalAddrLine1() != null) { return (false); } } if (getOptionalAddrLine2() != null) { if (rhs.getOptionalAddrLine2() != null) { if (!getOptionalAddrLine2().equals(rhs.getOptionalAddrLine2())) { return (false); } } } else { if (rhs.getOptionalAddrLine2() != null) { return (false); } } if (getOptionalCity() != null) { if (rhs.getOptionalCity() != null) { if (!getOptionalCity().equals(rhs.getOptionalCity())) { return (false); } } } else { if (rhs.getOptionalCity() != null) { return (false); } } if (getOptionalState() != null) { if (rhs.getOptionalState() != null) { if (!getOptionalState().equals(rhs.getOptionalState())) { return (false); } } } else { if (rhs.getOptionalState() != null) { return (false); } } if (getOptionalCountryId() != null) { if (rhs.getOptionalCountryId() != null) { if (!getOptionalCountryId().equals(rhs.getOptionalCountryId())) { return (false); } } } else { if (rhs.getOptionalCountryId() != null) { return (false); } } if (getOptionalZip() != null) { if (rhs.getOptionalZip() != null) { if (!getOptionalZip().equals(rhs.getOptionalZip())) { return (false); } } } else { if (rhs.getOptionalZip() != null) { return (false); } } return (true); } else if (obj instanceof CFCrmAddressByTenantIdxKey) { CFCrmAddressByTenantIdxKey rhs = (CFCrmAddressByTenantIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } return (true); } else if (obj instanceof CFCrmAddressByContactIdxKey) { CFCrmAddressByContactIdxKey rhs = (CFCrmAddressByContactIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredContactId() != rhs.getRequiredContactId()) { return (false); } return (true); } else if (obj instanceof CFCrmAddressByUDescrIdxKey) { CFCrmAddressByUDescrIdxKey rhs = (CFCrmAddressByUDescrIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredContactId() != rhs.getRequiredContactId()) { return (false); } if (!getRequiredDescription().equals(rhs.getRequiredDescription())) { return (false); } return (true); } else if (obj instanceof CFCrmAddressByCountryIdxKey) { CFCrmAddressByCountryIdxKey rhs = (CFCrmAddressByCountryIdxKey) obj; if (getOptionalCountryId() != null) { if (rhs.getOptionalCountryId() != null) { if (!getOptionalCountryId().equals(rhs.getOptionalCountryId())) { return (false); } } } else { if (rhs.getOptionalCountryId() != null) { return (false); } } return (true); } else if (obj instanceof CFCrmAddressHPKey) { CFCrmAddressHPKey rhs = (CFCrmAddressHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredAddressId() != rhs.getRequiredAddressId()) { return (false); } return (true); } else if (obj instanceof CFCrmHPKey) { CFCrmHPKey rhs = (CFCrmHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } return (true); } else if (obj instanceof CFCrmAddressPKey) { CFCrmAddressPKey rhs = (CFCrmAddressPKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredAddressId() != rhs.getRequiredAddressId()) { return (false); } return (true); } else { return (super.equals(obj)); } }
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException { CFFreeSwitchXMsgSchemaMessageFormatter schemaFormatter = null; try { // Common XML Attributes String attrId = null; // Request Attributes String attrSecSessionId = null; // Attribute Extraction String attrLocalName; int numAttrs; int idxAttr; final String S_ProcName = "startElement"; final String S_LocalName = "LocalName"; assert qName.equals("RqstLogOut"); CFFreeSwitchXMsgRqstHandler xmsgRqstHandler = (CFFreeSwitchXMsgRqstHandler) getParser(); if (xmsgRqstHandler == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "getParser()"); } schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter(); ICFFreeSwitchSchemaObj schemaObj = xmsgRqstHandler.getSchemaObj(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "getParser().getSchemaObj()"); } // Extract Attributes numAttrs = attrs.getLength(); for (idxAttr = 0; idxAttr < numAttrs; idxAttr++) { attrLocalName = attrs.getLocalName(idxAttr); if (attrLocalName.equals("Id")) { if (attrId != null) { throw CFLib.getDefaultExceptionFactory() .newUniqueIndexViolationException( getClass(), S_ProcName, S_LocalName, attrLocalName); } attrId = attrs.getValue(idxAttr); } else if (attrLocalName.equals("SecSessionId")) { if (attrSecSessionId != null) { throw CFLib.getDefaultExceptionFactory() .newUniqueIndexViolationException( getClass(), S_ProcName, S_LocalName, attrLocalName); } attrSecSessionId = attrs.getValue(idxAttr); } else if (attrLocalName.equals("schemaLocation")) { // ignored } else { throw CFLib.getDefaultExceptionFactory() .newUnrecognizedAttributeException( getClass(), S_ProcName, getParser().getLocationInfo(), attrLocalName); } } // Ensure that required attributes have values if ((attrSecSessionId == null) || (attrSecSessionId.length() <= 0)) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "SecSessionId"); } UUID secSessionId = UUID.fromString(attrSecSessionId); if (secSessionId == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "converted-secSessionId"); } if (schemaObj.getAuthorization() == null) { throw CFLib.getDefaultExceptionFactory() .newRuntimeException(getClass(), S_ProcName, "Already disconnected from the database"); } ICFSecuritySecSessionObj secSession = schemaObj.getSecSession(); if (secSession == null) { throw CFLib.getDefaultExceptionFactory() .newRuntimeException( getClass(), S_ProcName, "Security session does not exist for this schema"); } if (!secSessionId.equals(secSession.getRequiredSecSessionId())) { throw CFLib.getDefaultExceptionFactory() .newRuntimeException( getClass(), S_ProcName, "Security session id does not match the one established by this schema"); } if (secSession.getOptionalFinish() == null) { schemaObj.rollback(); schemaObj.beginTransaction(); ICFSecuritySecSessionEditObj editSecSession = secSession.beginEdit(); editSecSession.setOptionalFinish(Calendar.getInstance()); editSecSession.update(); editSecSession.endEdit(); schemaObj.commit(); } schemaObj.disconnect(false); schemaObj.setAuthorization(null); String response = schemaFormatter.formatRspnXmlPreamble() + "\n" + "\t" + CFFreeSwitchXMsgSchemaMessageFormatter.formatRspnLoggedOut("\n\t\t\t", secSessionId) + "\n" + schemaFormatter.formatRspnXmlPostamble(); ((CFFreeSwitchXMsgRqstHandler) getParser()).appendResponse(response); } catch (RuntimeException e) { CFFreeSwitchXMsgRqstHandler xmsgRqstHandler = ((CFFreeSwitchXMsgRqstHandler) getParser()); schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter(); String response = schemaFormatter.formatRspnXmlPreamble() + "\n" + "\t" + CFFreeSwitchXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e) + "\n" + schemaFormatter.formatRspnXmlPostamble(); xmsgRqstHandler.resetResponse(); xmsgRqstHandler.appendResponse(response); xmsgRqstHandler.setCaughtException(true); } catch (Error e) { CFFreeSwitchXMsgRqstHandler xmsgRqstHandler = ((CFFreeSwitchXMsgRqstHandler) getParser()); schemaFormatter = xmsgRqstHandler.getSchemaMessageFormatter(); String response = schemaFormatter.formatRspnXmlPreamble() + "\n" + "\t" + CFFreeSwitchXMsgSchemaMessageFormatter.formatRspnException("\n\t\t\t", e) + "\n" + schemaFormatter.formatRspnXmlPostamble(); xmsgRqstHandler.resetResponse(); xmsgRqstHandler.appendResponse(response); xmsgRqstHandler.setCaughtException(true); } }