public class RQLQueryForEach extends ForEach
For each row returned by the query, we set the following parameters:
<dsp:param name="firstName" bean="MyUser.firstName"/> <dsp:param name="repository" value="/atg/userprofiling/ProfileAdapterRepository"/> <dsp:param name="itemDescriptor" value="user"/> <dsp:param name="queryRQL" value="firstName=:firstName"/> <dsp:param name="transactionManager" bean="/atg/dynamo/transaction/TransactionManager"/>
The values for the ":name" constructs in your query are taken from the parameters in your request. You can also define a set of output parameters which you can use to control the formatting for the returned results:
ForEach
,
SQLQueryForEach
Modifier and Type | Class and Description |
---|---|
static class |
RQLQueryForEach.RQLQueryReturnData
RQLQueryReturnData
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static ParameterName |
ERROR |
static ParameterName |
ITEM_DESCRIPTOR |
static ParameterName |
QUERY_RQL |
static ParameterName |
REPOSITORY |
static java.lang.String |
REPOSITORY_EXCEPTION
returned if query failed with a RepositoryException
|
static ParameterName |
TRANSACTION_MANAGER |
ARRAY, COUNT, DEBUG, ELEMENT, ELEMENT_NAME, EMPTY, INDEX, INDEX_NAME, KEY, OUTPUT, OUTPUT_END, OUTPUT_START, REVERSE_ORDER, SIZE, SORT_PROPERTIES
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RQLQueryForEach() |
Modifier and Type | Method and Description |
---|---|
void |
service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
Renders the list of items retrieved by the query
|
getArray, getSortedArray, serviceArray, serviceCollection, serviceDictionary, serviceEnumeration, serviceIndexedList, serviceIterator, serviceMap, serviceMapArray, servicePrimitiveArray, setElementParameter
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final ParameterName REPOSITORY
public static final ParameterName ITEM_DESCRIPTOR
public static final ParameterName QUERY_RQL
public static final ParameterName TRANSACTION_MANAGER
public static final ParameterName ERROR
public static final java.lang.String REPOSITORY_EXCEPTION
public void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
service
in class ForEach
DynamoHttpServletRequest
- Request containing parameters from
which the query is builtDyanamoHttpServletResponse
- Response built during service.javax.servlet.ServletException
- Thrown if servlet interface is used improperly.java.io.IOException
- Thrown if problem servicing output parameters or
during the parent's .service() method.