@Override protected void set( java.util.List<org.phoenixbioinformatics.api.db.api.ISubscriptionDescriptionItem> list) { // No status change; this is just filling in the object data. items = list; // Add the primary keys to the serialized key list if there are any. if (items != null) { for (com.poesys.db.dto.IDbDto object : items) { itemsKeys.add(object.getPrimaryKey()); } } }
/** * Set the items. * * <ul> * <li>Read/Write DTO: true * <li>Immutable DTO: false * <li>Read/Write property: true * <li>Immutable property: false * <li>Lazy property: false (if true, proxy calls this method) * </ul> * * <p>the set of items within the description * * @param items the value with which to set the property * @throws com.poesys.db.InvalidParametersException when the input items is null */ public void setItems( java.util.List<org.phoenixbioinformatics.api.db.api.ISubscriptionDescriptionItem> items) throws com.poesys.db.InvalidParametersException { if (items == null) { throw new com.poesys.db.InvalidParametersException("items is required"); } this.items = items; // Add the primary keys of the new collection to the serialized key list. itemsKeys.clear(); if (items != null) { for (com.poesys.db.dto.IDbDto object : items) { itemsKeys.add(object.getPrimaryKey()); } } setChanged(); }