return query;
}
});
try {
SdeRow row = session.fetch(query);
int count = 0;
final int childIdIndex = 2;
while (row != null) {
// duplicate shapes are not returned by arcsde.
// in that case indicator has the value
// SeRow.SE_IS_REPEATED_FEATURE
int indicator = row.getIndicator(shapeIndex);
Integer childId = row.getInteger(childIdIndex);
assertEquals(expectedChildIds[count], childId);
// this seems to be DB dependent, on SQLSever repeated shapes have
// SeRow.SE_IS_REPEATED_FEATURE
// indicator, on Oracle they're returned as SE_IS_NOT_NULL_VALUE
// assertEquals("at index " + count, expectedShapeIndicators[count], indicator);
if (SeRow.SE_IS_NOT_NULL_VALUE == indicator) {
Object shape = row.getObject(shapeIndex);
assertTrue(shape.getClass().getName(), shape instanceof SeShape);
}
count++;
row = session.fetch(query);