|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sqlind.SQLQueryMapper.GenericQueryHandler
public class SQLQueryMapper.GenericQueryHandler
Handle a query execution context
| Nested Class Summary | |
|---|---|
class |
SQLQueryMapper.GenericQueryHandler.BeanListWiringBehavior<T>
Generic query result bean list wiring implementation. |
class |
SQLQueryMapper.GenericQueryHandler.BeanWiringBehavior<T>
Generic query result bean wiring implementation |
class |
SQLQueryMapper.GenericQueryHandler.ResultSetFecthedBehaviour
Generic query result set fetching implementation |
class |
SQLQueryMapper.GenericQueryHandler.SingleBeanListWiringBehavior<T>
Generic query result bean list wiring implementation. |
| Field Summary | |
|---|---|
protected HashMap<String,String> |
injectPointValues
|
protected HashMap<String,Object> |
parameterValues
|
protected PreparedStatement |
ps
|
protected ResultSet |
rs
|
protected SQLQueryMapper.SQLQueryTemplate |
template
|
| Constructor Summary | |
|---|---|
protected |
SQLQueryMapper.GenericQueryHandler(SQLQueryMapper.SQLQueryTemplate template)
|
| Method Summary | |
|---|---|
void |
close()
Close the query context |
protected void |
dumpQuery()
|
void |
fillInParametersFromBean(Object bean)
Try to set the value of query parameters using the given bean |
String |
getInjectedSQL()
|
List<SQLQueryMapper.InjectPoint> |
getInjectPoints()
|
String |
getSQL()
|
String |
getSQLWithParameters()
|
protected String |
performInjection(HashMap<String,String> ipValues)
|
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 |
| Field Detail |
|---|
protected SQLQueryMapper.SQLQueryTemplate template
protected PreparedStatement ps
protected ResultSet rs
protected HashMap<String,Object> parameterValues
protected HashMap<String,String> injectPointValues
| Constructor Detail |
|---|
protected SQLQueryMapper.GenericQueryHandler(SQLQueryMapper.SQLQueryTemplate template)
| Method Detail |
|---|
public List<SQLQueryMapper.InjectPoint> getInjectPoints()
protected void dumpQuery()
public 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.SQLMapperExceptionprotected String performInjection(HashMap<String,String> ipValues)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||