throw new IllegalArgumentException("Unsupported statementType: " + endpoint.getStatementType());
}
}
private void doSelectOne(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("SelectOne: {} using statement: {}", in, statement);