| java.lang.Object org.w3c.tools.jdbc.JdbcServer
JdbcServer | public class JdbcServer (Code) | | version: $Revision: 1.29 $ author: Benoît Mahé (bmahe@w3.org) |
Method Summary | |
public void | deleteConnection(JdbcConnection conn) | public DatabaseMetaData | getMetaData() Get the MetaData of the tables. | public static JdbcServer | getServer(String uri, String user, String password) Get the Server object from the cache, if it is not present, try
to create one. | public static JdbcServer | getServer(String uri, Properties props) Get the Server object from the cache, if it is not present, try
to create one. | public static JdbcServer | getServer(String uri, String user, String password, String driver) Get the Server object from the cache, if it is not present, try
to create one. | public static JdbcServer | getServer(String uri, String user, String password, String driver, Properties props) Get the Server object from the cache, if it is not present, try
to create one. | final protected JdbcServerState | getState() | public ResultSet | runQuery(String command, boolean close) | public ResultSet | runRequest(String command, boolean close) | public int | runUpdate(String command, boolean close) | public String | toString() | public synchronized void | unregisterConnection(JdbcConnection conn) Unregister a connection from the idle list.
Unregistering a connection means that the server shouldn't keep
track of it any more. | protected void | updateProperties(Properties props) |
debug | final public static boolean debug(Code) | | |
drivers | protected static Vector drivers(Code) | | the drivers loaded
|
servers | protected static HashMap servers(Code) | | The cached servers, index is the jdbc URI
|
JdbcServer | protected JdbcServer(String uri, String user, String password, ConnectionManager manager)(Code) | | Constructor
Parameters: uri - the jdbc URI of the DB server Parameters: user - the user name Parameters: password - the password Parameters: manager - the connection manager |
getServer | public static JdbcServer getServer(String uri, String user, String password)(Code) | | Get the Server object from the cache, if it is not present, try
to create one. A driver must have been selected.
Parameters: uri - the jdbc URI of the DB server Parameters: user - the user name Parameters: password - the password an instance of JdbcServer |
getServer | public static JdbcServer getServer(String uri, Properties props)(Code) | | Get the Server object from the cache, if it is not present, try
to create one.
Parameters: uri - the jdbc URI of the DB server Parameters: props - the Jdbc properties an instance of JdbcServer |
getServer | public static JdbcServer getServer(String uri, String user, String password, String driver)(Code) | | Get the Server object from the cache, if it is not present, try
to create one.
Parameters: uri - the jdbc URI of the DB server Parameters: user - the user name Parameters: password - the password Parameters: driver - the JDBC driver name an instance of JdbcServer |
getServer | public static JdbcServer getServer(String uri, String user, String password, String driver, Properties props)(Code) | | Get the Server object from the cache, if it is not present, try
to create one.
Parameters: uri - the jdbc URI of the DB server Parameters: user - the user name Parameters: password - the password Parameters: driver - the JDBC driver name Parameters: props - the Jdbc properties an instance of JdbcServer |
getState | final protected JdbcServerState getState()(Code) | | Get our server state (used to store things)
a JdbcServerState instance. |
unregisterConnection | public synchronized void unregisterConnection(JdbcConnection conn)(Code) | | Unregister a connection from the idle list.
Unregistering a connection means that the server shouldn't keep
track of it any more. This can happen in two situations:
- The connection won't be reusable, so there is no point
for the server to try to keep track of it. In this case, the
connection is forgotten, and the caller will terminate it by invoking
the connection's input stream close method.
- The connection has successfully handle a connection, and the
connection is about to be reused. During the time of the request
processing, the server looses track of this connection, which will
register itself again when back to idle.
Parameters: conn - The connection to unregister from the idle list. |
|
|