}
case TABLE_SCAN: {
if (logger.isDetailEnabled()) logger.detail("Using table scan");
// perform a table scan operation
ScanOperation op = session.getTableScanOperation(domainTypeHandler.getStoreTable());
// set the expected columns into the operation
domainTypeHandler.operationGetValues(op);
// set the bounds into the operation
if (where != null) {
where.filterCmpValue(context, op);
}
// execute the scan and get results
result = op.resultData();
break;
}
case UNIQUE_KEY: {
storeIndex = index.getStoreIndex();
if (logger.isDetailEnabled()) logger.detail("Using unique lookup with index " + index.getIndexName());
// perform a unique lookup operation
IndexOperation op = session.getUniqueIndexOperation(storeIndex, domainTypeHandler.getStoreTable());
// set the keys of the indexName into the operation
where.operationEqual(context, op);
// set the expected columns into the operation
//domainTypeHandler.operationGetValuesExcept(op, indexName);
domainTypeHandler.operationGetValues(op);
// execute the select and get results
result = op.resultData();
break;
}
default:
session.failAutoTransaction();