|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
edu.rice.rubis.servlets.RubisHttpServlet
Provides the method to initialize connection to the database. All the servlets inherit from this class
| Constructor Summary | |
RubisHttpServlet()
|
|
| Method Summary | |
void |
closeConnection(java.sql.Connection connection)
Closes a Connection. |
void |
destroy()
Clean up database connections. |
void |
doGet(edu.rice.rubis.servlets.HttpServletRequest request,
edu.rice.rubis.servlets.HttpServletResponse response)
|
void |
doPost(edu.rice.rubis.servlets.HttpServletRequest request,
edu.rice.rubis.servlets.HttpServletResponse response)
|
void |
finalizeConnections()
Release all the connections to the database. |
java.sql.Connection |
getConnection()
Gets a connection from the pool (round-robin) |
abstract int |
getPoolSize()
|
void |
init()
Load the driver and get a connection to the database |
void |
initializeConnections()
Initialize the pool of connections to the database. |
void |
releaseConnection(java.sql.Connection c)
Releases a connection to the pool. |
| Constructor Detail |
public RubisHttpServlet()
| Method Detail |
public abstract int getPoolSize()
public void init()
throws edu.rice.rubis.servlets.ServletException
public void initializeConnections()
throws java.sql.SQLException
java.sql.SQLException - if an error occurspublic void closeConnection(java.sql.Connection connection)
Connection.connection - to closepublic java.sql.Connection getConnection()
Connection or
null if no connection is availablepublic void releaseConnection(java.sql.Connection c)
c - the connection to release
public void finalizeConnections()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public void doGet(edu.rice.rubis.servlets.HttpServletRequest request,
edu.rice.rubis.servlets.HttpServletResponse response)
throws java.io.IOException,
edu.rice.rubis.servlets.ServletException
public void doPost(edu.rice.rubis.servlets.HttpServletRequest request,
edu.rice.rubis.servlets.HttpServletResponse response)
throws java.io.IOException,
edu.rice.rubis.servlets.ServletException
public void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||