|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class representing the DbServlet Interface
Field Summary | |
static int |
CLEAR_QUERY_CONDITIONS
|
static int |
EXECUTE_COMMIT_CHANGES
|
static int |
EXECUTE_DELETE_ROW
|
static int |
EXECUTE_EDIT_FORM
|
static int |
EXECUTE_INSERT_FORM
|
static int |
EXECUTE_LOGIN_FORM
|
static int |
EXECUTE_LOGOUT
|
static int |
EXECUTE_QUERY_FORM
|
static int |
EXECUTE_ROLLBACK_CHANGES
|
static int |
GENERATE_CUSTOM_FORM
|
static int |
GENERATE_EDIT_FORM
|
static int |
GENERATE_INSERT_FORM
|
static int |
GENERATE_LOGIN_FORM
|
static int |
GENERATE_QUERY_FORM
|
static int |
GENERATE_VIEW_FORM
|
static int |
GOTO_CURRENT_RECORD
|
static int |
GOTO_FIRST_RECORD
|
static int |
GOTO_LAST_RECORD
|
static int |
GOTO_NEXT_PAGE
|
static int |
GOTO_NEXT_RECORD
|
static int |
GOTO_PREV_PAGE
|
static int |
GOTO_PREV_RECORD
|
static int |
GOTO_RECORD_NUMBER
|
static int |
SAVE_QUERY_CONDITION
|
static int |
SHOW_LONG_ATTRIBUTE
|
Method Summary | |
void |
CommitChanges(UserSession context)
Commit changes. |
void |
connect(UserSession context,
java.lang.String jdbcConnectString)
Connect to the database. |
void |
disconnect(UserSession context)
Disconnect from the database. |
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 |
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. |
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 |
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. |
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 |
initializeDbServlet()
Initializes the servlet. |
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. |
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 |
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 sName)
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 |
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. |
Field Detail |
public static final int GENERATE_LOGIN_FORM
public static final int EXECUTE_LOGIN_FORM
public static final int GENERATE_QUERY_FORM
public static final int EXECUTE_QUERY_FORM
public static final int GENERATE_EDIT_FORM
public static final int EXECUTE_EDIT_FORM
public static final int GENERATE_INSERT_FORM
public static final int EXECUTE_INSERT_FORM
public static final int GENERATE_VIEW_FORM
public static final int GENERATE_CUSTOM_FORM
public static final int EXECUTE_DELETE_ROW
public static final int EXECUTE_COMMIT_CHANGES
public static final int EXECUTE_ROLLBACK_CHANGES
public static final int EXECUTE_LOGOUT
public static final int SAVE_QUERY_CONDITION
public static final int CLEAR_QUERY_CONDITIONS
public static final int GOTO_FIRST_RECORD
public static final int GOTO_PREV_PAGE
public static final int GOTO_PREV_RECORD
public static final int GOTO_NEXT_RECORD
public static final int GOTO_NEXT_PAGE
public static final int GOTO_LAST_RECORD
public static final int GOTO_CURRENT_RECORD
public static final int GOTO_RECORD_NUMBER
public static final int SHOW_LONG_ATTRIBUTE
Method Detail |
public void initializeDbServlet()
public void setStyleSheet(java.lang.String sPath)
public java.lang.String getStyleSheet()
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 setServletTitle(java.lang.String sValue)
public java.lang.String getServletTitle()
public void setShowLoginDialog(boolean bShow)
public boolean getShowLoginDialog()
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 generateLoginPage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
public void executeLoginPage(UserSession context, 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 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 generateViewForm(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 void returnLongAttributeData(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
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 executeInsertForm(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 generateInsertForm(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 getDetailInsertForm(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 HTMLDiv getDetailEditForm(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 executeCommitChanges(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 executeRollbackChanges(UserSession context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
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)
public java.lang.String getDbHostName()
public void setDbHostName(java.lang.String sHost)
public java.lang.String getUserName()
public void setUserName(java.lang.String sName)
public java.lang.String getUserPassword()
public void setUserPassword(java.lang.String sName)
public int getLockingMode()
public void setLockingMode(int mode)
public void setAutoCommit(boolean bSet)
public boolean getAutoCommit()
public void setMasterTableKeyColumns(java.lang.String sCols)
public void setDetailTableKeyColumns(java.lang.String sCols)
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 connect(UserSession context, java.lang.String jdbcConnectString) throws java.lang.Exception
public void disconnect(UserSession context)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |