import static com.buschmais.cdo.api.Query.Result.CompositeRowObject;
public class RowProxyMethodService extends AbstractProxyMethodService<Map<String, Object>, RowProxyMethod> {
public RowProxyMethodService(SortedSet<Class<?>> types) {
BeanMethodProvider beanMethodProvider = BeanMethodProvider.newInstance();
for (Class<?> type : types) {
Collection<AnnotatedMethod> typeMethodsOfType = beanMethodProvider.getMethods(type);
for (AnnotatedMethod typeMethod : typeMethodsOfType) {
if (!(typeMethod instanceof GetPropertyMethod)) {
throw new CdoException("Only get methods are supported for projections: '" + typeMethod.getAnnotatedElement().getName() + "'.");
}
PropertyMethod propertyMethod = (PropertyMethod) typeMethod;