public ICFBamSecUserObj getUpdatedBy() { if (updatedBy == null) { CFBamValueBuff buff = getBuff(); updatedBy = getSchema().getSecUserTableObj().readSecUserByIdIdx(buff.getUpdatedByUserId()); } return (updatedBy); }
public ICFSecuritySecUserObj getCreatedBy() { if (createdBy == null) { CFBamValueBuff buff = getBuff(); createdBy = ((ICFBamSchemaObj) getSchema()) .getSecUserTableObj() .readSecUserByIdIdx(buff.getCreatedByUserId()); } return (createdBy); }
public static String formatValueRqstDelete(String separator, CFBamValueBuff buff) { String retval = "<RqstValueDelete " + formatValuePKeyAttributes(separator, buff) + CFLibXmlUtil.formatRequiredInt32(separator, "Revision", buff.getRequiredRevision()) + " />"; return (retval); }
public static String formatValueBuffAttributes(String separator, CFBamValueBuff buff) { String retval = CFBamXMsgValueMessageFormatter.formatValuePKeyAttributes(separator, buff) + CFLibXmlUtil.formatRequiredInt32(separator, "Revision", buff.getRequiredRevision()) + CFLibXmlUtil.formatOptionalUuid(separator, "CreatedBy", buff.getCreatedByUserId()) + CFLibXmlUtil.formatOptionalTimestamp(separator, "CreatedAt", buff.getCreatedAt()) + CFLibXmlUtil.formatOptionalUuid(separator, "UpdatedBy", buff.getUpdatedByUserId()) + CFLibXmlUtil.formatOptionalTimestamp(separator, "UpdatedAt", buff.getUpdatedAt()) + CFLibXmlUtil.formatRequiredInt64(separator, "ScopeId", buff.getRequiredScopeId()) + CFLibXmlUtil.formatOptionalInt64( separator, "DefSchemaTenantId", buff.getOptionalDefSchemaTenantId()) + CFLibXmlUtil.formatOptionalInt64( separator, "DefSchemaId", buff.getOptionalDefSchemaId()) + CFLibXmlUtil.formatRequiredXmlString(separator, "Name", buff.getRequiredName()) + CFLibXmlUtil.formatOptionalXmlString( separator, "ShortName", buff.getOptionalShortName()) + CFLibXmlUtil.formatOptionalXmlString(separator, "Label", buff.getOptionalLabel()) + CFLibXmlUtil.formatOptionalXmlString( separator, "ShortDescription", buff.getOptionalShortDescription()) + CFLibXmlUtil.formatOptionalXmlString( separator, "Description", buff.getOptionalDescription()) + CFLibXmlUtil.formatRequiredBoolean( separator, "IsNullable", buff.getRequiredIsNullable()) + CFLibXmlUtil.formatOptionalBoolean( separator, "GenerateId", buff.getOptionalGenerateId()) + CFLibXmlUtil.formatOptionalInt16( separator, "DataScopeId", buff.getOptionalDataScopeId()) + CFLibXmlUtil.formatOptionalInt16( separator, "ViewAccessSecurityId", buff.getOptionalViewAccessSecurityId()) + CFLibXmlUtil.formatOptionalInt16( separator, "EditAccessSecurityId", buff.getOptionalEditAccessSecurityId()) + CFLibXmlUtil.formatOptionalInt16( separator, "ViewAccessFrequencyId", buff.getOptionalViewAccessFrequencyId()) + CFLibXmlUtil.formatOptionalInt16( separator, "EditAccessFrequencyId", buff.getOptionalEditAccessFrequencyId()) + CFLibXmlUtil.formatOptionalInt64( separator, "PrevTenantId", buff.getOptionalPrevTenantId()) + CFLibXmlUtil.formatOptionalInt64(separator, "PrevId", buff.getOptionalPrevId()) + CFLibXmlUtil.formatOptionalInt64( separator, "NextTenantId", buff.getOptionalNextTenantId()) + CFLibXmlUtil.formatOptionalInt64(separator, "NextId", buff.getOptionalNextId()) + CFLibXmlUtil.formatRequiredBoolean( separator, "DefaultVisibility", buff.getRequiredDefaultVisibility()); return (retval); }
public static String formatValuePKeyAttributes(String separator, CFBamValueBuff buff) { String retval = CFLibXmlUtil.formatRequiredInt64(separator, "TenantId", buff.getRequiredTenantId()) + CFLibXmlUtil.formatRequiredInt64(separator, "Id", buff.getRequiredId()); return (retval); }
public static String formatValueRspnDerivedRec(String separator, CFBamValueBuff buff) { String retval; final String S_ProcName = "formatValueRspnDerivedRec"; String classCode = buff.getClassCode(); if (classCode.equals("VALU")) { retval = formatValueRspnRec(separator, buff); } else if (classCode.equals("TBLC")) { retval = CFBamXMsgTableColMessageFormatter.formatTableColRspnRec( separator, (CFBamTableColBuff) buff); } else if (classCode.equals("ATOM")) { retval = CFBamXMsgAtomMessageFormatter.formatAtomRspnRec(separator, (CFBamAtomBuff) buff); } else if (classCode.equals("BLBD")) { retval = CFBamXMsgBlobDefMessageFormatter.formatBlobDefRspnRec(separator, (CFBamBlobDefBuff) buff); } else if (classCode.equals("BLBC")) { retval = CFBamXMsgBlobColMessageFormatter.formatBlobColRspnRec(separator, (CFBamBlobColBuff) buff); } else if (classCode.equals("BLBT")) { retval = CFBamXMsgBlobTypeMessageFormatter.formatBlobTypeRspnRec( separator, (CFBamBlobTypeBuff) buff); } else if (classCode.equals("BOLD")) { retval = CFBamXMsgBoolDefMessageFormatter.formatBoolDefRspnRec(separator, (CFBamBoolDefBuff) buff); } else if (classCode.equals("BOLC")) { retval = CFBamXMsgBoolColMessageFormatter.formatBoolColRspnRec(separator, (CFBamBoolColBuff) buff); } else if (classCode.equals("BOLT")) { retval = CFBamXMsgBoolTypeMessageFormatter.formatBoolTypeRspnRec( separator, (CFBamBoolTypeBuff) buff); } else if (classCode.equals("I16D")) { retval = CFBamXMsgInt16DefMessageFormatter.formatInt16DefRspnRec( separator, (CFBamInt16DefBuff) buff); } else if (classCode.equals("I16C")) { retval = CFBamXMsgInt16ColMessageFormatter.formatInt16ColRspnRec( separator, (CFBamInt16ColBuff) buff); } else if (classCode.equals("I16T")) { retval = CFBamXMsgInt16TypeMessageFormatter.formatInt16TypeRspnRec( separator, (CFBamInt16TypeBuff) buff); } else if (classCode.equals("IG16")) { retval = CFBamXMsgId16GenMessageFormatter.formatId16GenRspnRec(separator, (CFBamId16GenBuff) buff); } else if (classCode.equals("ENMD")) { retval = CFBamXMsgEnumDefMessageFormatter.formatEnumDefRspnRec(separator, (CFBamEnumDefBuff) buff); } else if (classCode.equals("ENMC")) { retval = CFBamXMsgEnumColMessageFormatter.formatEnumColRspnRec(separator, (CFBamEnumColBuff) buff); } else if (classCode.equals("ENMT")) { retval = CFBamXMsgEnumTypeMessageFormatter.formatEnumTypeRspnRec( separator, (CFBamEnumTypeBuff) buff); } else if (classCode.equals("I32D")) { retval = CFBamXMsgInt32DefMessageFormatter.formatInt32DefRspnRec( separator, (CFBamInt32DefBuff) buff); } else if (classCode.equals("I32C")) { retval = CFBamXMsgInt32ColMessageFormatter.formatInt32ColRspnRec( separator, (CFBamInt32ColBuff) buff); } else if (classCode.equals("I32T")) { retval = CFBamXMsgInt32TypeMessageFormatter.formatInt32TypeRspnRec( separator, (CFBamInt32TypeBuff) buff); } else if (classCode.equals("IG32")) { retval = CFBamXMsgId32GenMessageFormatter.formatId32GenRspnRec(separator, (CFBamId32GenBuff) buff); } else if (classCode.equals("I64D")) { retval = CFBamXMsgInt64DefMessageFormatter.formatInt64DefRspnRec( separator, (CFBamInt64DefBuff) buff); } else if (classCode.equals("I64C")) { retval = CFBamXMsgInt64ColMessageFormatter.formatInt64ColRspnRec( separator, (CFBamInt64ColBuff) buff); } else if (classCode.equals("I64T")) { retval = CFBamXMsgInt64TypeMessageFormatter.formatInt64TypeRspnRec( separator, (CFBamInt64TypeBuff) buff); } else if (classCode.equals("IG64")) { retval = CFBamXMsgId64GenMessageFormatter.formatId64GenRspnRec(separator, (CFBamId64GenBuff) buff); } else if (classCode.equals("U16D")) { retval = CFBamXMsgUInt16DefMessageFormatter.formatUInt16DefRspnRec( separator, (CFBamUInt16DefBuff) buff); } else if (classCode.equals("U16C")) { retval = CFBamXMsgUInt16ColMessageFormatter.formatUInt16ColRspnRec( separator, (CFBamUInt16ColBuff) buff); } else if (classCode.equals("U16T")) { retval = CFBamXMsgUInt16TypeMessageFormatter.formatUInt16TypeRspnRec( separator, (CFBamUInt16TypeBuff) buff); } else if (classCode.equals("U32D")) { retval = CFBamXMsgUInt32DefMessageFormatter.formatUInt32DefRspnRec( separator, (CFBamUInt32DefBuff) buff); } else if (classCode.equals("U32C")) { retval = CFBamXMsgUInt32ColMessageFormatter.formatUInt32ColRspnRec( separator, (CFBamUInt32ColBuff) buff); } else if (classCode.equals("U32T")) { retval = CFBamXMsgUInt32TypeMessageFormatter.formatUInt32TypeRspnRec( separator, (CFBamUInt32TypeBuff) buff); } else if (classCode.equals("U64D")) { retval = CFBamXMsgUInt64DefMessageFormatter.formatUInt64DefRspnRec( separator, (CFBamUInt64DefBuff) buff); } else if (classCode.equals("U64C")) { retval = CFBamXMsgUInt64ColMessageFormatter.formatUInt64ColRspnRec( separator, (CFBamUInt64ColBuff) buff); } else if (classCode.equals("U64T")) { retval = CFBamXMsgUInt64TypeMessageFormatter.formatUInt64TypeRspnRec( separator, (CFBamUInt64TypeBuff) buff); } else if (classCode.equals("FLTD")) { retval = CFBamXMsgFloatDefMessageFormatter.formatFloatDefRspnRec( separator, (CFBamFloatDefBuff) buff); } else if (classCode.equals("FLTC")) { retval = CFBamXMsgFloatColMessageFormatter.formatFloatColRspnRec( separator, (CFBamFloatColBuff) buff); } else if (classCode.equals("FLTT")) { retval = CFBamXMsgFloatTypeMessageFormatter.formatFloatTypeRspnRec( separator, (CFBamFloatTypeBuff) buff); } else if (classCode.equals("DBLD")) { retval = CFBamXMsgDoubleDefMessageFormatter.formatDoubleDefRspnRec( separator, (CFBamDoubleDefBuff) buff); } else if (classCode.equals("DBLC")) { retval = CFBamXMsgDoubleColMessageFormatter.formatDoubleColRspnRec( separator, (CFBamDoubleColBuff) buff); } else if (classCode.equals("DBLT")) { retval = CFBamXMsgDoubleTypeMessageFormatter.formatDoubleTypeRspnRec( separator, (CFBamDoubleTypeBuff) buff); } else if (classCode.equals("NUMD")) { retval = CFBamXMsgNumberDefMessageFormatter.formatNumberDefRspnRec( separator, (CFBamNumberDefBuff) buff); } else if (classCode.equals("NUMC")) { retval = CFBamXMsgNumberColMessageFormatter.formatNumberColRspnRec( separator, (CFBamNumberColBuff) buff); } else if (classCode.equals("NUMT")) { retval = CFBamXMsgNumberTypeMessageFormatter.formatNumberTypeRspnRec( separator, (CFBamNumberTypeBuff) buff); } else if (classCode.equals("STRD")) { retval = CFBamXMsgStringDefMessageFormatter.formatStringDefRspnRec( separator, (CFBamStringDefBuff) buff); } else if (classCode.equals("STRC")) { retval = CFBamXMsgStringColMessageFormatter.formatStringColRspnRec( separator, (CFBamStringColBuff) buff); } else if (classCode.equals("STRT")) { retval = CFBamXMsgStringTypeMessageFormatter.formatStringTypeRspnRec( separator, (CFBamStringTypeBuff) buff); } else if (classCode.equals("TXTD")) { retval = CFBamXMsgTextDefMessageFormatter.formatTextDefRspnRec(separator, (CFBamTextDefBuff) buff); } else if (classCode.equals("TXTC")) { retval = CFBamXMsgTextColMessageFormatter.formatTextColRspnRec(separator, (CFBamTextColBuff) buff); } else if (classCode.equals("TXTT")) { retval = CFBamXMsgTextTypeMessageFormatter.formatTextTypeRspnRec( separator, (CFBamTextTypeBuff) buff); } else if (classCode.equals("NTKD")) { retval = CFBamXMsgNmTokenDefMessageFormatter.formatNmTokenDefRspnRec( separator, (CFBamNmTokenDefBuff) buff); } else if (classCode.equals("NTKC")) { retval = CFBamXMsgNmTokenColMessageFormatter.formatNmTokenColRspnRec( separator, (CFBamNmTokenColBuff) buff); } else if (classCode.equals("NTKT")) { retval = CFBamXMsgNmTokenTypeMessageFormatter.formatNmTokenTypeRspnRec( separator, (CFBamNmTokenTypeBuff) buff); } else if (classCode.equals("NTSD")) { retval = CFBamXMsgNmTokensDefMessageFormatter.formatNmTokensDefRspnRec( separator, (CFBamNmTokensDefBuff) buff); } else if (classCode.equals("NTSC")) { retval = CFBamXMsgNmTokensColMessageFormatter.formatNmTokensColRspnRec( separator, (CFBamNmTokensColBuff) buff); } else if (classCode.equals("NTST")) { retval = CFBamXMsgNmTokensTypeMessageFormatter.formatNmTokensTypeRspnRec( separator, (CFBamNmTokensTypeBuff) buff); } else if (classCode.equals("TKND")) { retval = CFBamXMsgTokenDefMessageFormatter.formatTokenDefRspnRec( separator, (CFBamTokenDefBuff) buff); } else if (classCode.equals("TKNC")) { retval = CFBamXMsgTokenColMessageFormatter.formatTokenColRspnRec( separator, (CFBamTokenColBuff) buff); } else if (classCode.equals("TKNT")) { retval = CFBamXMsgTokenTypeMessageFormatter.formatTokenTypeRspnRec( separator, (CFBamTokenTypeBuff) buff); } else if (classCode.equals("DATD")) { retval = CFBamXMsgDateDefMessageFormatter.formatDateDefRspnRec(separator, (CFBamDateDefBuff) buff); } else if (classCode.equals("DATC")) { retval = CFBamXMsgDateColMessageFormatter.formatDateColRspnRec(separator, (CFBamDateColBuff) buff); } else if (classCode.equals("DATT")) { retval = CFBamXMsgDateTypeMessageFormatter.formatDateTypeRspnRec( separator, (CFBamDateTypeBuff) buff); } else if (classCode.equals("TIMD")) { retval = CFBamXMsgTimeDefMessageFormatter.formatTimeDefRspnRec(separator, (CFBamTimeDefBuff) buff); } else if (classCode.equals("TIMC")) { retval = CFBamXMsgTimeColMessageFormatter.formatTimeColRspnRec(separator, (CFBamTimeColBuff) buff); } else if (classCode.equals("TIMT")) { retval = CFBamXMsgTimeTypeMessageFormatter.formatTimeTypeRspnRec( separator, (CFBamTimeTypeBuff) buff); } else if (classCode.equals("TSPD")) { retval = CFBamXMsgTimestampDefMessageFormatter.formatTimestampDefRspnRec( separator, (CFBamTimestampDefBuff) buff); } else if (classCode.equals("TSPC")) { retval = CFBamXMsgTimestampColMessageFormatter.formatTimestampColRspnRec( separator, (CFBamTimestampColBuff) buff); } else if (classCode.equals("TSPT")) { retval = CFBamXMsgTimestampTypeMessageFormatter.formatTimestampTypeRspnRec( separator, (CFBamTimestampTypeBuff) buff); } else if (classCode.equals("DAZD")) { retval = CFBamXMsgTZDateDefMessageFormatter.formatTZDateDefRspnRec( separator, (CFBamTZDateDefBuff) buff); } else if (classCode.equals("DAZC")) { retval = CFBamXMsgTZDateColMessageFormatter.formatTZDateColRspnRec( separator, (CFBamTZDateColBuff) buff); } else if (classCode.equals("DAZT")) { retval = CFBamXMsgTZDateTypeMessageFormatter.formatTZDateTypeRspnRec( separator, (CFBamTZDateTypeBuff) buff); } else if (classCode.equals("TMZD")) { retval = CFBamXMsgTZTimeDefMessageFormatter.formatTZTimeDefRspnRec( separator, (CFBamTZTimeDefBuff) buff); } else if (classCode.equals("TMZC")) { retval = CFBamXMsgTZTimeColMessageFormatter.formatTZTimeColRspnRec( separator, (CFBamTZTimeColBuff) buff); } else if (classCode.equals("TMZT")) { retval = CFBamXMsgTZTimeTypeMessageFormatter.formatTZTimeTypeRspnRec( separator, (CFBamTZTimeTypeBuff) buff); } else if (classCode.equals("ZSTD")) { retval = CFBamXMsgTZTimestampDefMessageFormatter.formatTZTimestampDefRspnRec( separator, (CFBamTZTimestampDefBuff) buff); } else if (classCode.equals("ZSTC")) { retval = CFBamXMsgTZTimestampColMessageFormatter.formatTZTimestampColRspnRec( separator, (CFBamTZTimestampColBuff) buff); } else if (classCode.equals("ZSTT")) { retval = CFBamXMsgTZTimestampTypeMessageFormatter.formatTZTimestampTypeRspnRec( separator, (CFBamTZTimestampTypeBuff) buff); } else if (classCode.equals("UIDD")) { retval = CFBamXMsgUuidDefMessageFormatter.formatUuidDefRspnRec(separator, (CFBamUuidDefBuff) buff); } else if (classCode.equals("UIDC")) { retval = CFBamXMsgUuidColMessageFormatter.formatUuidColRspnRec(separator, (CFBamUuidColBuff) buff); } else if (classCode.equals("UIDT")) { retval = CFBamXMsgUuidTypeMessageFormatter.formatUuidTypeRspnRec( separator, (CFBamUuidTypeBuff) buff); } else if (classCode.equals("IGUU")) { retval = CFBamXMsgUuidGenMessageFormatter.formatUuidGenRspnRec(separator, (CFBamUuidGenBuff) buff); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( CFBamXMsgValueMessageFormatter.class, S_ProcName, "buff", buff, "derivative of Value"); } return (retval); }
public int compareTo(Object obj) { if (obj == null) { return (-1); } else if (obj instanceof CFBamValueHBuff) { CFBamValueHBuff rhs = (CFBamValueHBuff) obj; int retval = 0; { 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 (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamValueHPKey) { CFBamValueHPKey rhs = (CFBamValueHPKey) 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 (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamHPKey) { CFBamHPKey rhs = (CFBamHPKey) 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 CFBamValuePKey) { CFBamValuePKey rhs = (CFBamValuePKey) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredId() < rhs.getRequiredId()) { return (-1); } else if (getRequiredId() > rhs.getRequiredId()) { return (1); } return (0); } else if (obj instanceof CFBamValueBuff) { CFBamValueBuff rhs = (CFBamValueBuff) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { 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, "CFBamValueHPKey, CFBamValuePKey, CFBamValueBuff"); } }
public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamValueHPKey) { CFBamValueHPKey rhs = (CFBamValueHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamHPKey) { CFBamHPKey rhs = (CFBamHPKey) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } return (true); } else if (obj instanceof CFBamValuePKey) { CFBamValuePKey rhs = (CFBamValuePKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamValueHBuff) { CFBamValueHBuff rhs = (CFBamValueHBuff) obj; { long lhsClusterId = getAuditClusterId(); long rhsClusterId = rhs.getAuditClusterId(); if (lhsClusterId != rhsClusterId) { return (false); } } { Calendar lhsAuditStamp = getAuditStamp(); Calendar rhsAuditStamp = rhs.getAuditStamp(); if (lhsAuditStamp != null) { if (rhsAuditStamp != null) { if (!lhsAuditStamp.equals(rhsAuditStamp)) { return (false); } } else { return (false); } } else { return (false); } } { short lhsActionId = getAuditActionId(); short rhsActionId = rhs.getAuditActionId(); if (lhsActionId != rhsActionId) { return (false); } } { int lhsRevision = getRequiredRevision(); int rhsRevision = rhs.getRequiredRevision(); if (lhsRevision != rhsRevision) { return (false); } } { UUID lhsAuditSessionId = getAuditSessionId(); UUID rhsAuditSessionId = rhs.getAuditSessionId(); if (lhsAuditSessionId != null) { if (rhsAuditSessionId != null) { if (!lhsAuditSessionId.equals(rhsAuditSessionId)) { return (false); } } else { return (false); } } else { return (false); } } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else if (obj instanceof CFBamValueBuff) { CFBamValueBuff rhs = (CFBamValueBuff) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredId() != rhs.getRequiredId()) { return (false); } return (true); } else { return (false); } }