|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.dialect.function.CastFunction
public class CastFunction
ANSI-SQL style cast(foo as type) where the type is a Hibernate type
| Field Summary | |
|---|---|
static CastFunction |
INSTANCE
Singleton access |
| Constructor Summary | |
|---|---|
CastFunction()
|
|
| Method Summary | |
|---|---|
Type |
getReturnType(Type columnType,
Mapping mapping)
The return type of the function. |
boolean |
hasArguments()
Does this function have any arguments? |
boolean |
hasParenthesesIfNoArguments()
If there are no arguments, are parentheses required? |
String |
render(Type columnType,
List args,
SessionFactoryImplementor factory)
Render the function call as SQL fragment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CastFunction INSTANCE
| Constructor Detail |
|---|
public CastFunction()
| Method Detail |
|---|
public boolean hasArguments()
SQLFunction
hasArguments in interface SQLFunctionpublic boolean hasParenthesesIfNoArguments()
SQLFunction
hasParenthesesIfNoArguments in interface SQLFunction
public Type getReturnType(Type columnType,
Mapping mapping)
throws QueryException
SQLFunctionSQLFunction.render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.spi.SessionFactoryImplementor)
getReturnType in interface SQLFunctioncolumnType - The type of the first argumentmapping - The mapping source.
QueryException - Indicates an issue resolving the return type.
public String render(Type columnType,
List args,
SessionFactoryImplementor factory)
throws QueryException
SQLFunctionSQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.spi.Mapping)
render in interface SQLFunctioncolumnType - The type of the first argumentargs - The function argumentsfactory - The SessionFactory
QueryException - Indicates a problem rendering the
function call.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||