Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » dialect » function » [javadoc | source]
org.hibernate.dialect.function
public interface: SQLFunction [javadoc | source]

All Known Implementing Classes:
    ConvertFunction, DerbyTrimFunctionEmulation, VarArgsSQLFunction, DerbyConcatFunction, AbstractAnsiTrimEmulationFunction, CharIndexFunction, StandardJDBCEscapeFunction, ClassicAvgFunction, SQLFunctionTemplate, PositionSubstringFunction, NoArgSQLFunction, AnsiTrimEmulationFunction, CastFunction, ConditionalParenthesisFunction, StandardSQLFunction, NvlFunction, ClassicSumFunction, ClassicCountFunction

Provides support routines for the HQL functions as used in the various SQL Dialects Provides an interface for supporting various HQL functions that are translated to SQL. The Dialect and its sub-classes use this interface to provide details required for processing of the function.
Method from org.hibernate.dialect.function.SQLFunction Summary:
getReturnType,   hasArguments,   hasParenthesesIfNoArguments,   render
Method from org.hibernate.dialect.function.SQLFunction Detail:
 public Type getReturnType(Type columnType,
    Mapping mapping) throws QueryException
    The return type of the function. May be either a concrete type which is preset, or variable depending upon the type of the first function argument.
 public boolean hasArguments()
    Does this function have any arguments?
 public boolean hasParenthesesIfNoArguments()
    If there are no arguments, are parens required?
 public String render(List args,
    SessionFactoryImplementor factory) throws QueryException
    Render the function call as SQL fragment.