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_PROPERTIESmAllowCleanupRequest, mParametersSERVLET_INFO_KEYSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_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, setElementParameterdoDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameterdestroy, getServletConfig, getServletInfo, setServletInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, 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, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic 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 ForEachDynamoHttpServletRequest - 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.