Example usage for java.util Calendar equals

List of usage examples for java.util Calendar equals

Introduction

In this page you can find the example usage for java.util Calendar equals.

Prototype

@SuppressWarnings("EqualsWhichDoesntCheckParameterClass")
@Override
public boolean equals(Object obj) 

Source Link

Document

Compares this Calendar to the specified Object.

Usage

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmAddressTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmAddressTagHPKey) {
        CFCrmAddressTagHPKey rhs = (CFCrmAddressTagHPKey) obj;
        {//from  ww  w  .  j a v a 2s  . com
            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);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            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 CFCrmAddressTagPKey) {
        CFCrmAddressTagPKey rhs = (CFCrmAddressTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAddressTagHBuff) {
        CFCrmAddressTagHBuff rhs = (CFCrmAddressTagHBuff) 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);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAddressTagBuff) {
        CFCrmAddressTagBuff rhs = (CFCrmAddressTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmAttachmentTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmAttachmentTagHPKey) {
        CFCrmAttachmentTagHPKey rhs = (CFCrmAttachmentTagHPKey) obj;
        {/*from  w  w  w.j  a  v  a 2 s  .  com*/
            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 (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            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 CFCrmAttachmentTagPKey) {
        CFCrmAttachmentTagPKey rhs = (CFCrmAttachmentTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAttachmentTagHBuff) {
        CFCrmAttachmentTagHBuff rhs = (CFCrmAttachmentTagHBuff) 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 (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmAttachmentTagBuff) {
        CFCrmAttachmentTagBuff rhs = (CFCrmAttachmentTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmContactTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmContactTagHPKey) {
        CFCrmContactTagHPKey rhs = (CFCrmContactTagHPKey) obj;
        {/*from  w ww .ja v a  2 s  . c  o m*/
            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 (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            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 CFCrmContactTagPKey) {
        CFCrmContactTagPKey rhs = (CFCrmContactTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmContactTagHBuff) {
        CFCrmContactTagHBuff rhs = (CFCrmContactTagHBuff) 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 (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmContactTagBuff) {
        CFCrmContactTagBuff rhs = (CFCrmContactTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmMemoTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmMemoTagHPKey) {
        CFCrmMemoTagHPKey rhs = (CFCrmMemoTagHPKey) obj;
        {/* w  ww .  j  ava2s .c om*/
            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 (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            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 CFCrmMemoTagPKey) {
        CFCrmMemoTagPKey rhs = (CFCrmMemoTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmMemoTagHBuff) {
        CFCrmMemoTagHBuff rhs = (CFCrmMemoTagHBuff) 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 (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmMemoTagBuff) {
        CFCrmMemoTagBuff rhs = (CFCrmMemoTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrm.CFCrmPhoneTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFCrmPhoneTagHPKey) {
        CFCrmPhoneTagHPKey rhs = (CFCrmPhoneTagHPKey) obj;
        {// w  w w  . j  a v a 2  s  . co m
            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 (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            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 CFCrmPhoneTagPKey) {
        CFCrmPhoneTagPKey rhs = (CFCrmPhoneTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmPhoneTagHBuff) {
        CFCrmPhoneTagHBuff rhs = (CFCrmPhoneTagHBuff) 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 (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFCrmPhoneTagBuff) {
        CFCrmPhoneTagBuff rhs = (CFCrmPhoneTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredPhoneId() != rhs.getRequiredPhoneId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:models.Schedule.java

/**
 * if calendar is runnable, check last run. if last run is runnable,
 * there is a possible dupe.  if all non-default runnable units are ==,
 * then this is a dupe/*from  w w  w . j  av  a 2 s .c o m*/
 *
 * false if last run cal == cal
 *
 * @return true if the schedule should run (considering the last run time)
 **/
public boolean isRunnable(Calendar lastRunCalendar, Calendar calendar) {
    if (!isActive()) {
        // don't run inactive schedules
        return false;
    }

    if (lastRunCalendar != null && !lastRunCalendar.getTimeZone().equals(calendar.getTimeZone())) {
        throw new IllegalArgumentException(
                "Calendar time zones must be the same for comparison lastRunCalendar=" + lastRunCalendar
                        + ",calendar=" + calendar);
    }

    if (lastRunCalendar != null && lastRunCalendar.equals(calendar)) {
        //same as last run time, so don't run again
        logger.log(Level.FINE, "lastRunCalendar.equals( calendar ), returning false");
        return false;
    }

    boolean calendarIsRunnable = isRunnable(calendar);
    if (!calendarIsRunnable) {
        // no need to check lastRun time, already not elible to run
        logger.log(Level.FINE, "!calendarIsRunnable, returning false");
        return false;
    }

    if (lastRunCalendar == null) {
        logger.log(Level.FINE, "lastRunCalendar is null, returning calendarIsRunnable={0}", calendarIsRunnable);
        return calendarIsRunnable;
    }

    // calendar is runnable, so see if last calendar applies
    boolean lastRunCalendarIsRunnable = isRunnable(lastRunCalendar);
    if (!lastRunCalendarIsRunnable) {
        // lastRunCalendar does not apply, ignore it
        logger.log(Level.FINE, "!lastRunCalendarIsRunnable, returning calendarIsRunnable={0}",
                calendarIsRunnable);
        return calendarIsRunnable;
    }

    // both calendars are runnable, so this could be a dupe run
    // if all non-default runnable units are ==, then this is a dupe run

    // 1 identify non-default
    List<Integer> nonDefaultUnits = identifyNonDefaultUnits();
    if (nonDefaultUnits.size() == 0) {
        // schedule is wide open, and calendars are not equal, so just use calendar
        logger.log(Level.FINE, "schedule is wide open, calendars not equal, returning calendarIsRunnable={0}",
                calendarIsRunnable);
        return calendarIsRunnable;
    }

    // 2 if something is set, and all set units are equal, then it's a dupe
    //   if they are not all equal, it's runnable
    calendarIsRunnable = !areAllSetRangesUnitsEqual(lastRunCalendar, calendar, nonDefaultUnits);
    logger.log(Level.FINE, "checking for dupe units, returning calendarIsRunnable={0}", calendarIsRunnable);

    return calendarIsRunnable;
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccAddressTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFAccAddressTagHPKey) {
        CFAccAddressTagHPKey rhs = (CFAccAddressTagHPKey) obj;
        {/*w w  w.j a  va 2  s  . com*/
            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);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) 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 CFAccAddressTagPKey) {
        CFAccAddressTagPKey rhs = (CFAccAddressTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccAddressTagHBuff) {
        CFAccAddressTagHBuff rhs = (CFAccAddressTagHBuff) 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);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccAddressTagBuff) {
        CFAccAddressTagBuff rhs = (CFAccAddressTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAddressId() != rhs.getRequiredAddressId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccAttachmentTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFAccAttachmentTagHPKey) {
        CFAccAttachmentTagHPKey rhs = (CFAccAttachmentTagHPKey) obj;
        {/*  ww w. jav  a  2  s.  c  om*/
            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 (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) 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 CFAccAttachmentTagPKey) {
        CFAccAttachmentTagPKey rhs = (CFAccAttachmentTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccAttachmentTagHBuff) {
        CFAccAttachmentTagHBuff rhs = (CFAccAttachmentTagHBuff) 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 (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccAttachmentTagBuff) {
        CFAccAttachmentTagBuff rhs = (CFAccAttachmentTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredAttachmentId() != rhs.getRequiredAttachmentId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccContactTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFAccContactTagHPKey) {
        CFAccContactTagHPKey rhs = (CFAccContactTagHPKey) obj;
        {/*ww  w. j  a va2  s  .c o  m*/
            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 (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) 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 CFAccContactTagPKey) {
        CFAccContactTagPKey rhs = (CFAccContactTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccContactTagHBuff) {
        CFAccContactTagHBuff rhs = (CFAccContactTagHBuff) 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 (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccContactTagBuff) {
        CFAccContactTagBuff rhs = (CFAccContactTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredContactId() != rhs.getRequiredContactId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccMemoTagHPKey.java

public boolean equals(Object obj) {
    if (obj == null) {
        return (false);
    } else if (obj instanceof CFAccMemoTagHPKey) {
        CFAccMemoTagHPKey rhs = (CFAccMemoTagHPKey) obj;
        {//from   ww  w.  j  a v a  2 s.  co  m
            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 (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) 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 CFAccMemoTagPKey) {
        CFAccMemoTagPKey rhs = (CFAccMemoTagPKey) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccMemoTagHBuff) {
        CFAccMemoTagHBuff rhs = (CFAccMemoTagHBuff) 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 (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else if (obj instanceof CFAccMemoTagBuff) {
        CFAccMemoTagBuff rhs = (CFAccMemoTagBuff) obj;
        if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
            return (false);
        }
        if (getRequiredMemoId() != rhs.getRequiredMemoId()) {
            return (false);
        }
        if (getRequiredTagId() != rhs.getRequiredTagId()) {
            return (false);
        }
        return (true);
    } else {
        return (false);
    }
}