org.eclipse.wst.rdb.internal.models.sql.routines
Class FunctionType

java.lang.Object
  |
  +--org.eclipse.emf.common.util.AbstractEnumerator
        |
        +--org.eclipse.wst.rdb.internal.models.sql.routines.FunctionType
All Implemented Interfaces:
org.eclipse.emf.common.util.Enumerator

public final class FunctionType
extends org.eclipse.emf.common.util.AbstractEnumerator

A representation of the literals of the enumeration 'Function Type', and utility methods for working with them. The SQL 99 spec (4.27 SQL-invoked routines) says that there are functions and methods, nothing about user-defined fuctions (UDFs). However, most databases implement them, so an enumeration is included for them in the base SQLModel.

See Also:
com.ibm.db.models.sql.routines.SQLRoutinesPackage#getFunctionType()

Field Summary
static int BUILT_IN
          The 'BUILT IN' literal value.
static FunctionType BUILT_IN_LITERAL
          The 'BUILT IN' literal object.
static int METHOD
          The 'METHOD' literal value.
static FunctionType METHOD_LITERAL
          The 'METHOD' literal object.
static int USER_DEFINED
          The 'USER DEFINED' literal value.
static FunctionType USER_DEFINED_LITERAL
          The 'USER DEFINED' literal object.
static java.util.List VALUES
          A public read-only list of all the 'Function Type' enumerators.
 
Method Summary
static FunctionType get(int value)
          Returns the 'Function Type' literal with the specified value.
static FunctionType get(java.lang.String name)
          Returns the 'Function Type' literal with the specified name.
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEnumerator
getName, getValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUILT_IN

public static final int BUILT_IN
The 'BUILT IN' literal value.
See Also:
BUILT_IN_LITERAL

USER_DEFINED

public static final int USER_DEFINED
The 'USER DEFINED' literal value.
See Also:
USER_DEFINED_LITERAL

METHOD

public static final int METHOD
The 'METHOD' literal value.
See Also:
METHOD_LITERAL

BUILT_IN_LITERAL

public static final FunctionType BUILT_IN_LITERAL
The 'BUILT IN' literal object.

If the meaning of 'BUILT IN' literal object isn't clear, there really should be more of a description here...

See Also:
BUILT_IN

USER_DEFINED_LITERAL

public static final FunctionType USER_DEFINED_LITERAL
The 'USER DEFINED' literal object.

If the meaning of 'USER DEFINED' literal object isn't clear, there really should be more of a description here...

See Also:
USER_DEFINED

METHOD_LITERAL

public static final FunctionType METHOD_LITERAL
The 'METHOD' literal object.

If the meaning of 'METHOD' literal object isn't clear, there really should be more of a description here...

See Also:
METHOD

VALUES

public static final java.util.List VALUES
A public read-only list of all the 'Function Type' enumerators.
Method Detail

get

public static FunctionType get(java.lang.String name)
Returns the 'Function Type' literal with the specified name.

get

public static FunctionType get(int value)
Returns the 'Function Type' literal with the specified value.