/** * load a template instance fresh from the original FormDef, retrieved from RMS * @param formID * @return */ public static FormInstance loadTemplateInstance(int formID) { IStorageUtility forms = StorageManager.getStorage(FormDef.STORAGE_KEY); FormDef f = (FormDef)forms.read(formID); return(f != null ? f.Instance : null); }
private void memoize() { if (payload == null) { IStorageUtility instances = StorageManager.getStorage(FormInstance.STORAGE_KEY); try { FormInstance tree = (FormInstance)instances.read(recordId); payload = serializer.createSerializedPayload(tree); } catch (IOException e) { //Assertion, do not catch! Console.WriteLine(e.StackTrace); throw new SystemException("ModelReferencePayload failed to retrieve its model from rms [" + e.Message + "]"); } } }
public Externalizable read(int id) { return(((SerializationWrapper)storage.read(id)).Data); }
public virtual Externalizable read(int id) { return(((WrappingStorageUtility.SerializationWrapper)storage.read(id)).Data); }