|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.dialect.function.TrimFunctionTemplate
public abstract class TrimFunctionTemplate
Defines the basic template support for TRIM functions
Nested Class Summary | |
---|---|
static class |
TrimFunctionTemplate.Options
|
static class |
TrimFunctionTemplate.Specification
|
Constructor Summary | |
---|---|
TrimFunctionTemplate()
|
Method Summary | |
---|---|
Type |
getReturnType(Type firstArgument,
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? |
protected abstract String |
render(TrimFunctionTemplate.Options options,
String trimSource,
SessionFactoryImplementor factory)
|
String |
render(Type firstArgument,
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 |
Constructor Detail |
---|
public TrimFunctionTemplate()
Method Detail |
---|
public boolean hasArguments()
SQLFunction
hasArguments
in interface SQLFunction
public boolean hasParenthesesIfNoArguments()
SQLFunction
hasParenthesesIfNoArguments
in interface SQLFunction
public Type getReturnType(Type firstArgument, Mapping mapping) throws QueryException
SQLFunction
SQLFunction.render(org.hibernate.type.Type, java.util.List, org.hibernate.engine.SessionFactoryImplementor)
getReturnType
in interface SQLFunction
firstArgument
- The type of the first argumentmapping
- The mapping source.
QueryException
- Indicates an issue resolving the return type.public String render(Type firstArgument, List args, SessionFactoryImplementor factory) throws QueryException
SQLFunction
SQLFunction.getReturnType(org.hibernate.type.Type, org.hibernate.engine.Mapping)
render
in interface SQLFunction
firstArgument
- The type of the first argumentargs
- The function argumentsfactory
- The SessionFactory
QueryException
- Indicates a problem rendering the
function call.protected abstract String render(TrimFunctionTemplate.Options options, String trimSource, SessionFactoryImplementor factory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |