Example usage for java.util Calendar compareTo

List of usage examples for java.util Calendar compareTo

Introduction

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

Prototype

private int compareTo(long t) 

Source Link

Usage

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstTldHPKey.java

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstTldHBuff) {
        CFAstTldHBuff rhs = (CFAstTldHBuff) obj;
        int retval = 0;
        {/*w w w.  j a v a  2  s .com*/
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTLDId() < rhs.getRequiredTLDId()) {
            return (-1);
        } else if (getRequiredTLDId() > rhs.getRequiredTLDId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstTldHPKey) {
        CFAstTldHPKey rhs = (CFAstTldHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTLDId() < rhs.getRequiredTLDId()) {
            return (-1);
        } else if (getRequiredTLDId() > rhs.getRequiredTLDId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstHPKey) {
        CFAstHPKey rhs = (CFAstHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAstTldPKey) {
        CFAstTldPKey rhs = (CFAstTldPKey) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTLDId() < rhs.getRequiredTLDId()) {
            return (-1);
        } else if (getRequiredTLDId() > rhs.getRequiredTLDId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstTldBuff) {
        CFAstTldBuff rhs = (CFAstTldBuff) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTLDId() < rhs.getRequiredTLDId()) {
            return (-1);
        } else if (getRequiredTLDId() > rhs.getRequiredTLDId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstTldHPKey, CFAstTldPKey, CFAstTldBuff");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstTSecGroupHPKey.java

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstTSecGroupHBuff) {
        CFAstTSecGroupHBuff rhs = (CFAstTSecGroupHBuff) obj;
        int retval = 0;
        {// w  ww.java 2  s .  c  om
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupId() < rhs.getRequiredTSecGroupId()) {
            return (-1);
        } else if (getRequiredTSecGroupId() > rhs.getRequiredTSecGroupId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstTSecGroupHPKey) {
        CFAstTSecGroupHPKey rhs = (CFAstTSecGroupHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupId() < rhs.getRequiredTSecGroupId()) {
            return (-1);
        } else if (getRequiredTSecGroupId() > rhs.getRequiredTSecGroupId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstHPKey) {
        CFAstHPKey rhs = (CFAstHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAstTSecGroupPKey) {
        CFAstTSecGroupPKey rhs = (CFAstTSecGroupPKey) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupId() < rhs.getRequiredTSecGroupId()) {
            return (-1);
        } else if (getRequiredTSecGroupId() > rhs.getRequiredTSecGroupId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstTSecGroupBuff) {
        CFAstTSecGroupBuff rhs = (CFAstTSecGroupBuff) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupId() < rhs.getRequiredTSecGroupId()) {
            return (-1);
        } else if (getRequiredTSecGroupId() > rhs.getRequiredTSecGroupId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstTSecGroupHPKey, CFAstTSecGroupPKey, CFAstTSecGroupBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccAccountContactHBuff) {
        CFAccAccountContactHBuff rhs = (CFAccAccountContactHBuff) obj;
        int retval = 0;
        {/* w  w w  .j  av a  2s.  c om*/
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredAccountId() < rhs.getRequiredAccountId()) {
            return (-1);
        } else if (getRequiredAccountId() > rhs.getRequiredAccountId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccAccountContactHPKey) {
        CFAccAccountContactHPKey rhs = (CFAccAccountContactHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredAccountId() < rhs.getRequiredAccountId()) {
            return (-1);
        } else if (getRequiredAccountId() > rhs.getRequiredAccountId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAccAccountContactPKey) {
        CFAccAccountContactPKey rhs = (CFAccAccountContactPKey) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredAccountId() < rhs.getRequiredAccountId()) {
            return (-1);
        } else if (getRequiredAccountId() > rhs.getRequiredAccountId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccAccountContactBuff) {
        CFAccAccountContactBuff rhs = (CFAccAccountContactBuff) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredAccountId() < rhs.getRequiredAccountId()) {
            return (-1);
        } else if (getRequiredAccountId() > rhs.getRequiredAccountId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccAccountContactHPKey, CFAccAccountContactPKey, CFAccAccountContactBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccSecGroupFormHBuff) {
        CFAccSecGroupFormHBuff rhs = (CFAccSecGroupFormHBuff) obj;
        int retval = 0;
        {/* w  w w.ja v a 2s.com*/
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupFormHPKey) {
        CFAccSecGroupFormHPKey rhs = (CFAccSecGroupFormHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupFormPKey) {
        CFAccSecGroupFormPKey rhs = (CFAccSecGroupFormPKey) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupFormBuff) {
        CFAccSecGroupFormBuff rhs = (CFAccSecGroupFormBuff) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccSecGroupFormHPKey, CFAccSecGroupFormPKey, CFAccSecGroupFormBuff");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstSecGroupFormHPKey.java

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstSecGroupFormHBuff) {
        CFAstSecGroupFormHBuff rhs = (CFAstSecGroupFormHBuff) obj;
        int retval = 0;
        {/* w w w .jav a  2s .c om*/
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstSecGroupFormHPKey) {
        CFAstSecGroupFormHPKey rhs = (CFAstSecGroupFormHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstHPKey) {
        CFAstHPKey rhs = (CFAstHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAstSecGroupFormPKey) {
        CFAstSecGroupFormPKey rhs = (CFAstSecGroupFormPKey) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstSecGroupFormBuff) {
        CFAstSecGroupFormBuff rhs = (CFAstSecGroupFormBuff) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupFormId() < rhs.getRequiredSecGroupFormId()) {
            return (-1);
        } else if (getRequiredSecGroupFormId() > rhs.getRequiredSecGroupFormId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstSecGroupFormHPKey, CFAstSecGroupFormPKey, CFAstSecGroupFormBuff");
    }
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsterisk.CFAsteriskConfigurationFileHPKey.java

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAsteriskConfigurationFileHBuff) {
        CFAsteriskConfigurationFileHBuff rhs = (CFAsteriskConfigurationFileHBuff) obj;
        int retval = 0;
        {/* w w  w  .  j a  v a 2 s .c  om*/
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAsteriskConfigurationFileHPKey) {
        CFAsteriskConfigurationFileHPKey rhs = (CFAsteriskConfigurationFileHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAsteriskHPKey) {
        CFAsteriskHPKey rhs = (CFAsteriskHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAsteriskConfigurationFilePKey) {
        CFAsteriskConfigurationFilePKey rhs = (CFAsteriskConfigurationFilePKey) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAsteriskConfigurationFileBuff) {
        CFAsteriskConfigurationFileBuff rhs = (CFAsteriskConfigurationFileBuff) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj,
                "CFAsteriskConfigurationFileHPKey, CFAsteriskConfigurationFilePKey, CFAsteriskConfigurationFileBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccSecGroupIncludeHBuff) {
        CFAccSecGroupIncludeHBuff rhs = (CFAccSecGroupIncludeHBuff) obj;
        int retval = 0;
        {//from w  w w  .ja  v  a  2 s  .  co  m
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupIncludeId() < rhs.getRequiredSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredSecGroupIncludeId() > rhs.getRequiredSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupIncludeHPKey) {
        CFAccSecGroupIncludeHPKey rhs = (CFAccSecGroupIncludeHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupIncludeId() < rhs.getRequiredSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredSecGroupIncludeId() > rhs.getRequiredSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupIncludePKey) {
        CFAccSecGroupIncludePKey rhs = (CFAccSecGroupIncludePKey) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupIncludeId() < rhs.getRequiredSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredSecGroupIncludeId() > rhs.getRequiredSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupIncludeBuff) {
        CFAccSecGroupIncludeBuff rhs = (CFAccSecGroupIncludeBuff) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupIncludeId() < rhs.getRequiredSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredSecGroupIncludeId() > rhs.getRequiredSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccSecGroupIncludeHPKey, CFAccSecGroupIncludePKey, CFAccSecGroupIncludeBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccSecGroupMemberHBuff) {
        CFAccSecGroupMemberHBuff rhs = (CFAccSecGroupMemberHBuff) obj;
        int retval = 0;
        {/*from   w  ww  . j  av  a  2s .co m*/
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupMemberId() < rhs.getRequiredSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredSecGroupMemberId() > rhs.getRequiredSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupMemberHPKey) {
        CFAccSecGroupMemberHPKey rhs = (CFAccSecGroupMemberHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupMemberId() < rhs.getRequiredSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredSecGroupMemberId() > rhs.getRequiredSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupMemberPKey) {
        CFAccSecGroupMemberPKey rhs = (CFAccSecGroupMemberPKey) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupMemberId() < rhs.getRequiredSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredSecGroupMemberId() > rhs.getRequiredSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccSecGroupMemberBuff) {
        CFAccSecGroupMemberBuff rhs = (CFAccSecGroupMemberBuff) obj;
        if (getRequiredClusterId() < rhs.getRequiredClusterId()) {
            return (-1);
        } else if (getRequiredClusterId() > rhs.getRequiredClusterId()) {
            return (1);
        }
        if (getRequiredSecGroupMemberId() < rhs.getRequiredSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredSecGroupMemberId() > rhs.getRequiredSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccSecGroupMemberHPKey, CFAccSecGroupMemberPKey, CFAccSecGroupMemberBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccTSecGroupIncludeHBuff) {
        CFAccTSecGroupIncludeHBuff rhs = (CFAccTSecGroupIncludeHBuff) obj;
        int retval = 0;
        {//from  w  w w  .j a  v  a 2s. c  o  m
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupIncludeId() < rhs.getRequiredTSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredTSecGroupIncludeId() > rhs.getRequiredTSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccTSecGroupIncludeHPKey) {
        CFAccTSecGroupIncludeHPKey rhs = (CFAccTSecGroupIncludeHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupIncludeId() < rhs.getRequiredTSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredTSecGroupIncludeId() > rhs.getRequiredTSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAccTSecGroupIncludePKey) {
        CFAccTSecGroupIncludePKey rhs = (CFAccTSecGroupIncludePKey) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupIncludeId() < rhs.getRequiredTSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredTSecGroupIncludeId() > rhs.getRequiredTSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccTSecGroupIncludeBuff) {
        CFAccTSecGroupIncludeBuff rhs = (CFAccTSecGroupIncludeBuff) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupIncludeId() < rhs.getRequiredTSecGroupIncludeId()) {
            return (-1);
        } else if (getRequiredTSecGroupIncludeId() > rhs.getRequiredTSecGroupIncludeId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccTSecGroupIncludeHPKey, CFAccTSecGroupIncludePKey, CFAccTSecGroupIncludeBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccTSecGroupMemberHBuff) {
        CFAccTSecGroupMemberHBuff rhs = (CFAccTSecGroupMemberHBuff) obj;
        int retval = 0;
        {//from  w  w  w .j  a v  a  2 s . c  o  m
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupMemberId() < rhs.getRequiredTSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredTSecGroupMemberId() > rhs.getRequiredTSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccTSecGroupMemberHPKey) {
        CFAccTSecGroupMemberHPKey rhs = (CFAccTSecGroupMemberHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupMemberId() < rhs.getRequiredTSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredTSecGroupMemberId() > rhs.getRequiredTSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccHPKey) {
        CFAccHPKey rhs = (CFAccHPKey) obj;
        {
            long lhsAuditClusterId = getAuditClusterId();
            long rhsAuditClusterId = rhs.getAuditClusterId();
            if (lhsAuditClusterId < rhsAuditClusterId) {
                return (-1);
            } else if (lhsAuditClusterId > rhsAuditClusterId) {
                return (1);
            }
        }
        {
            Calendar lhsAuditStamp = getAuditStamp();
            Calendar rhsAuditStamp = rhs.getAuditStamp();
            if (lhsAuditStamp == null) {
                if (rhsAuditStamp != null) {
                    return (-1);
                }
            } else if (rhsAuditStamp == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditStamp.compareTo(rhsAuditStamp);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        {
            short lhsAuditActionId = getAuditActionId();
            short rhsAuditActionId = rhs.getAuditActionId();
            if (lhsAuditActionId < rhsAuditActionId) {
                return (-1);
            } else if (lhsAuditActionId > rhsAuditActionId) {
                return (1);
            }
        }
        {
            int lhsRequiredRevision = getRequiredRevision();
            int rhsRequiredRevision = rhs.getRequiredRevision();
            if (lhsRequiredRevision < rhsRequiredRevision) {
                return (-1);
            } else if (lhsRequiredRevision > rhsRequiredRevision) {
                return (1);
            }
        }
        {
            UUID lhsAuditSessionId = getAuditSessionId();
            UUID rhsAuditSessionId = rhs.getAuditSessionId();
            if (lhsAuditSessionId == null) {
                if (rhsAuditSessionId != null) {
                    return (-1);
                }
            } else if (rhsAuditSessionId == null) {
                return (1);
            } else {
                int cmpstat = lhsAuditSessionId.compareTo(rhsAuditSessionId);
                if (cmpstat != 0) {
                    return (cmpstat);
                }
            }
        }
        return (0);
    } else if (obj instanceof CFAccTSecGroupMemberPKey) {
        CFAccTSecGroupMemberPKey rhs = (CFAccTSecGroupMemberPKey) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupMemberId() < rhs.getRequiredTSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredTSecGroupMemberId() > rhs.getRequiredTSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccTSecGroupMemberBuff) {
        CFAccTSecGroupMemberBuff rhs = (CFAccTSecGroupMemberBuff) obj;
        if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
            return (-1);
        } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
            return (1);
        }
        if (getRequiredTSecGroupMemberId() < rhs.getRequiredTSecGroupMemberId()) {
            return (-1);
        } else if (getRequiredTSecGroupMemberId() > rhs.getRequiredTSecGroupMemberId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccTSecGroupMemberHPKey, CFAccTSecGroupMemberPKey, CFAccTSecGroupMemberBuff");
    }
}