public class JDBCDBConnection
extends java.lang.Object
Constructor and Description |
---|
JDBCDBConnection(java.lang.String driver,
java.lang.String url,
boolean prompt)
Creates a new PCD SQL connection object.
|
JDBCDBConnection(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password)
Creates a new PCD SQL connection object.
|
public JDBCDBConnection(java.lang.String driver, java.lang.String url, boolean prompt)
driver
- the class driver for the databaseurl
- the database URL to connect toprompt
- whether to prompt for the username and password, if nullpublic JDBCDBConnection(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password)
driver
- the class driver for the databaseurl
- the database URL to connect touser
- the user to log into the database server withpassword
- the password to log into the database server withpublic java.sql.Connection connect()
public void close()
public void pcdOut(int scope, java.lang.Appendable out) throws java.io.IOException
scope
- the level of scope to write the menu widget.out
- the writer object to output the BioPCD code.java.io.IOException
Copyright © 2008-2014 University of Manitoba.