|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.dialect.function.DerbyConcatFunction
public class DerbyConcatFunction
A specialized concat() function definition in which:
Constructor Summary | |
---|---|
DerbyConcatFunction()
|
Method Summary | |
---|---|
Type |
getReturnType(Type columnType,
Mapping mapping)
The return type of the function. Here we always return Hibernate.STRING . |
boolean |
hasArguments()
Does this function have any arguments? Here we always return true |
boolean |
hasParenthesesIfNoArguments()
If there are no arguments, are parens required? Here we always return true |
String |
render(List args,
SessionFactoryImplementor factory)
Render the function call as SQL fragment. Here's the meat.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DerbyConcatFunction()
Method Detail |
---|
public Type getReturnType(Type columnType, Mapping mapping) throws QueryException
Hibernate.STRING
.
getReturnType
in interface SQLFunction
columnType
- the type of the first argumentmapping
- The mapping source.
QueryException
- Indicates an issue resolving the return type.public boolean hasArguments()
hasArguments
in interface SQLFunction
public boolean hasParenthesesIfNoArguments()
hasParenthesesIfNoArguments
in interface SQLFunction
public String render(List args, SessionFactoryImplementor factory) throws QueryException
render
in interface SQLFunction
args
- 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 |