Class Database.Info
- java.lang.Object
-
- com.jgcomptech.tools.databasetools.jdbc.Database.Info
-
- Enclosing class:
- Database
public final class Database.Info extends java.lang.ObjectThe object that stores the database info, useDatabase.getInfo()to access methods.
-
-
Constructor Summary
Constructors Constructor Description Info()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDBDriverClass()Returns the class name of the database driver.DatabaseTypegetDbType()Returns the DatabaseType of the database.java.lang.StringgetName()Returns the name of the database.java.util.ArrayListgetTablesList()Returns an ArrayList of all tables in the database.booleantableExists(java.lang.String tableName)Checks to see if the specified table exists and is not a system table.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the database.- Returns:
- the name of the database
-
getDbType
public DatabaseType getDbType()
Returns the DatabaseType of the database.- Returns:
- the DatabaseType of the database
-
getDBDriverClass
public java.lang.String getDBDriverClass()
Returns the class name of the database driver.- Returns:
- the class name of the database driver
-
tableExists
public boolean tableExists(java.lang.String tableName) throws java.sql.SQLExceptionChecks to see if the specified table exists and is not a system table.- Parameters:
tableName- table name to check- Returns:
- true if exists
- Throws:
java.sql.SQLException- if error occurs
-
getTablesList
public java.util.ArrayList getTablesList() throws java.sql.SQLExceptionReturns an ArrayList of all tables in the database.- Returns:
- ArrayList of tables
- Throws:
java.sql.SQLException- if error occurs
-
-