|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--ccl.servlet.TableHelpServlet
This abstract servlet gets a connection and then looks for all user tables in that database and prints them out. The user can then select a single table to see all column definition on a dedicated html page.
Constructor Summary | |
TableHelpServlet()
|
Method Summary | |
abstract void |
close(HTML html)
The parent class knows how to close the html code. |
abstract java.sql.Connection |
createConnection()
Returns the connection to find all db tables. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The main servlet method. |
abstract void |
printTitle(HTML html)
The parent class knows how to print its title. |
abstract void |
printTOC(HTML html)
The parent class knows how to print its table of content. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableHelpServlet()
Method Detail |
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
java.io.IOException
- in case anything goes wrong
writing output to the http
servlet response.
javax.servlet.ServletException
- in case the servlet has a failure.public abstract void printTitle(HTML html)
public abstract void printTOC(HTML html) throws java.lang.Exception
java.lang.Exception
- if anything goes wrong.public abstract void close(HTML html)
public abstract java.sql.Connection createConnection() throws java.sql.SQLException
java.sql.SQLException
- if anything goes wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |