Class Database.Info
- java.lang.Object
-
- com.jgcomptech.tools.databasetools.jdbc.Database.Info
-
- Enclosing class:
- Database
public final class Database.Info extends java.lang.Object
The 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.String
getDBDriverClass()
Returns the class name of the database driver.DatabaseType
getDbType()
Returns the DatabaseType of the database.java.lang.String
getName()
Returns the name of the database.java.util.ArrayList
getTablesList()
Returns an ArrayList of all tables in the database.boolean
tableExists(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.SQLException
Checks 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.SQLException
Returns an ArrayList of all tables in the database.- Returns:
- ArrayList of tables
- Throws:
java.sql.SQLException
- if error occurs
-
-