예제 #1
0
        public override EventBeanCopyMethod GetCopyMethod(String[] properties)
        {
            BaseNestableEventUtil.MapIndexedPropPair pair = BaseNestableEventUtil.GetIndexedAndMappedProps(properties);

            if (pair.MapProperties.IsEmpty() && pair.ArrayProperties.IsEmpty())
            {
                return(new ObjectArrayEventBeanCopyMethod(this, EventAdapterService));
            }
            else
            {
                return(new ObjectArrayEventBeanCopyMethodWithArrayMap(
                           this, EventAdapterService, pair.MapProperties, pair.ArrayProperties, PropertiesIndexes));
            }
        }
예제 #2
0
        public override EventBeanCopyMethodForge GetCopyMethodForge(string[] properties)
        {
            var pair = BaseNestableEventUtil.GetIndexedAndMappedProps(properties);

            if (pair.MapProperties.IsEmpty() && pair.ArrayProperties.IsEmpty()) {
                return new ObjectArrayEventBeanCopyMethodForge(this, BeanEventTypeFactory.EventBeanTypedEventFactory);
            }

            return new ObjectArrayEventBeanCopyMethodWithArrayMapForge(
                this,
                pair.MapProperties,
                pair.ArrayProperties,
                PropertiesIndexes);
        }