返回自定义的类型在 Java 中是比较困难,因为很多类型Java中并不支持,除非你使用的数据库厂家提供其方法。
你所举的例子,如果转化为Cursor返回可以用我前面所说的,至于如何转化完全可以在存储过程中执行
Select field1, field2...
From yourTable
Where ....
-- The condiction for table join with the type you defined. such as: yourTable.DictID = yourType.DictID