/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.supportunit.epl;
import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.EventType;
import com.espertech.esper.epl.core.*;
import com.espertech.esper.supportunit.bean.SupportBean;
import com.espertech.esper.supportunit.bean.SupportBeanComplexProps;
import com.espertech.esper.supportunit.event.SupportEventBeanFactory;
import com.espertech.esper.supportunit.event.SupportEventTypeFactory;
public class SupportStreamTypeSvc3Stream implements StreamTypeService {
private StreamTypeService impl;
public SupportStreamTypeSvc3Stream() {
impl = new StreamTypeServiceImpl(getEventTypes(), getStreamNames(), new boolean[10], "default", false);
}
public PropertyResolutionDescriptor resolveByPropertyName(String propertyName, boolean obtainFragment) throws DuplicatePropertyException, PropertyNotFoundException {
return impl.resolveByPropertyName(propertyName, false);
}
public PropertyResolutionDescriptor resolveByStreamAndPropName(String streamName, String propertyName, boolean obtainFragment) throws PropertyNotFoundException, StreamNotFoundException {
return impl.resolveByStreamAndPropName(streamName, propertyName, false);
}
public PropertyResolutionDescriptor resolveByStreamAndPropName(String streamAndPropertyName, boolean obtainFragment) throws DuplicatePropertyException, PropertyNotFoundException {
return impl.resolveByStreamAndPropName(streamAndPropertyName, false);
}
public PropertyResolutionDescriptor resolveByPropertyNameExplicitProps(String propertyName, boolean obtainFragment) throws PropertyNotFoundException, DuplicatePropertyException {
return impl.resolveByPropertyNameExplicitProps(propertyName, false);
}
public PropertyResolutionDescriptor resolveByStreamAndPropNameExplicitProps(String streamName, String propertyName, boolean obtainFragment) throws PropertyNotFoundException, StreamNotFoundException {
return impl.resolveByStreamAndPropNameExplicitProps(streamName, propertyName, false);
}
public String[] getStreamNames() {
return new String[]{"s0", "s1", "s2"};
}
public EventType[] getEventTypes() {
EventType[] eventTypes = new EventType[]{
SupportEventTypeFactory.createBeanType(SupportBean.class),
SupportEventTypeFactory.createBeanType(SupportBean.class),
SupportEventTypeFactory.createBeanType(SupportBeanComplexProps.class),
};
return eventTypes;
}
public String[] geteventTypeNamees() {
return new String[]{"SupportBean", "SupportBean", "SupportBeanComplexProps"};
}
public static EventBean[] getSampleEvents() {
return new EventBean[]{SupportEventBeanFactory.createObject(new SupportBean()),
SupportEventBeanFactory.createObject(new SupportBean()),
SupportEventBeanFactory.createObject(SupportBeanComplexProps.makeDefaultBean()),
};
}
public boolean[] getIStreamOnly() {
return new boolean[10];
}
public int getStreamNumForStreamName(String streamName) {
return impl.getStreamNumForStreamName(streamName);
}
public boolean isOnDemandStreams() {
return impl.isOnDemandStreams();
}
public String getEngineURIQualifier() {
return "default";
}
public boolean hasPropertyAgnosticType() {
return false;
}
public boolean hasTableTypes() {
return false;
}
public boolean isStreamZeroUnambigous() {
return false;
}
}