|
Protomatter Application Server v1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.pas.base.ProtoPASStartup
A default implementation of the PASStartup interface. This class provides utility methods for working with JDBC.
Constructor Summary | |
ProtoPASStartup()
Default constructor. |
Method Summary | |
protected void |
close(java.sql.Connection c)
Cleanly close the given Connection. |
protected void |
close(java.sql.ResultSet r)
Cleanly close the given ResultSet. |
protected void |
close(java.sql.Statement s)
Cleanly close the given Statement. |
protected java.sql.Connection |
getConnection()
Get a connection using the driver, URL and properties that were specified as startup arguments. |
protected java.lang.String |
getJDBCDriverClass()
Get the class name of the JDBC driver that was specified as a startup argument. |
protected java.util.Properties |
getJDBCProperties()
Get the properties that were specified as startup arguments for opening JDBC connections. |
protected java.lang.String |
getJDBCURL()
Get the JDBC URL that will be used for opening connections. |
protected java.util.Properties |
getProperties(java.lang.String value)
A utility method. |
protected void |
startup(java.util.Properties serverProps,
java.util.Properties myProps,
javax.naming.Context ctx)
Default startup method. |
abstract java.lang.String |
startup(java.lang.String name,
java.util.Properties serverProps,
java.util.Properties myProps,
javax.naming.Context ctx)
This method must be implemented by sub-classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProtoPASStartup()
Method Detail |
protected java.sql.Connection getConnection() throws java.sql.SQLException
protected java.lang.String getJDBCDriverClass()
protected java.util.Properties getJDBCProperties()
protected java.lang.String getJDBCURL()
protected void close(java.sql.ResultSet r)
protected void close(java.sql.Statement s)
protected void close(java.sql.Connection c)
protected void startup(java.util.Properties serverProps, java.util.Properties myProps, javax.naming.Context ctx) throws StartupException
public abstract java.lang.String startup(java.lang.String name, java.util.Properties serverProps, java.util.Properties myProps, javax.naming.Context ctx) throws StartupException
startup
in interface PASStartup
PASStartup
protected java.util.Properties getProperties(java.lang.String value)
|
Protomatter Application Server v1.0 Copyright 1998-2002 Nate Sammons |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Application Server v1.0 | http://protomatter.sourceforge.net/pas/1.0 |