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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Bindings
getBindings()
getBindingsjava.sql.Connection
getManagedConnection(java.lang.String dbSourceName)
gets managed connection that should not be closedint
getMaxRows()
Method getMaxRowsint
getMaxSQLBatchSize()
Method getMaxSQLBatchSizeorg.w3c.dom.Document
getRequestDoc()
getRequestDocjava.lang.String
getRequestUrl()
getRequestUrljava.sql.Connection
getUnmanagedConnection(java.lang.String dbSourceName)
gets UnmanagedConnection, that should be closed by userboolean
isDebugMode()
isDebugModevoid
setMaxSQLBatchSize(int maxSQLBatchSize)
Method setMaxSQLBatchSizevoid
setRequestDoc(org.w3c.dom.Document doc)
Delayed setting the request doc, of not already available in constructor
-
-
-
Method Detail
-
getRequestUrl
java.lang.String getRequestUrl()
getRequestUrl- Returns:
- the URL of the request
-
getRequestDoc
org.w3c.dom.Document getRequestDoc()
getRequestDoc- Returns:
- the request xml-document or null
-
isDebugMode
boolean isDebugMode()
isDebugMode- Returns:
- true if debug mode
-
getManagedConnection
java.sql.Connection getManagedConnection(java.lang.String dbSourceName) throws java.lang.Exception
gets managed connection that should not be closed- Parameters:
dbSourceName
- - the name of requeted db-connection, null for default- Returns:
- the database connection
- Throws:
java.lang.Exception
- - if connection with the name not found or database is not available
-
getUnmanagedConnection
java.sql.Connection getUnmanagedConnection(java.lang.String dbSourceName) throws java.lang.Exception
gets UnmanagedConnection, that should be closed by user- Parameters:
dbSourceName
-- Returns:
- Throws:
java.lang.Exception
-
getBindings
Bindings getBindings() throws javax.xml.xpath.XPathExpressionException, org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, BindingException
getBindings- Returns:
- the Bindings used for this request, using this and not Bindings.getInstance() allows usage in batch environments
- Throws:
BindingException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
-
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
void setRequestDoc(org.w3c.dom.Document doc)
Delayed setting the request doc, of not already available in constructor- Parameters:
doc
-
-
-