com.caucho.ejb.cfg
Class FunctionSignature

java.lang.Object
  extended by com.caucho.ejb.cfg.FunctionSignature

public class FunctionSignature
extends java.lang.Object

A builtin SQL function expression


Constructor Summary
FunctionSignature(java.lang.String signature)
          Creates a function definition.
 
Method Summary
 boolean equals(java.lang.Object o)
          True if the function signatures are equal.
 java.lang.String getName()
          Returns the function name.
 java.lang.Class[] getParameterTypes()
          Returns the function arguments.
 java.lang.Class getReturnType()
          Returns the return type;
 java.lang.String getSignature()
          Returns the function signature.
 java.lang.String getSQL()
          Gets the SQL.
 int hashCode()
          Returns a hash-code.
 void setSQL(java.lang.String sql)
          Sets the SQL.
 java.lang.String toString()
          Returns a string value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionSignature

public FunctionSignature(java.lang.String signature)
                  throws ConfigException
Creates a function definition.

Parameters:
signature - the function signature in java syntax
Throws:
ConfigException
Method Detail

getName

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


getSignature

public java.lang.String getSignature()
Returns the function signature.


getParameterTypes

public java.lang.Class[] getParameterTypes()
Returns the function arguments.


getReturnType

public java.lang.Class getReturnType()
Returns the return type;


setSQL

public void setSQL(java.lang.String sql)
Sets the SQL.


getSQL

public java.lang.String getSQL()
Gets the SQL.


hashCode

public int hashCode()
Returns a hash-code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
True if the function signatures are equal.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns a string value.

Overrides:
toString in class java.lang.Object