public abstract class DatabaseAction
extends org.apache.struts.actions.DispatchAction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID
CVS ID
|
protected static java.util.logging.Logger |
logger
Logger instance
|
| Constructor and Description |
|---|
DatabaseAction() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getBasePath()
Get the absolute path to the base of the application.
|
java.sql.Connection |
getConnection(java.lang.String host)
Obtain a new database connection.
|
cancelled, dispatchMethod, execute, getMethod, getMethodName, getParameter, unspecifiedaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic static final java.lang.String ID
protected static java.util.logging.Logger logger
public java.sql.Connection getConnection(java.lang.String host)
throws java.sql.SQLException,
javax.naming.NamingException
host - Request server namejava.sql.SQLException - Could not create new connectionjavax.naming.NamingException - Could not locate JNDI referenceprotected java.lang.String getBasePath()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona