org.deegree.sqldialect.postgis.function
Class PostGISArea

java.lang.Object
  extended by org.deegree.sqldialect.postgis.function.PostGISArea
All Implemented Interfaces:
SQLFunctionProvider

public class PostGISArea
extends Object
implements SQLFunctionProvider

SQLFunctionProvider for the Area function.

Version:
$Revision: 30337 $, $Date: 2011-04-04 14:21:18 +0200 (Mo, 04. Apr 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
PostGISArea()
           
 
Method Summary
 void destroy()
          Called by SQLFunctionManager once when this SQLFunctionProvider is being taken out of service.
 Set<ConnectionManager.Type> getDialects()
          Returns the supported SQL dialects.
 String getName()
          Returns the name of the provided function.
 void init(DeegreeWorkspace ws)
          Called by SQLFunctionManager once when this SQLFunctionProvider is being taken into service.
 SQLExpression toProtoSQL(List<SQLExpression> args, SQLDialect dialect)
          Translates the given arguments into an an SQL function call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostGISArea

public PostGISArea()
Method Detail

getName

public String getName()
Description copied from interface: SQLFunctionProvider
Returns the name of the provided function.

Specified by:
getName in interface SQLFunctionProvider
Returns:
name of the provided function, never null

getDialects

public Set<ConnectionManager.Type> getDialects()
Description copied from interface: SQLFunctionProvider
Returns the supported SQL dialects.

Specified by:
getDialects in interface SQLFunctionProvider
Returns:
supported SQL dialects, never null

toProtoSQL

public SQLExpression toProtoSQL(List<SQLExpression> args,
                                SQLDialect dialect)
Description copied from interface: SQLFunctionProvider
Translates the given arguments into an an SQL function call.

Specified by:
toProtoSQL in interface SQLFunctionProvider
Parameters:
args - SQL arguments, can be empty, but never null
dialect - SQL dialect, can be null (TODO shouldn't be)
Returns:
corresponding SQL expression, never null

init

public void init(DeegreeWorkspace ws)
          throws ResourceInitException
Description copied from interface: SQLFunctionProvider
Called by SQLFunctionManager once when this SQLFunctionProvider is being taken into service.

Specified by:
init in interface SQLFunctionProvider
Parameters:
ws - workspace context, never null
Throws:
ResourceInitException - if the initialization fails

destroy

public void destroy()
Description copied from interface: SQLFunctionProvider
Called by SQLFunctionManager once when this SQLFunctionProvider is being taken out of service.

Specified by:
destroy in interface SQLFunctionProvider


Copyright © 2011. All Rights Reserved.