e);
}
if (!(statement instanceof Select)) { // either PlainSelect or Union
throw new IllegalArgumentException("expected select or union statement: " + statement);
}
SelectBody selectBody = ((Select) statement).getSelectBody();
if (selectBody instanceof Union) {
// dataStore.registerView(typeName, (Union) selectBody);
throw new UnsupportedOperationException(
"ArcSDEDataStore does not supports registering Union queries");
} else if (selectBody instanceof PlainSelect) {
return (PlainSelect) selectBody;
} else {
throw new IllegalStateException(selectBody.getClass().getName());
}
}