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
- if database errorspublic ShowProperties(DatabaseProperties data) throws SQLException
data
- Object containing database connectivity information.SQLException
- if database errorspublic DatabaseMetaData getMetaData()
public void printInfo(PrintStream value) throws SQLException, IOException
value
- Object for printing information,IOException
- if io errorsSQLException
- if database errorspublic void printInfo(PrintWriter value) throws SQLException, IOException
value
- Object for printing information.IOException
- if io errorsSQLException
- if database errorspublic void printInfo(GenericPrinter printer) throws SQLException, IOException
printer
- GenericPrinter object to be used for outputIOException
- if io errorsSQLException
- if database errorspublic void printInfo() throws SQLException, IOException
IOException
- if io errorsSQLException
- if database errorsSystem.out
Copyright © 2017. All rights reserved.