Inserting fields

Inserting two fields after a TradeId field in the TradeStore store in the Sensitivities schema:

Map<String, CustomField> customFields = new HashMap<>();

customFields.put("TradeId", new CustomField("TradeLeg", ILiteralType.STRING).asKeyField());
customFields.add("TradeLeg", new CustomField("Theta", ILiteralType.DOUBLE).asNullable());

configurator.insertFields("Sensitivities", "TradeStore", customFields);

or

configurator.insertField("Sensitivities", "TradeStore", "TradeId", new CustomField("TradeLeg", ILiteralType.STRING).asKeyField());
configurator.insertField("Sensitivities", "TradeStore", "TradeLeg", new CustomField("Theta", ILiteralType.DOUBLE).asNullable());