com.espertech.esper.event.vaevent.VAERevisionEventPropertyGetterDeclaredOneKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esper Show documentation
Show all versions of esper Show documentation
Complex event processing and event series analysis component
/*
***************************************************************************************
* 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.event.vaevent;
import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.PropertyAccessException;
import com.espertech.esper.codegen.core.CodegenContext;
import com.espertech.esper.codegen.model.expression.CodegenExpression;
import com.espertech.esper.event.EventPropertyGetterSPI;
import static com.espertech.esper.codegen.model.expression.CodegenExpressionBuilder.*;
import static com.espertech.esper.event.vaevent.VAERevisionEventPropertyGetterDeclaredGetVersioned.revisionImplementationNotProvided;
public class VAERevisionEventPropertyGetterDeclaredOneKey implements EventPropertyGetterSPI {
public Object get(EventBean eventBean) throws PropertyAccessException {
RevisionEventBeanDeclared riv = (RevisionEventBeanDeclared) eventBean;
return riv.getKey();
}
public boolean isExistsProperty(EventBean eventBean) {
return true;
}
public Object getFragment(EventBean eventBean) {
return null;
}
public CodegenExpression codegenEventBeanGet(CodegenExpression beanExpression, CodegenContext context) {
return exprDotMethod(cast(RevisionEventBeanDeclared.class, beanExpression), "getKey");
}
public CodegenExpression codegenEventBeanExists(CodegenExpression beanExpression, CodegenContext context) {
return constantTrue();
}
public CodegenExpression codegenEventBeanFragment(CodegenExpression beanExpression, CodegenContext context) {
return constantNull();
}
public CodegenExpression codegenUnderlyingGet(CodegenExpression underlyingExpression, CodegenContext context) {
throw revisionImplementationNotProvided();
}
public CodegenExpression codegenUnderlyingExists(CodegenExpression underlyingExpression, CodegenContext context) {
throw revisionImplementationNotProvided();
}
public CodegenExpression codegenUnderlyingFragment(CodegenExpression underlyingExpression, CodegenContext context) {
throw revisionImplementationNotProvided();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy