com.adobe.icc.dbforms.obj
Class Query

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

public class Query
extends java.lang.Object
implements java.io.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)
          Add statement to the query.
 java.lang.String getObjectType()
          Get object type for which query is executed.
 java.util.Map getQueryParams()
          Build and return a Map of the params for the query.
 java.lang.String getQueryString()
          Get query string.
 SortField[] getSortFields()
          Get SortFields in the query.
 java.util.List getStatements()
          Get statements in the query.
 void setObjectType(java.lang.String objectType)
          Sets object type for executing query.
 void setQueryString(java.lang.String queryString)
          Sets query string.
 void setSortFields(SortField[] sortFields)
          Sets SortFields in the query.
 void setStatements(java.util.List statements)
          Sets statement in the query.
 
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 java.lang.String getQueryString()
                                throws ICCException
Get query string.

Returns:
the queryString
Throws:
ICCException

getQueryParams

public java.util.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(java.lang.String queryString)
Sets query string.

Parameters:
queryString - the queryString to set

getStatements

public java.util.List getStatements()
Get statements in the query.

Returns:
the statements

setStatements

public void setStatements(java.util.List statements)
Sets statement in the query.

Parameters:
statements - the statements to set

getObjectType

public java.lang.String getObjectType()
Get object type for which query is executed.

Returns:
the objectType

setObjectType

public void setObjectType(java.lang.String objectType)
Sets object type for executing query.

Parameters:
objectType - the objectType to set

addStatement

public void addStatement(Statement statement)
Add statement to the query.

Parameters:
statement - statement to add to the query.

getSortFields

public SortField[] getSortFields()
Get SortFields in the query.

Returns:
the SortFields

setSortFields

public void setSortFields(SortField[] sortFields)
Sets SortFields in the query.

Parameters:
SortFields - the SortFields to set


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