public class GeometryColumnsUtils extends Object
GeometryColumnsUtils provides useful methods for checking the
GEOMETRY_COLUMNS table.| Modifier and Type | Method and Description |
|---|---|
static boolean |
geometryColumnsExists(Database database)
Indicates if the
GEOMETRY_COLUMNS table or view exists. |
static boolean |
hasGeometryColumn(Database database,
String schemaName,
String tableName)
Determines if the given table is in
GEOMETRY_COLUMNS and,
therefore, has a geometry column. |
static boolean |
isGeometryColumn(Database database,
String schemaName,
String tableName,
String columnName)
Determines if the given column is in
GEOMETRY_COLUMNS. |
public static boolean hasGeometryColumn(Database database,
String schemaName,
String tableName)
GEOMETRY_COLUMNS and,
therefore, has a geometry column.database - the database to query.schemaName - the schema name.tableName - the table name to check.true if the table has a geometry column.public static boolean isGeometryColumn(Database database,
String schemaName,
String tableName,
String columnName)
GEOMETRY_COLUMNS.database - the database to query.schemaName - the schema name.tableName - the table name.columnName - the column name.true if the column is a geometry column.public static boolean geometryColumnsExists(Database database)
GEOMETRY_COLUMNS table or view exists.database - the database to check.true if the table or view exists.Copyright © 2014–2015. All rights reserved.