geodb
Class GeoHashTrigger
java.lang.Object
geodb.GeoHashTrigger
- All Implemented Interfaces:
- org.h2.api.Trigger
public class GeoHashTrigger
- extends java.lang.Object
- implements org.h2.api.Trigger
An H2 trigger which keeps a geometric column in sync with its geohash.
- Author:
- Justin Deoliveira, jdeolive@opengeo.org
Fields inherited from interface org.h2.api.Trigger |
DELETE, INSERT, UPDATE |
Method Summary |
void |
fire(java.sql.Connection cx,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
|
void |
init(java.sql.Connection cx,
java.lang.String schemaName,
java.lang.String triggerName,
java.lang.String tableName,
boolean before,
int type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoHashTrigger
public GeoHashTrigger()
fire
public void fire(java.sql.Connection cx,
java.lang.Object[] oldRow,
java.lang.Object[] newRow)
throws java.sql.SQLException
- Specified by:
fire
in interface org.h2.api.Trigger
- Throws:
java.sql.SQLException
init
public void init(java.sql.Connection cx,
java.lang.String schemaName,
java.lang.String triggerName,
java.lang.String tableName,
boolean before,
int type)
throws java.sql.SQLException
- Specified by:
init
in interface org.h2.api.Trigger
- Throws:
java.sql.SQLException
Copyright © 2010. All Rights Reserved.