code: public boolean isTableSpatial( String tableName ) throws Exception {
          GeometryColumn geometryColumns = getGeometryColumnsForTable(tableName);
          return geometryColumns != null;
      }
docs: Checks if a table is spatial.
  
  @param tableName
  the table to check.
  @return <code>true</code> if a geometry column is present.
  @throws Exception