|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--oracle.jdeveloper.servlet.DbServletImpl
A class representing a DbServlet implementation
Constructor Summary | |
DbServletImpl()
|
Method Summary | |
void |
clearQueryConditions(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
CommitChanges(UserSession context)
Commit changes. |
void |
commitChangesAndResetContext(UserSession context)
|
void |
connect(UserSession context,
java.lang.String jdbcConnectString)
Connect to the database. |
void |
disconnect(UserSession context)
Disconnect from the database. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
dumpParameters(javax.servlet.http.HttpServletRequest req)
|
void |
executeCommitChanges(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method is called when the user applies any changes. |
void |
executeDeleteForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Executes a POSTed Delete form. |
void |
executeEditForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Executes a POSTed Edit Form. |
void |
executeInsertForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Executes a POSTed New Record (Insert) Form. |
void |
executeLoginPage(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Create a new session to the database using the provided username and password. |
void |
executeLogout(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This is called when the user logs out of the database session. |
void |
executeQueryForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Executes a POSTed Find (Query) Form and calls generateBrowseForm() to produce the query results. |
void |
executeRollbackChanges(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This is called when the user cancels any changes. |
void |
generateEditForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Generates the Edit Form. |
void |
generateInsertForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Generates the New Record (Insert) Form. |
void |
generateLoginPage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Generates the servlet's Login Form. |
void |
generateQueryErrorForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
generateQueryForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Generates the HTML user interface for the Find (Query) Form. |
void |
generateViewForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Generates a View Form. |
java.lang.String |
getAppName()
Gets the file path to the database servlet's runtime deployment XML file. |
boolean |
getAutoCommit()
Returns true if automatic commit is enable, false otherwise. |
java.lang.String |
getDbHostName()
Returns the database connection string. |
HTMLDiv |
getDetailEditForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the DIV that represents the detail table's row set edit view. |
java.lang.String |
getDetailEntityName()
Gets the detail table's entity name. |
HTMLDiv |
getDetailInsertForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the DIV that represents the detail table's new row. |
java.lang.StringBuffer |
getDetailTableColumns()
Gets the SELECT column list used on the detail table. |
java.lang.String |
getDetailTableName()
Gets the detail table's name. |
java.lang.String |
getDetailTableOrderByClause()
Gets the detail table's ORDER BY clause. |
java.lang.StringBuffer |
getDetailTableWhereClause()
Gets the detail table's WHERE clause entry. |
HTMLToolBar |
getDetailToolBar(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the toolbar to be displayed for the detail table. |
HTMLDiv |
getDetailViewForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the DIV that represents the detail table's row set view. |
oracle.jdeveloper.servlet.FormFieldDef |
getEditFormField(javax.servlet.http.HttpServletRequest req,
java.lang.String sTable,
java.lang.String sColName,
java.lang.String sValue)
|
java.lang.String |
getImageDirectory()
Gets the relative URL path to the servlet's images directory. |
java.lang.String |
getLinkName()
Gets the association name (link) that the servlet uses to synchronize the master and detail result sets. |
int |
getLockingMode()
Gets the locking mode. |
HTMLDiv |
getMasterEditForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the DIV that represents the master table's row edit. |
java.lang.String |
getMasterEntityName()
Gets the master table's entity name. |
HTMLDiv |
getMasterInsertForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the DIV that represents the master table's new row. |
java.lang.StringBuffer |
getMasterTableColumns()
Gets the SELECT column list used on the master table. |
java.lang.String |
getMasterTableName()
Gets the master table's name |
java.lang.String |
getMasterTableOrderByClause()
Gets the master table's ORDER BY clause. |
java.lang.StringBuffer |
getMasterTableWhereClause()
Gets the master table's WHERE clause entry. |
HTMLToolBar |
getMasterToolBar(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the toolbar to be displayed for the master table. |
HTMLDiv |
getMasterViewForm(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the DIV that represents the master table's row view. |
java.lang.String |
getServletInfo()
|
java.lang.String |
getServletName()
Gets the servlet's name as registered with the web server. |
java.lang.String |
getServletTitle()
Gets the servlet title displayed by the Login Form. |
boolean |
getShowLoginDialog()
Returns true if the Login Form is displayed when the servlet executes, and false if it is not displayed. |
java.lang.String |
getStyleSheet()
Gets the current value of the Cascading Style Sheet (CSS) associated with this servlet. |
java.lang.String |
getUserName()
Gets the user name. |
java.lang.String |
getUserPassword()
Gets the user password. |
oracle.jdeveloper.servlet.FormFieldDef |
getViewFormField(javax.servlet.http.HttpServletRequest req,
java.lang.String sTable,
java.lang.String sColName,
java.lang.String sValue)
|
void |
handleCustomRequest(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method is called when the servlet receives a URL POST/GET that it does not understand. |
void |
init(javax.servlet.ServletConfig config)
|
void |
initializeDbServlet()
Initializes the servlet. |
boolean |
isHiddenAttribute(java.lang.String sView,
java.lang.String sCol)
|
boolean |
isMasterDetail()
Returns true if the servlet is in master-detail mode, and false if single-table mode. |
void |
reportException(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.Exception ex)
This method generates the HTML user interface that reports an Exception. |
void |
returnLongAttributeData(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns the data for a long attribute column. |
void |
RollbackChanges(UserSession context)
Rollback changes. |
void |
rollbackChangesAndResetContext(UserSession context)
|
void |
saveQueryDefinition(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
boolean |
saveRowEdits(UserSession context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
setAppName(java.lang.String sAppName)
Sets the file path to the servlet's runtime deployment XML file. |
void |
setAutoCommit(boolean bSet)
Enables or disables automatic commit of changes. |
void |
setDbHostName(java.lang.String sHost)
Sets the servlet's database connection string. |
void |
setDetailDisplayRows(int nRows)
|
void |
setDetailEntityName(java.lang.String sName)
Sets the detail table's entity name. |
void |
setDetailTableColumns(java.lang.StringBuffer sColumns)
Sets the SELECT column list to be used on the detail table. |
void |
setDetailTableKeyColumns(java.lang.String sCols)
Sets the list of detail table primary key columns that are to be retrieved, but not made visible in the generated HTML forms. |
void |
setDetailTableName(java.lang.String sName)
Sets the detail table's name Example: setDetailTableName("EMP"); |
void |
setDetailTableOrderByClause(java.lang.String sOrderBy)
Sets the detail table's ORDER BY clause. |
void |
setDetailTableWhereClause(java.lang.StringBuffer sWhere)
Sets the detail table's WHERE clause entry. |
void |
setImageDirectory(java.lang.String sDir)
Sets the relative URL path to the servlet's images directory. |
void |
setLinkName(java.lang.String sLinkName)
Sets the association name (link) that the servlet uses to synchronize the master and detail result sets. |
void |
setLockingMode(int mode)
Sets the locking mode. |
void |
setMasterDetail(boolean bValue)
Sets the servlet's state to master-detail. |
void |
setMasterEntityName(java.lang.String sName)
Sets the master table's entity name. |
void |
setMasterTableColumns(java.lang.StringBuffer sColumns)
Sets the SELECT column list to be used on the master table. |
void |
setMasterTableKeyColumns(java.lang.String sCols)
Sets the list of master-table primary key columns that are to be retrieved, but not made visible in the generated HTML forms. |
void |
setMasterTableName(java.lang.String sName)
Sets the master table's name. |
void |
setMasterTableOrderByClause(java.lang.String sOrderBy)
Sets the master table's ORDER BY clause. |
void |
setMasterTableWhereClause(java.lang.StringBuffer sWhere)
Sets the master table's WHERE clause entry. |
void |
setServletName(java.lang.String sValue)
Sets the servlet's name as registered with the web server. |
void |
setServletTitle(java.lang.String sValue)
Sets the servlet title displayed by the Login Form. |
void |
setShowLoginDialog(boolean bShow)
Sets whether or not to display the Login Form when the servlet executes. |
void |
setStyleSheet(java.lang.String sPath)
Sets the URL path to the Cascading Style Sheet (CSS) that defines the style (look and feel) of the servlet's generated HTML pages. |
void |
setUserName(java.lang.String sName)
Sets the user name. |
void |
setUserPassword(java.lang.String sValue)
Sets the user password. |
boolean |
shouldReportException(java.lang.Exception ex)
This method is called prior to the servlet reporting an exception. |
void |
SyncChanges(UserSession context)
Synchronize changes. |
void |
updateCurrency(UserSession context)
|
void |
updateDetailCurrency(UserSession context)
|
void |
updateMasterCurrency(UserSession context)
|
void |
updateRowsetCurrency(UserSession context,
RowSetIterator qView,
java.lang.String sRowOperation)
|
void |
useHiddenField(java.lang.String sName)
Use this method to specify the hidden field type of the generated HTML form. |
void |
useMimeType(java.lang.String sName,
java.lang.String sPrompt,
java.lang.String sMimeType,
boolean bShowInline)
Use this hint to configure a database field to be displayed by the browser using the given MIME type. |
void |
useSelectField(java.lang.String sName,
java.lang.String sPrompt,
java.lang.String sClass,
java.lang.String[] sValues)
Use this method to specify the field types for combo box controls of the generated HTML form. |
void |
useTextArea(java.lang.String sName,
java.lang.String sPrompt,
java.lang.String sWidth,
java.lang.String sHeight,
java.lang.String sClass,
java.lang.String sMaxLength)
Use this method to specify the text area types for multi-line edit controls of the generated HTML form. |
void |
useTextField(java.lang.String sName,
java.lang.String sPrompt,
java.lang.String sWidth,
java.lang.String sClass,
java.lang.String sMaxLength)
Use this method to specify the text field types for single-line edit controls of the generated HTML form. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete,
doOptions,
doPut,
doTrace,
getLastModified,
service,
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy,
getInitParameter,
getInitParameterNames,
getServletConfig,
getServletContext,
init,
log,
log |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DbServletImpl()
Method Detail |
public void setServletTitle(java.lang.String sValue)
public java.lang.String getServletTitle()
public void setDetailDisplayRows(int nRows)
public void setShowLoginDialog(boolean bShow)
public boolean getShowLoginDialog()
public void dumpParameters(javax.servlet.http.HttpServletRequest req)
public void connect(UserSession context, java.lang.String jdbcConnectString) throws java.lang.Exception
public void disconnect(UserSession context)
public void CommitChanges(UserSession context) throws java.lang.Exception
public void RollbackChanges(UserSession context) throws java.lang.Exception
public void SyncChanges(UserSession context) throws java.lang.Exception
public void commitChangesAndResetContext(UserSession context) throws java.lang.Exception
public void rollbackChangesAndResetContext(UserSession context) throws java.lang.Exception
public void updateCurrency(UserSession context) throws java.lang.Exception
public void updateMasterCurrency(UserSession context) throws java.lang.Exception
public void updateDetailCurrency(UserSession context) throws java.lang.Exception
public void updateRowsetCurrency(UserSession context, RowSetIterator qView, java.lang.String sRowOperation) throws java.lang.Exception
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
public void initializeDbServlet()
public void setAutoCommit(boolean bSet)
public int getLockingMode()
public void setLockingMode(int mode)
public boolean getAutoCommit()
public java.lang.String getUserName()
public void setUserName(java.lang.String sName)
public java.lang.String getUserPassword()
public void setUserPassword(java.lang.String sValue)
public void setStyleSheet(java.lang.String sPath)
public java.lang.String getStyleSheet()
public java.lang.String getDbHostName()
public void setDbHostName(java.lang.String sHost)
public void setImageDirectory(java.lang.String sDir)
public java.lang.String getImageDirectory()
public void setAppName(java.lang.String sAppName)
public java.lang.String getAppName()
public void setServletName(java.lang.String sValue)
public java.lang.String getServletName()
public void setLinkName(java.lang.String sLinkName)
public java.lang.String getLinkName()
public void setMasterTableColumns(java.lang.StringBuffer sColumns)
public java.lang.StringBuffer getMasterTableColumns()
public void setMasterTableName(java.lang.String sName)
public void setMasterEntityName(java.lang.String sName)
public java.lang.String getMasterEntityName()
public java.lang.String getMasterTableName()
public void setMasterTableWhereClause(java.lang.StringBuffer sWhere)
public java.lang.StringBuffer getMasterTableWhereClause()
public void setMasterTableOrderByClause(java.lang.String sOrderBy)
public java.lang.String getMasterTableOrderByClause()
public void setDetailTableColumns(java.lang.StringBuffer sColumns)
public java.lang.StringBuffer getDetailTableColumns()
public void setDetailTableName(java.lang.String sName)
public void setDetailEntityName(java.lang.String sName)
public java.lang.String getDetailEntityName()
public java.lang.String getDetailTableName()
public void setDetailTableWhereClause(java.lang.StringBuffer sWhere)
public java.lang.StringBuffer getDetailTableWhereClause()
public void setDetailTableOrderByClause(java.lang.String sOrderBy)
public java.lang.String getDetailTableOrderByClause()
public void setMasterDetail(boolean bValue)
public boolean isMasterDetail()
public void setMasterTableKeyColumns(java.lang.String sCols)
public void setDetailTableKeyColumns(java.lang.String sCols)
public boolean isHiddenAttribute(java.lang.String sView, java.lang.String sCol)
public void executeLoginPage(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
public java.lang.String getServletInfo()
public void generateLoginPage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public boolean shouldReportException(java.lang.Exception ex)
public void reportException(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.Exception ex)
public void saveQueryDefinition(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void clearQueryConditions(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void generateQueryForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void executeQueryForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void generateQueryErrorForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLToolBar getMasterToolBar(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLToolBar getDetailToolBar(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLDiv getMasterViewForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLDiv getMasterEditForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLDiv getMasterInsertForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLDiv getDetailViewForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void generateViewForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLDiv getDetailEditForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public HTMLDiv getDetailInsertForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void returnLongAttributeData(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void generateEditForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public boolean saveRowEdits(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
public void executeEditForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void executeDeleteForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void generateInsertForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void executeInsertForm(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void handleCustomRequest(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void executeLogout(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void executeCommitChanges(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void executeRollbackChanges(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public oracle.jdeveloper.servlet.FormFieldDef getEditFormField(javax.servlet.http.HttpServletRequest req, java.lang.String sTable, java.lang.String sColName, java.lang.String sValue)
public oracle.jdeveloper.servlet.FormFieldDef getViewFormField(javax.servlet.http.HttpServletRequest req, java.lang.String sTable, java.lang.String sColName, java.lang.String sValue)
public void useTextArea(java.lang.String sName, java.lang.String sPrompt, java.lang.String sWidth, java.lang.String sHeight, java.lang.String sClass, java.lang.String sMaxLength)
public void useTextField(java.lang.String sName, java.lang.String sPrompt, java.lang.String sWidth, java.lang.String sClass, java.lang.String sMaxLength)
public void useHiddenField(java.lang.String sName)
public void useSelectField(java.lang.String sName, java.lang.String sPrompt, java.lang.String sClass, java.lang.String[] sValues)
public void useMimeType(java.lang.String sName, java.lang.String sPrompt, java.lang.String sMimeType, boolean bShowInline)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |