Class DatabaseUtility

java.lang.Object
org.opengis.cite.gpkg12.util.DatabaseUtility

public final class DatabaseUtility extends Object
Provides database utility methods
Author:
Luke Lambert
  • Method Details

    • doesTableOrViewExist

      public static boolean doesTableOrViewExist(Connection connection, String name) throws SQLException
      Parameters:
      connection - the connection to the database
      name - the name of the table
      Returns:
      true if the table or view exists in the database; otherwise returns false
      Throws:
      SQLException - throws if unable to connect to the database or other various SQLExceptions