public boolean equals(Object obj) { if (obj == null) { return (false); } else if (obj instanceof CFBamTimeColByTableIdxKey) { CFBamTimeColByTableIdxKey rhs = (CFBamTimeColByTableIdxKey) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTableId() != rhs.getRequiredTableId()) { return (false); } return (true); } else if (obj instanceof CFBamTimeColBuff) { CFBamTimeColBuff rhs = (CFBamTimeColBuff) obj; if (getRequiredTenantId() != rhs.getRequiredTenantId()) { return (false); } if (getRequiredTableId() != rhs.getRequiredTableId()) { return (false); } return (true); } else { return (false); } }
public int compareTo(Object obj) { if (obj == null) { return (1); } else if (obj instanceof CFBamTimeColByTableIdxKey) { CFBamTimeColByTableIdxKey rhs = (CFBamTimeColByTableIdxKey) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredTableId() < rhs.getRequiredTableId()) { return (-1); } else if (getRequiredTableId() > rhs.getRequiredTableId()) { return (1); } return (0); } else if (obj instanceof CFBamTimeColBuff) { CFBamTimeColBuff rhs = (CFBamTimeColBuff) obj; if (getRequiredTenantId() < rhs.getRequiredTenantId()) { return (-1); } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) { return (1); } if (getRequiredTableId() < rhs.getRequiredTableId()) { return (-1); } else if (getRequiredTableId() > rhs.getRequiredTableId()) { return (1); } return (0); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException(getClass(), "compareTo", "obj", obj, null); } }
public void copyOrigToBuff() { CFBamTimeColBuff origBuff = getOrigAsTimeCol().getTimeColBuff(); CFBamTimeColBuff myBuff = getTimeColBuff(); myBuff.set(origBuff); }
public void copyBuffToOrig() { CFBamTimeColBuff origBuff = getOrigAsTimeCol().getTimeColBuff(); CFBamTimeColBuff myBuff = getTimeColBuff(); origBuff.set(myBuff); }