Package com.espertech.esper.event

Examples of com.espertech.esper.event.EventTypeMetadata


        else
        {
            throw new IllegalArgumentException("Unknown revision type '" + spec.getPropertyRevision() + "'");
        }

        EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(revisioneventTypeName, EventTypeMetadata.TypeClass.REVISION);
        revisionEventType = new RevisionEventType(metadata, propertyDesc, eventAdapterService);
    }
View Full Code Here


        // sort non-key properties, removing keys
        groups = PropertyUtility.analyzeGroups(spec.getChangesetPropertyNames(), spec.getDeltaTypes(), spec.getDeltaNames());
        Map<String, RevisionPropertyTypeDesc> propertyDesc = createPropertyDescriptors(spec, groups);

        typeDescriptors = PropertyUtility.getPerType(groups, spec.getChangesetPropertyNames(), spec.getKeyPropertyNames());
        EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(revisionEventTypeName, EventTypeMetadata.TypeClass.REVISION);
        revisionEventType = new RevisionEventType(metadata, propertyDesc, eventAdapterService);
    }
View Full Code Here

        else
        {
            strategy = new VariantPropResolutionStrategyDefault(variantSpec);
        }

        EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(variantSpec.getVariantStreamName(), EventTypeMetadata.TypeClass.VARIANT);
        variantEventType = new VariantEventType(metadata, variantSpec, strategy);
    }
View Full Code Here

            if ((legacyDef == null) && (defaultAccessorStyle != ConfigurationEventTypeLegacy.AccessorStyle.JAVABEAN)) {
                legacyDef = new ConfigurationEventTypeLegacy();
                legacyDef.setAccessorStyle(defaultAccessorStyle);
            }

            EventTypeMetadata metadata = EventTypeMetadata.createBeanType(name, clazz, isPreconfiguredStatic, isPreconfigured, isConfigured);
            eventType = new BeanEventType(metadata, clazz, eventAdapterService, legacyDef);
            typesPerJavaBean.put(clazz, eventType);
        }
        catch (RuntimeException ex)
        {
View Full Code Here

        else
        {
            config = (ConfigurationEventTypeAxiom) eventTypeContext.getTypeInitializer();
        }

        EventTypeMetadata metadata = EventTypeMetadata.createXMLType(config.getRootElementName(), true, false);
        AxiomXMLEventType eventType = new AxiomXMLEventType(metadata, config);
        types.put(config.getRootElementName(), eventType)// keep a handle on the types created to allow dynamic event reflection via bean factory
        return new AxiomEventTypeHandler(eventType);
    }
View Full Code Here

        else
        {
            throw new IllegalArgumentException("Unknown revision type '" + spec.getPropertyRevision() + "'");
        }

        EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(revisioneventTypeName, EventTypeMetadata.TypeClass.REVISION);
        revisionEventType = new RevisionEventType(metadata, eventTypeIdGenerator.getTypeId(revisioneventTypeName), propertyDesc, eventAdapterService);
    }
View Full Code Here

        // sort non-key properties, removing keys
        groups = PropertyUtility.analyzeGroups(spec.getChangesetPropertyNames(), spec.getDeltaTypes(), spec.getDeltaNames());
        Map<String, RevisionPropertyTypeDesc> propertyDesc = createPropertyDescriptors(spec, groups);

        typeDescriptors = PropertyUtility.getPerType(groups, spec.getChangesetPropertyNames(), spec.getKeyPropertyNames());
        EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(revisionEventTypeName, EventTypeMetadata.TypeClass.REVISION);
        revisionEventType = new RevisionEventType(metadata, eventTypeIdGenerator.getTypeId(revisionEventTypeName), propertyDesc, eventAdapterService);
    }
View Full Code Here

        else
        {
            strategy = new VariantPropResolutionStrategyDefault(variantSpec);
        }

        EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(variantSpec.getVariantStreamName(), EventTypeMetadata.TypeClass.VARIANT);
        variantEventType = new VariantEventType(metadata, eventTypeIdGenerator.getTypeId(variantSpec.getVariantStreamName()), variantSpec, strategy, config);
    }
View Full Code Here

        else
        {
            config = (ConfigurationEventTypeAxiom) eventTypeContext.getTypeInitializer();
        }

        EventTypeMetadata metadata = EventTypeMetadata.createXMLType(config.getRootElementName(), true, false);
        AxiomXMLEventType eventType = new AxiomXMLEventType(metadata, eventTypeContext.getEventTypeId(), config);
        types.put(config.getRootElementName(), eventType)// keep a handle on the types created to allow dynamic event reflection via bean factory
        return new AxiomEventTypeHandler(eventType);
    }
View Full Code Here

                legacyDef = new ConfigurationEventTypeLegacy();
                legacyDef.setAccessorStyle(defaultAccessorStyle);
            }

            int typeId = eventTypeIdGenerator.getTypeId(name);
            EventTypeMetadata metadata = EventTypeMetadata.createBeanType(name, clazz, isPreconfiguredStatic, isPreconfigured, isConfigured);
            eventType = new BeanEventType(metadata, typeId, clazz, eventAdapterService, legacyDef);
            typesPerJavaBean.put(clazz, eventType);
        }
        catch (RuntimeException ex)
        {
View Full Code Here

TOP

Related Classes of com.espertech.esper.event.EventTypeMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.