|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.dialect.function.StandardSQLFunction
public class StandardSQLFunction
Provides a standard implementation that supports the majority of the HQL functions that are translated to SQL. The Dialect and its sub-classes use this class to provide details required for processing of the associated function.
| Constructor Summary | |
|---|---|
StandardSQLFunction(java.lang.String name)
Construct a standard SQL function definition with a variable return type; the actual return type will depend on the types to which the function is applied. |
|
StandardSQLFunction(java.lang.String name,
Type type)
Construct a standard SQL function definition with a static return type. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Function name accessor |
Type |
getReturnType(Type columnType,
Mapping mapping)
The return type of the function. |
Type |
getType()
Function static return type accessor. |
boolean |
hasArguments()
Does this function have any arguments? |
boolean |
hasParenthesesIfNoArguments()
If there are no arguments, are parens required? |
java.lang.String |
render(java.util.List args,
SessionFactoryImplementor factory)
Render the function call as SQL fragment. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StandardSQLFunction(java.lang.String name)
name - The name of the function.
public StandardSQLFunction(java.lang.String name,
Type type)
name - The name of the function.type - The static return type.| Method Detail |
|---|
public java.lang.String getName()
public Type getType()
public Type getReturnType(Type columnType,
Mapping mapping)
getReturnType in interface SQLFunctioncolumnType - the type of the first argumentmapping - The mapping source.
public boolean hasArguments()
hasArguments in interface SQLFunctionpublic boolean hasParenthesesIfNoArguments()
hasParenthesesIfNoArguments in interface SQLFunction
public java.lang.String render(java.util.List args,
SessionFactoryImplementor factory)
render in interface SQLFunctionargs - The function argumentsfactory - The SessionFactory
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||