static boolean |
GeometryTableUtilities.alterSRID(Connection connection,
TableLocation tableLocation,
String geometryColumnName,
int srid) |
Change the SRID of the table
|
static String |
TableUtilities.caseIdentifier(TableLocation requestedTable,
String tableName,
DBTypes dbType) |
Return the table identifier in the best fit depending on database type
|
static void |
TableUtilities.copyFields(Connection connection,
org.h2.tools.SimpleResultSet rs,
TableLocation tableLocation) |
Copy fields from table into a SimpleResultSet
|
static void |
JDBCUtilities.createEmptyTable(Connection connection,
TableLocation table) |
A method to create an empty table (no columns)
|
static boolean |
JDBCUtilities.createIndex(Connection connection,
TableLocation table,
String columnName) |
Create an index on the given column of the given table on the given
connection.
|
static boolean |
JDBCUtilities.createSpatialIndex(Connection connection,
TableLocation table,
String columnName) |
Create a spatial index on the given column of the given table on the
given connection.
|
static String |
JDBCUtilities.createTableDDL(Connection connection,
TableLocation location) |
A simple method to generate a DDL create table command from a table name
Takes into account only data types
|
static String |
JDBCUtilities.createTableDDL(Connection connection,
TableLocation sourceTable,
TableLocation targetTable) |
A simple method to generate a DDL create table command from a table name
Takes into account only data types
|
static void |
JDBCUtilities.dropIndex(Connection connection,
TableLocation table) |
Drop the all the indexes of the given table on the given connection.
|
static void |
JDBCUtilities.dropIndex(Connection connection,
TableLocation table,
String columnName) |
Drop the index of the given column of the given table on yhe given
connection.
|
static String[] |
GeometryTableUtilities.getAuthorityAndSRID(Connection connection,
TableLocation table,
String geometryColumnName) |
Return an array of two string that correspond to the authority name and
its SRID code.
|
static String |
JDBCUtilities.getColumnName(Connection connection,
TableLocation table,
int columnIndex) |
|
static List<String> |
JDBCUtilities.getColumnNames(Connection connection,
TableLocation table) |
Returns the list of all the column names of a table.
|
static List<Tuple<String,Integer>> |
JDBCUtilities.getColumnNamesAndIndexes(Connection connection,
TableLocation table) |
Returns the list of all the column names and indexes of a table.
|
static org.locationtech.jts.geom.Geometry |
GeometryTableUtilities.getEnvelope(Connection connection,
TableLocation location) |
Merge the bounding box of all geometries inside the provided table.
|
static org.locationtech.jts.geom.Geometry |
GeometryTableUtilities.getEnvelope(Connection connection,
TableLocation location,
String geometryColumn) |
Merge the bounding box of all geometries inside the provided table.
|
static org.locationtech.jts.geom.Geometry |
GeometryTableUtilities.getEnvelope(Connection connection,
TableLocation location,
String... geometryColumns) |
Merge the bounding box of all geometries inside the provided table and
geometry columns
Note that the geometry column can be an expression.
|
static org.locationtech.jts.geom.Geometry |
GeometryTableUtilities.getEnvelope(Connection connection,
TableLocation location,
String[] geometryColumns,
String filter) |
Merge the bounding box of all geometries inside the provided table,
geometry columns and filter condition
Note that the geometry column can be an expression.
|
static org.locationtech.jts.geom.Geometry |
GeometryTableUtilities.getEstimatedExtent(Connection connection,
TableLocation tableLocation) |
Compute the 'estimated' extent of the given spatial table.
|
static org.locationtech.jts.geom.Geometry |
GeometryTableUtilities.getEstimatedExtent(Connection connection,
TableLocation tableLocation,
String geometryColumnName) |
Compute the 'estimated' extent of the given spatial table.
|
static Tuple<String,GeometryMetaData> |
GeometryTableUtilities.getFirstColumnMetaData(Connection connection,
TableLocation geometryTable) |
Read the geometry metadata of the first geometry column
|
static Tuple<String,Integer> |
GeometryTableUtilities.getFirstGeometryColumnNameAndIndex(Connection connection,
TableLocation tableLocation) |
Find the first geometry column name of a table with its index
|
static List<String> |
GeometryTableUtilities.getGeometryColumnNames(Connection connection,
TableLocation tableLocation) |
Find geometry column names
|
static LinkedHashMap<String,Integer> |
GeometryTableUtilities.getGeometryColumnNamesAndIndexes(Connection connection,
TableLocation tableLocation) |
Find geometry column names and indexes of a table
|
static Map<String,String> |
JDBCUtilities.getIndexNames(Connection connection,
TableLocation table) |
Return the name of all indexes for a given table
|
static List<String> |
JDBCUtilities.getIndexNames(Connection connection,
TableLocation table,
String columnName) |
Return the name of indexes for a given table and column
|
static int |
JDBCUtilities.getIntegerPrimaryKey(Connection connection,
TableLocation tableLocation) |
|
static Tuple<String,Integer> |
JDBCUtilities.getIntegerPrimaryKeyNameAndIndex(Connection connection,
TableLocation tableLocation) |
Method to fetch an integer primary key (name + index).
|
static LinkedHashMap<String,GeometryMetaData> |
GeometryTableUtilities.getMetaData(Connection connection,
TableLocation geometryTable) |
Read all geometry metadata from a table
|
static GeometryMetaData |
GeometryTableUtilities.getMetaData(Connection connection,
TableLocation geometryTable,
String geometryColumnName) |
Read the geometry metadata from a column name
|
static int |
JDBCUtilities.getRowCount(Connection connection,
TableLocation table) |
Fetch the row count of a table.
|
static int |
GeometryTableUtilities.getSRID(Connection connection,
TableLocation tableLocation) |
Return the SRID of the first geometry column of the input table
|
static int |
GeometryTableUtilities.getSRID(Connection connection,
TableLocation tableLocation,
String geometryColumnName) |
Return the SRID of the first geometry column of the input table
|
static List<String> |
JDBCUtilities.getTableNames(Connection connection,
TableLocation tableLocation,
String[] types) |
Returns the list of table names.
|
static JDBCUtilities.TABLE_TYPE |
JDBCUtilities.getTableType(Connection connection,
TableLocation location) |
Return the type of the table using an Enum
|
static List<String> |
JDBCUtilities.getUniqueFieldValues(Connection connection,
TableLocation table,
String fieldName) |
Returns the list of distinct values contained by a field from a table
from the database
|
static boolean |
JDBCUtilities.hasField(Connection connection,
TableLocation table,
String fieldName) |
Return true if table table contains field fieldName.
|
static boolean |
GeometryTableUtilities.hasGeometryColumn(Connection connection,
TableLocation tableLocation) |
Check if the table contains a geometry column
|
static boolean |
JDBCUtilities.isIndexed(Connection connection,
TableLocation table,
String columnName) |
Returns true if the given column name from the given table has an
indexed, return false otherwise.
|
static boolean |
JDBCUtilities.isLinkedTable(Connection connection,
TableLocation table) |
Read INFORMATION_SCHEMA.TABLES in order to see if the provided table
reference is a linked table.
|
static boolean |
GeometryTableUtilities.isSpatialIndexed(Connection connection,
TableLocation tableLocation,
String geometryColumnName) |
Check if the geometry column has a spatial index
|
static boolean |
JDBCUtilities.isSpatialIndexed(Connection connection,
TableLocation table,
String columnName) |
Returns true if the given column name from the given table is indexed,
return false otherwise.
|
static boolean |
JDBCUtilities.isTemporaryTable(Connection connection,
TableLocation tableLocation) |
Read INFORMATION_SCHEMA.TABLES in order to see if the provided table
reference is a temporary table.
|
static TableLocation |
TableUtilities.suffixTableLocation(TableLocation inputTable,
String suffix) |
Suffix a TableLocation
|
static boolean |
JDBCUtilities.tableExists(Connection connection,
TableLocation tableLocation) |
Return true if the table exists.
|