public class H2GISFunctions extends Object
CREATE ALIAS IF NOT EXISTS H2GIS_FUNCTIONS FOR
"H2GISFunctions.load";
CALL H2GIS_FUNCTIONS();
| Modifier and Type | Field and Description |
|---|---|
static String |
GEOMETRY_BASE_TYPE
H2 base type for geometry column
ResultSetMetaData.getColumnTypeName(int) |
| Constructor and Description |
|---|
H2GISFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAlias(org.h2gis.api.Function function)
Return the alias name of the function
|
static org.h2gis.api.Function[] |
getBuiltInsFunctions() |
static DomainInfo[] |
getBuiltInsType() |
static void |
load(Connection connection)
Register GEOMETRY type and register H2GIS functions
|
static void |
load(Connection connection,
String BundleSymbolicName,
String BundleVersion)
Register GEOMETRY type and register H2GIS functions
|
static void |
registerFunction(Statement st,
org.h2gis.api.Function function,
String packagePrepend)
Register a H2GIS java code function
|
static void |
registerFunction(Statement st,
org.h2gis.api.Function function,
String packagePrepend,
boolean dropAlias)
Register a H2GIS java code function
|
static void |
registerGeometryType(Connection connection)
Register geometry type in an OSGi environment
|
static void |
registerSpatialTables(Connection connection)
Register view in order to create GEOMETRY_COLUMNS standard table.
|
static void |
unRegisterFunction(Statement st,
org.h2gis.api.Function function)
Remove the specified function from the provided DataBase connection
|
static void |
unRegisterGeometryType(Connection connection)
Release geometry type
|
static void |
unRegisterH2GISFunctions(Connection connection)
Unregister spatial type and H2GIS functions from the current connection.
|
public static final String GEOMETRY_BASE_TYPE
ResultSetMetaData.getColumnTypeName(int)public static org.h2gis.api.Function[] getBuiltInsFunctions()
public static DomainInfo[] getBuiltInsType()
public static void load(Connection connection, String BundleSymbolicName, String BundleVersion) throws SQLException
connection - Active H2 connectionBundleSymbolicName - OSGi Bundle symbolic nameBundleVersion - OSGi Bundle versionSQLExceptionpublic static void load(Connection connection) throws SQLException
connection - Active H2 connectionSQLExceptionpublic static void registerGeometryType(Connection connection) throws SQLException
connection - Active H2 connectionSQLExceptionpublic static void registerSpatialTables(Connection connection) throws SQLException
connection - Open connectionSQLExceptionpublic static void unRegisterGeometryType(Connection connection) throws SQLException
connection - Active h2 connection with DROP DOMAIN and DROP ALIAS rightsSQLExceptionpublic static void registerFunction(Statement st, org.h2gis.api.Function function, String packagePrepend) throws SQLException
st - SQL Statementfunction - Function instancepackagePrepend - For OSGi environment only, use
Bundle-SymbolicName:Bundle-Version:SQLExceptionpublic static void registerFunction(Statement st, org.h2gis.api.Function function, String packagePrepend, boolean dropAlias) throws SQLException
st - SQL Statementfunction - Function instancepackagePrepend - For OSGi environment only, use Bundle-SymbolicName:Bundle-Version:dropAlias - Drop alias if exists before define it.SQLExceptionpublic static String getAlias(org.h2gis.api.Function function)
function - Function instancepublic static void unRegisterFunction(Statement st, org.h2gis.api.Function function) throws SQLException
st - Active statementfunction - function to removeSQLExceptionpublic static void unRegisterH2GISFunctions(Connection connection) throws SQLException
connection - Active H2 connection with DROP ALIAS rightsSQLExceptionCopyright © 2019 CNRS. All rights reserved.