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.CFAstISOCountryHPKey.java

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstISOCountryHBuff) {
        CFAstISOCountryHBuff rhs = (CFAstISOCountryHBuff) obj;
        int retval = 0;
        {//from  w  ww  .j ava2s.  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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstISOCountryHPKey) {
        CFAstISOCountryHPKey rhs = (CFAstISOCountryHPKey) 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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            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 CFAstISOCountryPKey) {
        CFAstISOCountryPKey rhs = (CFAstISOCountryPKey) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstISOCountryBuff) {
        CFAstISOCountryBuff rhs = (CFAstISOCountryBuff) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstISOCountryHPKey, CFAstISOCountryPKey, CFAstISOCountryBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstISOCurrencyHBuff) {
        CFAstISOCurrencyHBuff rhs = (CFAstISOCurrencyHBuff) obj;
        int retval = 0;
        {//from   w  ww  . ja  va 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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstISOCurrencyHPKey) {
        CFAstISOCurrencyHPKey rhs = (CFAstISOCurrencyHPKey) 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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            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 CFAstISOCurrencyPKey) {
        CFAstISOCurrencyPKey rhs = (CFAstISOCurrencyPKey) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstISOCurrencyBuff) {
        CFAstISOCurrencyBuff rhs = (CFAstISOCurrencyBuff) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstISOCurrencyHPKey, CFAstISOCurrencyPKey, CFAstISOCurrencyBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstISOLanguageHBuff) {
        CFAstISOLanguageHBuff rhs = (CFAstISOLanguageHBuff) obj;
        int retval = 0;
        {/*from w ww .jav 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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstISOLanguageHPKey) {
        CFAstISOLanguageHPKey rhs = (CFAstISOLanguageHPKey) 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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            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 CFAstISOLanguagePKey) {
        CFAstISOLanguagePKey rhs = (CFAstISOLanguagePKey) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstISOLanguageBuff) {
        CFAstISOLanguageBuff rhs = (CFAstISOLanguageBuff) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstISOLanguageHPKey, CFAstISOLanguagePKey, CFAstISOLanguageBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstTenantHBuff) {
        CFAstTenantHBuff rhs = (CFAstTenantHBuff) obj;
        int retval = 0;
        {/*from  w ww.  j a  va  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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstTenantHPKey) {
        CFAstTenantHPKey rhs = (CFAstTenantHPKey) 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 (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            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 CFAstTenantPKey) {
        CFAstTenantPKey rhs = (CFAstTenantPKey) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstTenantBuff) {
        CFAstTenantBuff rhs = (CFAstTenantBuff) obj;
        if (getRequiredId() < rhs.getRequiredId()) {
            return (-1);
        } else if (getRequiredId() > rhs.getRequiredId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstTenantHPKey, CFAstTenantPKey, CFAstTenantBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccAuditActionHBuff) {
        CFAccAuditActionHBuff rhs = (CFAccAuditActionHBuff) obj;
        int retval = 0;
        {/*from  ww  w  . j  a v a2 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 (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccAuditActionHPKey) {
        CFAccAuditActionHPKey rhs = (CFAccAuditActionHPKey) 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 (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            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 CFAccAuditActionPKey) {
        CFAccAuditActionPKey rhs = (CFAccAuditActionPKey) obj;
        if (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccAuditActionBuff) {
        CFAccAuditActionBuff rhs = (CFAccAuditActionBuff) obj;
        if (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccAuditActionHPKey, CFAccAuditActionPKey, CFAccAuditActionBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccISOTimezoneHBuff) {
        CFAccISOTimezoneHBuff rhs = (CFAccISOTimezoneHBuff) obj;
        int retval = 0;
        {//from  w  w w.  j  a v  a2s  .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 (getRequiredISOTimezoneId() < rhs.getRequiredISOTimezoneId()) {
            return (-1);
        } else if (getRequiredISOTimezoneId() > rhs.getRequiredISOTimezoneId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccISOTimezoneHPKey) {
        CFAccISOTimezoneHPKey rhs = (CFAccISOTimezoneHPKey) 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 (getRequiredISOTimezoneId() < rhs.getRequiredISOTimezoneId()) {
            return (-1);
        } else if (getRequiredISOTimezoneId() > rhs.getRequiredISOTimezoneId()) {
            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 CFAccISOTimezonePKey) {
        CFAccISOTimezonePKey rhs = (CFAccISOTimezonePKey) obj;
        if (getRequiredISOTimezoneId() < rhs.getRequiredISOTimezoneId()) {
            return (-1);
        } else if (getRequiredISOTimezoneId() > rhs.getRequiredISOTimezoneId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccISOTimezoneBuff) {
        CFAccISOTimezoneBuff rhs = (CFAccISOTimezoneBuff) obj;
        if (getRequiredISOTimezoneId() < rhs.getRequiredISOTimezoneId()) {
            return (-1);
        } else if (getRequiredISOTimezoneId() > rhs.getRequiredISOTimezoneId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccISOTimezoneHPKey, CFAccISOTimezonePKey, CFAccISOTimezoneBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccMimeTypeHBuff) {
        CFAccMimeTypeHBuff rhs = (CFAccMimeTypeHBuff) obj;
        int retval = 0;
        {// ww w.j ava2  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 (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
            return (-1);
        } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccMimeTypeHPKey) {
        CFAccMimeTypeHPKey rhs = (CFAccMimeTypeHPKey) 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 (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
            return (-1);
        } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
            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 CFAccMimeTypePKey) {
        CFAccMimeTypePKey rhs = (CFAccMimeTypePKey) obj;
        if (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
            return (-1);
        } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccMimeTypeBuff) {
        CFAccMimeTypeBuff rhs = (CFAccMimeTypeBuff) obj;
        if (getRequiredMimeTypeId() < rhs.getRequiredMimeTypeId()) {
            return (-1);
        } else if (getRequiredMimeTypeId() > rhs.getRequiredMimeTypeId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccMimeTypeHPKey, CFAccMimeTypePKey, CFAccMimeTypeBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccServiceTypeHBuff) {
        CFAccServiceTypeHBuff rhs = (CFAccServiceTypeHBuff) 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 (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) {
            return (-1);
        } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccServiceTypeHPKey) {
        CFAccServiceTypeHPKey rhs = (CFAccServiceTypeHPKey) 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 (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) {
            return (-1);
        } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) {
            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 CFAccServiceTypePKey) {
        CFAccServiceTypePKey rhs = (CFAccServiceTypePKey) obj;
        if (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) {
            return (-1);
        } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccServiceTypeBuff) {
        CFAccServiceTypeBuff rhs = (CFAccServiceTypeBuff) obj;
        if (getRequiredServiceTypeId() < rhs.getRequiredServiceTypeId()) {
            return (-1);
        } else if (getRequiredServiceTypeId() > rhs.getRequiredServiceTypeId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccServiceTypeHPKey, CFAccServiceTypePKey, CFAccServiceTypeBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAccURLProtocolHBuff) {
        CFAccURLProtocolHBuff rhs = (CFAccURLProtocolHBuff) obj;
        int retval = 0;
        {/*from  www  .ja  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 (getRequiredURLProtocolId() < rhs.getRequiredURLProtocolId()) {
            return (-1);
        } else if (getRequiredURLProtocolId() > rhs.getRequiredURLProtocolId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccURLProtocolHPKey) {
        CFAccURLProtocolHPKey rhs = (CFAccURLProtocolHPKey) 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 (getRequiredURLProtocolId() < rhs.getRequiredURLProtocolId()) {
            return (-1);
        } else if (getRequiredURLProtocolId() > rhs.getRequiredURLProtocolId()) {
            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 CFAccURLProtocolPKey) {
        CFAccURLProtocolPKey rhs = (CFAccURLProtocolPKey) obj;
        if (getRequiredURLProtocolId() < rhs.getRequiredURLProtocolId()) {
            return (-1);
        } else if (getRequiredURLProtocolId() > rhs.getRequiredURLProtocolId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAccURLProtocolBuff) {
        CFAccURLProtocolBuff rhs = (CFAccURLProtocolBuff) obj;
        if (getRequiredURLProtocolId() < rhs.getRequiredURLProtocolId()) {
            return (-1);
        } else if (getRequiredURLProtocolId() > rhs.getRequiredURLProtocolId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAccURLProtocolHPKey, CFAccURLProtocolPKey, CFAccURLProtocolBuff");
    }
}

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

public int compareTo(Object obj) {
    if (obj == null) {
        return (-1);
    } else if (obj instanceof CFAstAuditActionHBuff) {
        CFAstAuditActionHBuff rhs = (CFAstAuditActionHBuff) obj;
        int retval = 0;
        {//  w  w  w.java2  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 (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstAuditActionHPKey) {
        CFAstAuditActionHPKey rhs = (CFAstAuditActionHPKey) 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 (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            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 CFAstAuditActionPKey) {
        CFAstAuditActionPKey rhs = (CFAstAuditActionPKey) obj;
        if (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            return (1);
        }
        return (0);
    } else if (obj instanceof CFAstAuditActionBuff) {
        CFAstAuditActionBuff rhs = (CFAstAuditActionBuff) obj;
        if (getRequiredAuditActionId() < rhs.getRequiredAuditActionId()) {
            return (-1);
        } else if (getRequiredAuditActionId() > rhs.getRequiredAuditActionId()) {
            return (1);
        }
        return (0);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "compareTo", "obj",
                obj, "CFAstAuditActionHPKey, CFAstAuditActionPKey, CFAstAuditActionBuff");
    }
}