흠 .... 나는 이것이 당신이 원하는 것이라고 확신하지 못합니다. 그러나 구체적으로 묻는 것을 수행하는 한 가지 방법은 ORMLite's DAO 방법으로 전달할 수있는 RawRowMapper
을 사용하는 것입니다. dao.queryRaw(String, Rowmapper, String...). 다음과 같은
뭔가 작동합니다 : 내 최신 질문에 대한 등급을 받아 추가했습니다
RawRowMapper<Integer> mapper = new RawRowMapper<Integer>() {
public Integer mapRow(String[] columnNames, String[] resultColumns) {
// maybe you should verify that there _is_ only 1 column here
// maybe you should handle the possibility of a bad number and throw
return Integer.parseInt(resultColumns[0]);
}
};
GenericRawResults<Integer> rawResults =
getHelper().getMyProcessDao().queryRaw(
queryBuild.selectColumns("nid").prepareStatementString(), mapper);
List<Integer> list = rawResults.getResults();
. Didnt는 그것이 정말로 중요했다라는 것을 알고있다. – Maxrunner