org.histpop.server.db
Class SQLQuery
java.lang.Object
org.histpop.server.db.SQLQuery
- All Implemented Interfaces:
- Query
public class SQLQuery
- extends java.lang.Object
- implements Query
This is a very simple implementation of Query that accepts SQL queries.
More complex classes would accept query strings in a different language
and convert them to SQL
Constructor Summary |
SQLQuery(java.lang.String sqlstr)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLQuery
public SQLQuery(java.lang.String sqlstr)
setResultType
public void setResultType(java.lang.String type)
getTargetObjectType
public java.lang.String getTargetObjectType()
- Specified by:
getTargetObjectType
in interface Query
getSQLString
public java.lang.String getSQLString()
- Specified by:
getSQLString
in interface Query
bind
public void bind(java.lang.String value)