Class PooledConnection.Metadata

java.lang.Object
overit.geocall.sql.PooledConnection.Metadata
Enclosing class:
PooledConnection

public class PooledConnection.Metadata extends Object
See Also:
  • DBMetadata
  • Constructor Details

    • Metadata

      public Metadata()
  • Method Details

    • getTables

      public List<String> getTables() throws SQLException
      Retrieve the whole tables
      Returns:
      a list of all DB tables or empty collection if there's none
      Throws:
      SQLException - in the case of any sql error
      See Also:
      • DBMetadata.getTables(Connection)
    • isTableDefined

      public boolean isTableDefined(String table) throws SQLException
      Check if a table exists or not
      Parameters:
      table - the table's name to be checked
      Returns:
      true if the table exists or false otherwise
      Throws:
      SQLException - if a database access error occurs;
      See Also:
      • DBMetadata.isTableDefined(Connection, String)
    • getTableSpaces

      public List<String> getTableSpaces() throws SQLException
      Retrieve the whole tablespaces
      Returns:
      a list of all DB tablespaces or empty collection if there's none
      Throws:
      SQLException - in the case of any sql error
      See Also:
      • DBMetadata.getTableSpaces(Connection)
    • getDefaultTableSpace

      public String getDefaultTableSpace()
      Retrieve the default tablespace name
      Returns:
      the default tablespace name or null if there's none
      See Also:
      • DBMetadata.getDefaultTableSpace()