Add this key area description to the Record.
509351
public KeyArea setupKey(int iKeyArea)
    {
        KeyArea keyArea = null;
        if (iKeyArea == 0)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY);
            keyArea.addKeyField(ID, DBConstants.ASCENDING);
        }
        if (iKeyArea == 1)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, RESOURCE_ID_KEY);
            keyArea.addKeyField(RESOURCE_ID, DBConstants.ASCENDING);
            keyArea.addKeyField(LANGUAGE, DBConstants.ASCENDING);
            keyArea.addKeyField(LOCALE, DBConstants.ASCENDING);
            keyArea.addKeyField(KEY_VALUE, DBConstants.ASCENDING);
        }
        if (iKeyArea == 2)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, CODE_KEY);
            keyArea.addKeyField(RESOURCE_ID, DBConstants.ASCENDING);
            keyArea.addKeyField(CODE, DBConstants.ASCENDING);
            keyArea.addKeyField(LANGUAGE, DBConstants.ASCENDING);
            keyArea.addKeyField(LOCALE, DBConstants.ASCENDING);
            keyArea.addKeyField(KEY_VALUE, DBConstants.ASCENDING);
        }
        if (keyArea == null)
            keyArea = super.setupKey(iKeyArea);     
        return keyArea;
    }
1122239
public void setupKeys()
    {
        KeyAreaInfo keyArea = null;
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
        keyArea.addKeyField(ID, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.SECONDARY_KEY, USER_NAME_KEY);
        keyArea.addKeyField(USER_NAME, Constants.ASCENDING);
    }
1095218
public void setupKeys()
    {   // Override this to set up the actual keys
         KeyAreaInfo keyArea = null;
         keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
         keyArea.addKeyField(ID, Constants.ASCENDING);
    }
600666
public void setupKeys()
    {
        KeyAreaInfo keyArea = null;
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
        keyArea.addKeyField(ID, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, FIELD_FILE_NAME_KEY);
        keyArea.addKeyField(FIELD_FILE_NAME, Constants.ASCENDING);
        keyArea.addKeyField(FIELD_SEQ_NO, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, FIELD_NAME_KEY);
        keyArea.addKeyField(FIELD_FILE_NAME, Constants.ASCENDING);
        keyArea.addKeyField(FIELD_NAME, Constants.ASCENDING);
    }
677491
public void setupKeys()
    {
        KeyAreaInfo keyArea = null;
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
        keyArea.addKeyField(ID, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, SCREEN_IN_PROG_NAME_KEY);
        keyArea.addKeyField(SCREEN_IN_PROG_NAME, Constants.ASCENDING);
        keyArea.addKeyField(SCREEN_ITEM_NUMBER, Constants.ASCENDING);
    }
223460
public KeyArea setupKey(int iKeyArea)
    {
        KeyArea keyArea = null;
        if (iKeyArea == kIDKey)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, "PrimaryKey");
            keyArea.addKeyField(kID, DBConstants.ASCENDING);
        }
        if (keyArea == null)
        {
            keyArea = super.setupKey(iKeyArea);     
            if (keyArea == null) if (iKeyArea < kAnalysisRecordLastKey)
                keyArea = new EmptyKey(this);
        }
        return keyArea;
    }
400229
def key_add(self):
        """"""
        from .main import add_api_key
        add_api_key(self.key_name.get(), self.key_val.get())

        # Clear the text fields
        self.key_name.set("")
        self.key_val.set("")
34074
public void setupKeys()
    {
        KeyAreaInfo keyArea = null;
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
        keyArea.addKeyField(ID, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, METHOD_CLASS_NAME_KEY);
        keyArea.addKeyField(METHOD_CLASS_NAME, Constants.ASCENDING);
        keyArea.addKeyField(METHOD_NAME, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, SEQUENCE_KEY);
        keyArea.addKeyField(METHOD_CLASS_NAME, Constants.ASCENDING);
        keyArea.addKeyField(SEQUENCE, Constants.ASCENDING);
        keyArea.addKeyField(METHOD_NAME, Constants.ASCENDING);
    }
