deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.datastore.schema.content
Class SQLFunctionCall

java.lang.Object
  extended by org.deegree.io.datastore.schema.content.VirtualContent
      extended by org.deegree.io.datastore.schema.content.FunctionCall
          extended by org.deegree.io.datastore.schema.content.SQLFunctionCall
All Implemented Interfaces:
SimpleContent

public class SQLFunctionCall
extends FunctionCall

Content class for MappedSimplePropertyTypes that describes a call to a function provided by an SQL database.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
SQLFunctionCall(String callString, int typeCode, FunctionParam... params)
          Initializes a newly created SQLFunctionCall with the given call string and FunctionParams.
SQLFunctionCall(String callString, int typeCode, List<FunctionParam> params)
          Initializes a newly created SQLFunctionCall with the given call string and FunctionParams.
 
Method Summary
 String getCall()
          Returns the call string with placeholders ($1,$2,...
 int getTypeCode()
          Returns the SQL type code of the function call's return value.
 int[] getUsedVars()
          Returns all variable numbers used in the call string.
 boolean isSortable()
          Returns true, because the result of an SQL function call is (in general) suitable as a sort criterion.
 String toString()
           
 
Methods inherited from class org.deegree.io.datastore.schema.content.FunctionCall
getParams
 
Methods inherited from class org.deegree.io.datastore.schema.content.VirtualContent
isUpdateable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLFunctionCall

public SQLFunctionCall(String callString,
                       int typeCode,
                       List<FunctionParam> params)
Initializes a newly created SQLFunctionCall with the given call string and FunctionParams.

Parameters:
callString - call string with placeholders ($1,$2,...,$n)
typeCode - SQL type code of the return value
params - parameters to be used for the placeholders

SQLFunctionCall

public SQLFunctionCall(String callString,
                       int typeCode,
                       FunctionParam... params)
Initializes a newly created SQLFunctionCall with the given call string and FunctionParams.

Parameters:
callString - call string with placeholders ($1,$2,...,$n)
typeCode - SQL type code of the return value
params - parameters to be used for the placeholders
Method Detail

isSortable

public boolean isSortable()
Returns true, because the result of an SQL function call is (in general) suitable as a sort criterion.

Returns:
true, because the result of an SQL function call is (in general) suitable as a sort criterion

getCall

public String getCall()
Returns the call string with placeholders ($1,$2,...,$n) for the FunctionParams.

Returns:
the call string with placeholders ($1,$2,...,$n)

getTypeCode

public int getTypeCode()
Returns the SQL type code of the function call's return value.

Returns:
the SQL type code of the function call's return value.

getUsedVars

public int[] getUsedVars()
Returns all variable numbers used in the call string.

Returns:
all variable numbers used in the call string

toString

public String toString()
Overrides:
toString in class Object

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org