|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.framework.TopiaSQLQuery<O>
O - the type of result datapublic abstract class TopiaSQLQuery<O>
An executor of sql query which permits to obtain a single result via
the method findSingleResult(TopiaContextImplementor)
or a multiple result with method findMultipleResult(TopiaContextImplementor).
| Constructor Summary | |
|---|---|
TopiaSQLQuery()
|
|
| Method Summary | |
|---|---|
List<O> |
findMultipleResult(TopiaContextImplementor tx)
Obtain a multiple results fro the builded sql query. |
O |
findSingleResult(TopiaContextImplementor tx)
Obtain a single result from the builded sql query. |
protected abstract PreparedStatement |
prepareQuery(Connection connection)
Prepare the statement used to do the sql query. |
protected abstract O |
prepareResult(ResultSet set)
given a result set, extract the data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopiaSQLQuery()
| Method Detail |
|---|
protected abstract PreparedStatement prepareQuery(Connection connection)
throws SQLException
connection - jdbc connection to use
SQLException - if any problem
protected abstract O prepareResult(ResultSet set)
throws SQLException
set - the result set
null
SQLException - if any prob
public O findSingleResult(TopiaContextImplementor tx)
throws TopiaException
tx - the transaction used to execute the query.
null if none found.
TopiaException - for any pb
public List<O> findMultipleResult(TopiaContextImplementor tx)
throws TopiaException
tx - the transaction used to execute the query.
TopiaException - for any pb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||