608851
public void setupKeys()
    {
        KeyAreaInfo keyArea = null;
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
        keyArea.addKeyField(ID, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, CLASS_NAME_KEY);
        keyArea.addKeyField(CLASS_NAME, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, CLASS_SOURCE_FILE_KEY);
        keyArea.addKeyField(CLASS_SOURCE_FILE, Constants.ASCENDING);
        keyArea.addKeyField(CLASS_NAME, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, BASE_CLASS_NAME_KEY);
        keyArea.addKeyField(BASE_CLASS_NAME, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, CLASS_PROJECT_ID_KEY);
        keyArea.addKeyField(CLASS_PROJECT_ID, Constants.ASCENDING);
        keyArea.addKeyField(CLASS_NAME, Constants.ASCENDING);
    }
1055460
public KeyArea setupKey(int iKeyArea)
    {
        KeyArea keyArea = null;
        if (iKeyArea == 0)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY);
            keyArea.addKeyField(ID, DBConstants.ASCENDING);
        }
        if (iKeyArea == 1)
        {
            keyArea = this.makeIndex(DBConstants.NOT_UNIQUE, SCREEN_IN_PROG_NAME_KEY);
            keyArea.addKeyField(SCREEN_IN_PROG_NAME, DBConstants.ASCENDING);
            keyArea.addKeyField(SCREEN_ITEM_NUMBER, DBConstants.ASCENDING);
        }
        if (keyArea == null)
            keyArea = super.setupKey(iKeyArea);     
        return keyArea;
    }
462055
function Report_add(key, val) {
  this.lines.push({key:key, val:val})

  if (key.length > this.maxKeyLen) {
    this.maxKeyLen = key.length
  }
}
924932
public KeyArea setupKey(int iKeyArea)
    {
        KeyArea keyArea = null;
        if (iKeyArea == 0)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY);
            keyArea.addKeyField(ID, DBConstants.ASCENDING);
        }
        if (iKeyArea == 1)
        {
            keyArea = this.makeIndex(DBConstants.NOT_UNIQUE, START_DATE_TIME_KEY);
            keyArea.addKeyField(START_DATE_TIME, DBConstants.ASCENDING);
        }
        if (keyArea == null)
            keyArea = super.setupKey(iKeyArea);     
        return keyArea;
    }
178803
def add(self, key, value):
        '''
        
        '''
        if key in self.reserved_keys:
            raise Exception('You cannot add the key %s directly, use %s' % (key, self.reserved_keys[key]))
        if isinstance(value, Report):
            self._sub_reports[key] = value
            self._data_fields['sub_reports'].append(key)
        else:
            self._data_fields[key] = value
83565
public void setupKeys()
    {
        KeyAreaInfo keyArea = null;
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
        keyArea.addKeyField(ID, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.SECONDARY_KEY, CODE_KEY);
        keyArea.addKeyField(CODE, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, DESCRIPTION_KEY);
        keyArea.addKeyField(DESCRIPTION, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, CLASS_PROJECT_ID_KEY);
        keyArea.addKeyField(CLASS_PROJECT_ID, Constants.ASCENDING);
        keyArea.addKeyField(DESCRIPTION, Constants.ASCENDING);
    }
537859
public void addExtendedInformation(String key, Object value) {
        if (extendedInformation == null) {
            extendedInformation = new HashMap<>();
        }
        extendedInformation.put(key, value);
    }
1158460
public KeyArea setupKey(int iKeyArea)
    {
        KeyArea keyArea = null;
        if (iKeyArea == 0)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY);
            keyArea.addKeyField(ID, DBConstants.ASCENDING);
        }
        if (iKeyArea == 1)
        {
            keyArea = this.makeIndex(DBConstants.UNIQUE, CONTACT_TYPE_ID_KEY);
            keyArea.addKeyField(CONTACT_TYPE_ID, DBConstants.ASCENDING);
            keyArea.addKeyField(PERSON_ID, DBConstants.ASCENDING);
            keyArea.addKeyField(MESSAGE_PROCESS_INFO_ID, DBConstants.ASCENDING);
            keyArea.addKeyField(MESSAGE_TRANSPORT_ID, DBConstants.ASCENDING);
        }
        if (keyArea == null)
            keyArea = super.setupKey(iKeyArea);     
        return keyArea;
    }
1278262
public void setupKeys()
    {
        KeyAreaInfo keyArea = null;
        keyArea = new KeyAreaInfo(this, Constants.UNIQUE, ID_KEY);
        keyArea.addKeyField(ID, Constants.ASCENDING);
        keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, START_DATE_TIME_KEY);
        keyArea.addKeyField(START_DATE_TIME, Constants.ASCENDING);
    }