com.adobe.icc.dbforms.obj
Class Query

java.lang.Object
  extended by com.adobe.icc.dbforms.obj.Query
All Implemented Interfaces:
Serializable

public class Query
extends Object
implements Serializable

POJO to build a Query using a list of Statements .
The list of Statements in the Query would be ANDed to each other.

See Also:
Statement, Serialized Form

Constructor Summary
Query()
           
 
Method Summary
 void addStatement(Statement statement)
           
 String getObjectType()
           
 Map getQueryParams()
          Build and return a Map of the params for the query.
 String getQueryString()
           
 List getStatements()
           
 void setObjectType(String objectType)
           
 void setQueryString(String queryString)
           
 void setStatements(List statements)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query()
Method Detail

getQueryString

public String getQueryString()
                      throws ICCException
Returns:
the queryString
Throws:
ICCException

getQueryParams

public Map getQueryParams()
Build and return a Map of the params for the query. This can then be used in JPA queries to set the parameters for the PreparedStatement.

Returns:
Map of the params for the query.

setQueryString

public void setQueryString(String queryString)
Parameters:
queryString - the queryString to set

getStatements

public List getStatements()
Returns:
the statements

setStatements

public void setStatements(List statements)
Parameters:
statements - the statements to set

getObjectType

public String getObjectType()
Returns:
the objectType

setObjectType

public void setObjectType(String objectType)
Parameters:
objectType - the objectType to set

addStatement

public void addStatement(Statement statement)


[an error occurred while processing this directive] [an error occurred while processing this directive]