|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.jdbc.JdbcServer
public class JdbcServer
Field Summary | |
---|---|
static boolean |
debug
|
protected static java.util.Properties |
defaultProps
Default properties |
protected static java.util.Vector |
drivers
the drivers loaded |
protected static java.util.HashMap |
servers
The cached servers, index is the jdbc URI |
Constructor Summary | |
---|---|
protected |
JdbcServer(java.lang.String uri,
java.lang.String user,
java.lang.String password,
ConnectionManager manager)
Constructor |
Method Summary | |
---|---|
void |
deleteConnection(JdbcConnection conn)
|
java.sql.DatabaseMetaData |
getMetaData()
Get the MetaData of the tables. |
static JdbcServer |
getServer(java.lang.String uri,
java.util.Properties props)
Get the Server object from the cache, if it is not present, try to create one. |
static JdbcServer |
getServer(java.lang.String uri,
java.lang.String user,
java.lang.String password)
Get the Server object from the cache, if it is not present, try to create one. |
static JdbcServer |
getServer(java.lang.String uri,
java.lang.String user,
java.lang.String password,
java.lang.String driver)
Get the Server object from the cache, if it is not present, try to create one. |
static JdbcServer |
getServer(java.lang.String uri,
java.lang.String user,
java.lang.String password,
java.lang.String driver,
java.util.Properties props)
Get the Server object from the cache, if it is not present, try to create one. |
protected org.w3c.tools.jdbc.JdbcServerState |
getState()
Get our server state (used to store things) |
java.sql.ResultSet |
runQuery(java.lang.String command,
boolean close)
|
java.sql.ResultSet |
runRequest(java.lang.String command,
boolean close)
|
int |
runUpdate(java.lang.String command,
boolean close)
|
java.lang.String |
toString()
|
void |
unregisterConnection(JdbcConnection conn)
Unregister a connection from the idle list. |
protected void |
updateProperties(java.util.Properties props)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean debug
protected static java.util.HashMap servers
protected static java.util.Vector drivers
protected static java.util.Properties defaultProps
Constructor Detail |
---|
protected JdbcServer(java.lang.String uri, java.lang.String user, java.lang.String password, ConnectionManager manager)
uri
- the jdbc URI of the DB serveruser
- the user namepassword
- the passwordmanager
- the connection managerMethod Detail |
---|
protected final org.w3c.tools.jdbc.JdbcServerState getState()
public static JdbcServer getServer(java.lang.String uri, java.lang.String user, java.lang.String password)
uri
- the jdbc URI of the DB serveruser
- the user namepassword
- the password
public static JdbcServer getServer(java.lang.String uri, java.util.Properties props)
uri
- the jdbc URI of the DB serverprops
- the Jdbc properties
public static JdbcServer getServer(java.lang.String uri, java.lang.String user, java.lang.String password, java.lang.String driver)
uri
- the jdbc URI of the DB serveruser
- the user namepassword
- the passworddriver
- the JDBC driver name
public static JdbcServer getServer(java.lang.String uri, java.lang.String user, java.lang.String password, java.lang.String driver, java.util.Properties props)
uri
- the jdbc URI of the DB serveruser
- the user namepassword
- the passworddriver
- the JDBC driver nameprops
- the Jdbc properties
protected void updateProperties(java.util.Properties props)
public void unregisterConnection(JdbcConnection conn)
conn
- The connection to unregister from the idle list.public void deleteConnection(JdbcConnection conn)
public java.sql.ResultSet runRequest(java.lang.String command, boolean close) throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSet runQuery(java.lang.String command, boolean close) throws java.sql.SQLException
java.sql.SQLException
public int runUpdate(java.lang.String command, boolean close) throws java.sql.SQLException
java.sql.SQLException
public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |