for (AnnotatedMethod typeMethod : typeMethodsOfType) {
if (!(typeMethod instanceof GetPropertyMethod)) {
throw new CdoException("Only get methods are supported for projections: '" + typeMethod.getAnnotatedElement().getName() + "'.");
}
PropertyMethod beanPropertyMethod = (PropertyMethod) typeMethod;
GetMethod proxyMethod = new GetMethod(beanPropertyMethod.getName(), beanPropertyMethod.getType());
addProxyMethod(proxyMethod, beanPropertyMethod.getAnnotatedElement());
}
}
addMethod(new AsMethod<Map<String, Object>>(), CompositeObject.class, "as", Class.class);
addMethod(new com.buschmais.cdo.impl.proxy.query.row.GetMethod(), CompositeRowObject.class, "get", String.class, Class.class);