|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sqlind.SQLQueryMapper.SQLQueryHandler
public class SQLQueryMapper.SQLQueryHandler
Handle a query execution context
| Nested Class Summary | |
|---|---|
class |
SQLQueryMapper.SQLQueryHandler.BeanListWiringBehavior<T>
Generic query result bean list wiring implementation. |
class |
SQLQueryMapper.SQLQueryHandler.BeanWiringBehavior<T>
Generic query result bean wiring implementation |
class |
SQLQueryMapper.SQLQueryHandler.ResultSetFecthedBehaviour
Generic query result set fetching implementation |
class |
SQLQueryMapper.SQLQueryHandler.SingleBeanListWiringBehavior<T>
Generic query result bean list wiring implementation. |
| Method Summary | ||
|---|---|---|
void |
close()
Close the query context |
|
void |
fillInParametersFromBean(Object bean)
Try to set the value of query parameters using the given bean |
|
String |
getInjectedSQL()
|
|
List<SQLQueryMapper.InjectPoint> |
getInjectPoints()
|
|
|
getSingleResult(Connection cnx)
Perform a query and return a single result from the first record |
|
String |
getSQL()
|
|
String |
getSQLWithParameters()
|
|
void |
performSelectQuery(Connection cnx,
SQLQueryMapper.QueryBehavior behaviour)
Perform a select over DB using current query definition. |
|
void |
performUpdateQuery(Connection cnx)
Perform an update over DB using current query definition. |
|
void |
setInjection(String injectPointId,
String value)
Map a value to a given insert point. |
|
void |
setParameter(String paramId,
Object value)
Map a value to the given parameter |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public List<SQLQueryMapper.InjectPoint> getInjectPoints()
public <T> T getSingleResult(Connection cnx)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
public void performUpdateQuery(Connection cnx)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperException
public void performSelectQuery(Connection cnx,
SQLQueryMapper.QueryBehavior behaviour)
throws SQLQueryMapper.SQLMapperException
cnx - the DB connection instance
SQLQueryMapper.SQLMapperExceptionpublic String getSQLWithParameters()
public void close()
public void setParameter(String paramId,
Object value)
throws SQLQueryMapper.SQLMapperException
paramId - value -
SQLQueryMapper.SQLMapperException
public void setInjection(String injectPointId,
String value)
throws SQLQueryMapper.SQLMapperException
injectPointId - value -
SQLQueryMapper.SQLMapperExceptionpublic String getSQL()
public String getInjectedSQL()
public void fillInParametersFromBean(Object bean)
throws SQLQueryMapper.SQLMapperException
bean -
SQLQueryMapper.SQLMapperException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||