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 objectSQLException
public ShowProperties(DatabaseProperties data) throws SQLException
data
- Object containing database connectivity information.SQLException
public DatabaseMetaData getMetaData()
public void printInfo(PrintStream value) throws SQLException
value
- Object for printing information,SQLException
public void printInfo(PrintWriter value) throws SQLException
value
- Object for printing information.SQLException
public void printInfo(GenericPrinter printer) throws SQLException
printer
- GenericPrinter object to be used for outputSQLException
public void printInfo() throws SQLException
SQLException
System.out