public class ShowProperties extends Object
DatabaseMetaData| Modifier and Type | Field and Description |
|---|---|
protected DatabaseMetaData |
meta
Object containing information on the database.
|
protected boolean |
valid
True indicates that the class was able to
successfully obtain a DatabaseMetaData object.
|
| Constructor and Description |
|---|
ShowProperties(Connection conn)
Constructor using java.sql.Connection object.
|
ShowProperties(DatabaseProperties data)
Constructor using my database class.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseMetaData |
getMetaData()
Class returning database meta data object.
|
void |
printInfo()
Sends information on the database to System.out.
|
void |
printInfo(GenericPrinter printer)
Sends information on the database to the object.
|
void |
printInfo(PrintStream value)
Sends information on the database to the object.
|
void |
printInfo(PrintWriter value)
Sends information on the database to the object.
|
protected DatabaseMetaData meta
protected boolean valid
public ShowProperties(Connection conn) throws SQLException
conn - Connection objectSQLExceptionpublic ShowProperties(DatabaseProperties data) throws SQLException
data - Object containing database connectivity information.SQLExceptionpublic DatabaseMetaData getMetaData()
public void printInfo(PrintStream value) throws SQLException
value - Object for printing information,SQLExceptionpublic void printInfo(PrintWriter value) throws SQLException
value - Object for printing information.SQLExceptionpublic void printInfo(GenericPrinter printer) throws SQLException
printer - GenericPrinter object to be used for outputSQLExceptionpublic void printInfo() throws SQLException
SQLExceptionSystem.out