ajax.catalog
Class Function

java.lang.Object
  |
  +--ajax.catalog.Function

public class Function
extends java.lang.Object

Stores information about external functions author: Helena Galhardas


Constructor Summary
Function(java.lang.String functionName)
          Constructor
Function(java.lang.String functionName, java.lang.String className, java.util.LinkedList argTypes, Type outType, java.util.LinkedList exceptions)
          Constructor
 
Method Summary
 void createStoredFunction()
          Creates an SQL stored function that calls the Java method implementing this function Made through a JDBC call
 boolean equals(java.lang.Object object)
          Checks if the current function is equal to a given one
 java.util.LinkedList getArgTypes()
          Gets the types of the arguments
 java.lang.String getClassName()
          Gets the class name
 java.lang.String getName()
          Gets the function name.
 java.lang.String getStoredFunction()
          Gets the name of the SQL Stored function
 Type getType()
          Gets the function type (out type).
 java.lang.String toString()
          Convert to human read-able object.
 void toXML(java.lang.String XMLfileName)
          converts this into XML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Function

public Function(java.lang.String functionName,
                java.lang.String className,
                java.util.LinkedList argTypes,
                Type outType,
                java.util.LinkedList exceptions)
Constructor

Function

public Function(java.lang.String functionName)
Constructor
Method Detail

createStoredFunction

public void createStoredFunction()
Creates an SQL stored function that calls the Java method implementing this function Made through a JDBC call

getName

public java.lang.String getName()
Gets the function name.
Returns:
the function name

getClassName

public java.lang.String getClassName()
Gets the class name

getStoredFunction

public java.lang.String getStoredFunction()
Gets the name of the SQL Stored function

getArgTypes

public java.util.LinkedList getArgTypes()
Gets the types of the arguments

getType

public Type getType()
Gets the function type (out type).
Returns:
the function out type

equals

public boolean equals(java.lang.Object object)
Checks if the current function is equal to a given one
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Convert to human read-able object.
Overrides:
toString in class java.lang.Object
Returns:
a string representing the table.

toXML

public void toXML(java.lang.String XMLfileName)
converts this into XML