public ICFSecurityServiceTypeObj readServiceTypeByIdIdx(int ServiceTypeId, boolean forceRead) { CFSecurityServiceTypePKey pkey = ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey(); pkey.setRequiredServiceTypeId(ServiceTypeId); ICFSecurityServiceTypeObj obj = readServiceType(pkey, forceRead); return (obj); }
public void deleteServiceTypeByIdIdx(int ServiceTypeId) { CFSecurityServiceTypePKey pkey = ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey(); pkey.setRequiredServiceTypeId(ServiceTypeId); ICFSecurityServiceTypeObj obj = readServiceType(pkey); if (obj != null) { ICFSecurityServiceTypeEditObj editObj = (ICFSecurityServiceTypeEditObj) obj.getEdit(); boolean editStarted; if (editObj == null) { editObj = (ICFSecurityServiceTypeEditObj) obj.beginEdit(); if (editObj != null) { editStarted = true; } else { editStarted = false; } } else { editStarted = false; } if (editObj != null) { editObj.delete(); if (editStarted) { editObj.endEdit(); } } obj.forget(true); } }
public void forgetServiceTypeByIdIdx(int ServiceTypeId) { if (members == null) { return; } CFSecurityServiceTypePKey key = ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey(); key.setRequiredServiceTypeId(ServiceTypeId); if (members.containsKey(key)) { ICFSecurityServiceTypeObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }