Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
        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);
        }
Ejemplo n.º 10
0
        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);
        }
Ejemplo n.º 11
0
        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);
        }