org.histpop.server.db
Class SQLQuery

java.lang.Object
  extended by 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)
           
 
Method Summary
 void bind(java.lang.String value)
           
 java.lang.String getSQLString()
           
 java.lang.String getTargetObjectType()
           
 void setResultType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLQuery

public SQLQuery(java.lang.String sqlstr)
Method Detail

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)