|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.h2gis.h2spatial.CreateSpatialExtension
public class CreateSpatialExtension
Add spatial features to an H2 database Execute the following sql to init spatial features :
CREATE ALIAS IF NOT EXISTS SPATIAL_INIT FOR
"CreateSpatialExtension.initSpatialExtension";
CALL SPATIAL_INIT();
| Field Summary | |
|---|---|
static String |
GEOMETRY_BASE_TYPE
H2 base type for geometry column ResultSetMetaData.getColumnTypeName(int) |
| Constructor Summary | |
|---|---|
CreateSpatialExtension()
|
|
| Method Summary | |
|---|---|
static void |
disposeSpatialExtension(Connection connection)
Remove spatial type and functions from the current connection. |
static String |
getAlias(Function function)
|
static Function[] |
getBuiltInsFunctions()
|
static DomainInfo[] |
getBuiltInsType()
|
static void |
initSpatialExtension(Connection connection)
Register GEOMETRY type and register spatial functions |
static void |
initSpatialExtension(Connection connection,
String BundleSymbolicName,
String BundleVersion)
Register GEOMETRY type and register spatial functions |
static void |
registerFunction(Statement st,
Function function,
String packagePrepend)
Create java code to add function copy paste into GeoSpatialFunctionsAddRemove to upload it |
static void |
registerFunction(Statement st,
Function function,
String packagePrepend,
boolean dropAlias)
Create java code to add function copy paste into GeoSpatialFunctionsAddRemove to upload it |
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,
Function function)
Remove the specified function from the provided DataBase connection |
static void |
unRegisterGeometryType(Connection connection)
Release geometry type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GEOMETRY_BASE_TYPE
ResultSetMetaData.getColumnTypeName(int)
| Constructor Detail |
|---|
public CreateSpatialExtension()
| Method Detail |
|---|
public static Function[] getBuiltInsFunctions()
public static DomainInfo[] getBuiltInsType()
public static void initSpatialExtension(Connection connection,
String BundleSymbolicName,
String BundleVersion)
throws SQLException
connection - Active H2 connectionBundleSymbolicName - OSGi Bundle symbolic nameBundleVersion - OSGi Bundle version
SQLException
public static void initSpatialExtension(Connection connection)
throws SQLException
connection - Active H2 connection
SQLException
public static void registerGeometryType(Connection connection)
throws SQLException
connection - Active H2 connection
SQLException
public static void registerSpatialTables(Connection connection)
throws SQLException
connection - Open connection
SQLException
public static void unRegisterGeometryType(Connection connection)
throws SQLException
connection - Active h2 connection with DROP DOMAIN and DROP ALIAS rights
SQLException
public static void registerFunction(Statement st,
Function function,
String packagePrepend)
throws SQLException
st - SQL Statementfunction - Function instancepackagePrepend - For OSGi environment only, use Bundle-SymbolicName:Bundle-Version:
SQLException
public static void registerFunction(Statement st,
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(Function function)
function - Function instance
public static void unRegisterFunction(Statement st,
Function function)
throws SQLException
st - Active statementfunction - function to remove
SQLException
public static void disposeSpatialExtension(Connection connection)
throws SQLException
connection - Active H2 connection with DROP ALIAS rights
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||