public int RefreshFill(IList fillParameters, object item, bool isCreate) { IAssembler assembler = this.GetAssembler(); if (assembler != null) { if ((log != null) && log.get_IsDebugEnabled()) { log.Debug(assembler.GetType().FullName + " RefreshFill"); } return(assembler.RefreshFill(fillParameters, item, isCreate)); } return(0); }
private IMessage Delete(DataMessage dataMessage) { IAssembler assembler = this.GetAssembler(); if (assembler != null) { if ((log != null) && log.get_IsDebugEnabled()) { log.Debug(assembler.GetType().FullName + " Delete"); } assembler.DeleteItem(dataMessage.body); } return(dataMessage); }
private object GetItem(DataMessage dataMessage) { IAssembler assembler = this.GetAssembler(); if (assembler != null) { if ((log != null) && log.get_IsDebugEnabled()) { log.Debug(assembler.GetType().FullName + " GetItem"); } return(assembler.GetItem(dataMessage.identity)); } return(null); }
public bool AutoRefreshFill(IList parameters) { IAssembler assembler = this.GetAssembler(); if (assembler != null) { if ((log != null) && log.get_IsDebugEnabled()) { log.Debug(assembler.GetType().FullName + " AutoRefreshFill"); } return(assembler.AutoRefreshFill(parameters)); } return(false); }
public int RefreshFill(IList fillParameters, object item, bool isCreate) { IAssembler assembler = GetAssembler(); if (assembler != null) { if (log != null && log.IsDebugEnabled) { log.Debug(assembler.GetType().FullName + " RefreshFill"); } return(assembler.RefreshFill(fillParameters, item, isCreate)); } return(Assembler.DoNotExecuteFill); }
private IList Fill(DataMessage dataMessage) { IAssembler assembler = this.GetAssembler(); if (assembler != null) { IList body = dataMessage.body as IList; if ((log != null) && log.get_IsDebugEnabled()) { log.Debug(assembler.GetType().FullName + " Fill"); } return(assembler.Fill(body)); } return(null); }
private IMessage Create(DataMessage dataMessage) { IAssembler assembler = this.GetAssembler(); if (assembler != null) { if ((log != null) && log.get_IsDebugEnabled()) { log.Debug(assembler.GetType().FullName + " CreateItem"); } assembler.CreateItem(dataMessage.body); Identity identity = Identity.GetIdentity(dataMessage.body, base.Destination as DataDestination); dataMessage.identity = identity; } return(dataMessage); }
private object GetItem(DataMessage dataMessage) { object result = null; IAssembler assembler = GetAssembler(); if (assembler != null) { if (log != null && log.IsDebugEnabled) { log.Debug(assembler.GetType().FullName + " GetItem"); } result = assembler.GetItem(dataMessage.identity); return(result); } return(null); }
private IList Fill(DataMessage dataMessage) { IList result = null; IAssembler assembler = GetAssembler(); if (assembler != null) { IList parameters = dataMessage.body as IList; if (log != null && log.IsDebugEnabled) { log.Debug(assembler.GetType().FullName + " Fill"); } result = assembler.Fill(parameters); return(result); } return(null); }
private IMessage Update(DataMessage dataMessage) { IList body = dataMessage.body as IList; IList list2 = body[0] as IList; if ((list2 != null) && (list2.Count != 0)) { IAssembler assembler = this.GetAssembler(); if (assembler != null) { if ((log != null) && log.get_IsDebugEnabled()) { log.Debug(assembler.GetType().FullName + " Update"); } assembler.UpdateItem(body[2], body[1], body[0] as IList); } } return(dataMessage); }
private IMessage Update(DataMessage dataMessage) { IList parameters = dataMessage.body as IList; IList changeObject = parameters[0] as IList; if (changeObject == null || changeObject.Count == 0) { return(dataMessage); } IAssembler assembler = GetAssembler(); if (assembler != null) { if (log != null && log.IsDebugEnabled) { log.Debug(assembler.GetType().FullName + " Update"); } assembler.UpdateItem(parameters[2], parameters[1], parameters[0] as IList); } return(dataMessage); }