protected void clearUniqueFindersCache(TipsOfTheDayUsers tipsOfTheDayUsers) {
    TipsOfTheDayUsersModelImpl tipsOfTheDayUsersModelImpl =
        (TipsOfTheDayUsersModelImpl) tipsOfTheDayUsers;

    Object[] args =
        new Object[] {
          tipsOfTheDayUsers.getCompanyId(),
          tipsOfTheDayUsers.getGroupId(),
          tipsOfTheDayUsers.getUserId()
        };

    FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_C_G_U, args);
    FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_G_U, args);

    if ((tipsOfTheDayUsersModelImpl.getColumnBitmask()
            & FINDER_PATH_FETCH_BY_C_G_U.getColumnBitmask())
        != 0) {
      args =
          new Object[] {
            tipsOfTheDayUsersModelImpl.getOriginalCompanyId(),
            tipsOfTheDayUsersModelImpl.getOriginalGroupId(),
            tipsOfTheDayUsersModelImpl.getOriginalUserId()
          };

      FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_C_G_U, args);
      FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_G_U, args);
    }
  }
  protected void cacheUniqueFindersCache(TipsOfTheDayUsers tipsOfTheDayUsers) {
    if (tipsOfTheDayUsers.isNew()) {
      Object[] args =
          new Object[] {
            tipsOfTheDayUsers.getCompanyId(),
            tipsOfTheDayUsers.getGroupId(),
            tipsOfTheDayUsers.getUserId()
          };

      FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_C_G_U, args, Long.valueOf(1));
      FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_U, args, tipsOfTheDayUsers);
    } else {
      TipsOfTheDayUsersModelImpl tipsOfTheDayUsersModelImpl =
          (TipsOfTheDayUsersModelImpl) tipsOfTheDayUsers;

      if ((tipsOfTheDayUsersModelImpl.getColumnBitmask()
              & FINDER_PATH_FETCH_BY_C_G_U.getColumnBitmask())
          != 0) {
        Object[] args =
            new Object[] {
              tipsOfTheDayUsers.getCompanyId(),
              tipsOfTheDayUsers.getGroupId(),
              tipsOfTheDayUsers.getUserId()
            };

        FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_C_G_U, args, Long.valueOf(1));
        FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_U, args, tipsOfTheDayUsers);
      }
    }
  }