Package de.businesscode.bcdui.wrs
Interface IRequestOptions
- All Known Implementing Classes:
HttpRequestOptions,RequestOptions
public interface IRequestOptions
The class represents request options for an operation.
Typically all parameters are readed from a HTTP-Request and/or application configuration
Typically all parameters are readed from a HTTP-Request and/or application configuration
-
Method Summary
Modifier and TypeMethodDescriptiongetBindingsgetManagedConnection(String dbSourceName) gets managed connection that should not be closedintMethod getMaxRowsintMethod getMaxSQLBatchSizegetRequestDocgetRequestUrlgetUnmanagedConnection(String dbSourceName) gets UnmanagedConnection, that should be closed by userbooleanisDebugModevoidsetMaxSQLBatchSize(int maxSQLBatchSize) Method setMaxSQLBatchSizevoidsetRequestDoc(Document doc) Delayed setting the request doc, of not already available in constructor
-
Method Details
-
getRequestUrl
String getRequestUrl()getRequestUrl- Returns:
- the URL of the request
-
getRequestDoc
Document getRequestDoc()getRequestDoc- Returns:
- the request xml-document or null
-
isDebugMode
boolean isDebugMode()isDebugMode- Returns:
- true if debug mode
-
getManagedConnection
gets managed connection that should not be closed- Parameters:
dbSourceName- - the name of requeted db-connection, null for default- Returns:
- the database connection
- Throws:
Exception- - if connection with the name not found or database is not available
-
getUnmanagedConnection
gets UnmanagedConnection, that should be closed by user- Parameters:
dbSourceName-- Returns:
- Throws:
Exception
-
getBindings
Bindings getBindings() throws XPathExpressionException, SAXException, IOException, ParserConfigurationException, BindingExceptiongetBindings- Returns:
- the Bindings used for this request, using this and not Bindings.getInstance() allows usage in batch environments
- Throws:
BindingExceptionParserConfigurationExceptionIOExceptionSAXExceptionXPathExpressionException
-
getMaxSQLBatchSize
int getMaxSQLBatchSize()Method getMaxSQLBatchSize- Returns:
- max count of statements to execute in a SQL Statement
-
setMaxSQLBatchSize
void setMaxSQLBatchSize(int maxSQLBatchSize) Method setMaxSQLBatchSize- Parameters:
maxSQLBatchSize- - max count of statements to execute in a SQL Statement
-
getMaxRows
int getMaxRows()Method getMaxRows- Returns:
- max count rows to be returned
-
setRequestDoc
Delayed setting the request doc, of not already available in constructor- Parameters:
doc-
-