}
}
private void doSelectList(Exchange exchange) throws Exception {
SqlSessionFactory client = endpoint.getSqlSessionFactory();
SqlSession session = client.openSession();
try {
Object result;
Object in = exchange.getIn().getBody();
if (in != null) {
LOG.trace("SelectList: {} using statement: {}", in, statement);
result = session.selectList(statement, in);
} else {
LOG.trace("SelectList using statement: {}", statement);
result = session.selectList(statement);
}
doProcessResult(exchange, result);
} finally {
session.close();
}
}