private void storeProperties(ICPPEnumeration enumeration) throws CoreException {
    final Database db = getDB();
    db.putByte(record + OFFSET_FLAGS, enumeration.isScoped() ? (byte) 1 : (byte) 0);

    getLinkage().storeType(record + OFFSET_FIXED_TYPE, enumeration.getFixedType());

    if (enumeration instanceof ICPPInternalBinding) {
      if (((ICPPInternalBinding) enumeration).getDefinition() != null) {
        final long minValue = enumeration.getMinValue();
        final long maxValue = enumeration.getMaxValue();
        db.putLong(record + OFFSET_MIN_VALUE, minValue);
        db.putLong(record + OFFSET_MAX_VALUE, maxValue);
        fMinValue = minValue;
        fMaxValue = maxValue;
      }
    }
  }
Ejemplo n.º 2
0
 @Override
 public void setContentsHash(long hash) throws CoreException {
   Database db = fLinkage.getDB();
   db.putLong(record + CONTENT_HASH, hash);
 }
Ejemplo n.º 3
0
 @Override
 public void setSourceReadTime(long time) throws CoreException {
   Database db = fLinkage.getDB();
   db.putLong(record + SOURCE_READ_TIME, time);
 }
Ejemplo n.º 4
0
 @Override
 public void setTimestamp(long timestamp) throws CoreException {
   Database db = fLinkage.getDB();
   db.putLong(record + TIME_STAMP, timestamp);
 }