org.teiid.query.function.source
Class SystemSource

java.lang.Object
  extended by org.teiid.query.function.source.SystemSource
All Implemented Interfaces:
FunctionMetadataSource, FunctionCategoryConstants

public class SystemSource
extends java.lang.Object
implements FunctionMetadataSource, FunctionCategoryConstants

This metadata source has metadata for the hard-coded system functions. All system functions are described by this metadata.


Field Summary
 
Fields inherited from interface org.teiid.query.function.metadata.FunctionCategoryConstants
CONVERSION, DATETIME, MISCELLANEOUS, NUMERIC, SECURITY, STRING, SYSTEM, XML
 
Constructor Summary
SystemSource(boolean allowEnvFunction)
          Construct a source of system metadata.
 
Method Summary
 java.util.Collection<FunctionMethod> getFunctionMethods()
          Get all function signatures for this metadata source.
 java.lang.Class<?> getInvocationClass(java.lang.String className)
          Sources are returned from the system classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSource

public SystemSource(boolean allowEnvFunction)
Construct a source of system metadata.

Method Detail

getFunctionMethods

public java.util.Collection<FunctionMethod> getFunctionMethods()
Get all function signatures for this metadata source.

Specified by:
getFunctionMethods in interface FunctionMetadataSource
Returns:
Unordered collection of FunctionMethods

getInvocationClass

public java.lang.Class<?> getInvocationClass(java.lang.String className)
                                      throws java.lang.ClassNotFoundException
Sources are returned from the system classpath.

Specified by:
getInvocationClass in interface FunctionMetadataSource
Parameters:
className - Name of class
Returns:
Class reference
Throws:
java.lang.ClassNotFoundException - If class could not be found


Copyright © 2010. All Rights Reserved.