code: public int getBitsToCheck()
      {
          if (m_iBitsToCheck == 0)
          {
              Record record = this.makeReferenceRecord();
              try {
                  record.close();
                  while (record.hasNext())    // 0 = First Day -> 6 = Last Day of Week
                  {
                      record.next();
                      int sBitPosition = (int)record.getCounterField().getValue();
                      m_iBitsToCheck |= 1 << sBitPosition;
                  }
              } catch (DBException e) {
                  e.printStackTrace();
              }
          }
          return m_iBitsToCheck;
      }
docs: Mask of valid bits.