org.deegree.sqldialect.filter.function
Interface SQLFunctionProvider

All Known Implementing Classes:
PostGISArea, SQLLower, SQLUpper

public interface SQLFunctionProvider

Implementations map Functions to SQL functions.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

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.
 

Method Detail

init

void init(DeegreeWorkspace ws)
          throws ResourceInitException
Called by SQLFunctionManager once when this SQLFunctionProvider is being taken into service.

Parameters:
ws - workspace context, never null
Throws:
ResourceInitException - if the initialization fails

destroy

void destroy()
Called by SQLFunctionManager once when this SQLFunctionProvider is being taken out of service.


getName

String getName()
Returns the name of the provided function.

Returns:
name of the provided function, never null

getDialects

Set<ConnectionManager.Type> getDialects()
Returns the supported SQL dialects.

Returns:
supported SQL dialects, never null

toProtoSQL

SQLExpression toProtoSQL(List<SQLExpression> args,
                         SQLDialect dialect)
Translates the given arguments into an an SQL function call.

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


Copyright © 2011. All Rights Reserved.