Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.dialect.function
Class NoArgSQLFunction  view NoArgSQLFunction download NoArgSQLFunction.java

java.lang.Object
  extended byorg.hibernate.dialect.function.NoArgSQLFunction
All Implemented Interfaces:
SQLFunction

public class NoArgSQLFunction
extends java.lang.Object
implements SQLFunction

A function which takes no arguments


Field Summary
private  boolean hasParenthesesIfNoArguments
           
private  java.lang.String name
           
private  org.hibernate.type.Type returnType
           
 
Constructor Summary
NoArgSQLFunction(java.lang.String name, org.hibernate.type.Type returnType)
           
NoArgSQLFunction(java.lang.String name, org.hibernate.type.Type returnType, boolean hasParenthesesIfNoArguments)
           
 
Method Summary
 org.hibernate.type.Type getReturnType(org.hibernate.type.Type columnType, org.hibernate.engine.Mapping mapping)
          The function return type
 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, org.hibernate.engine.SessionFactoryImplementor factory)
          Render the function call as SQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

returnType

private org.hibernate.type.Type returnType

hasParenthesesIfNoArguments

private boolean hasParenthesesIfNoArguments

name

private java.lang.String name
Constructor Detail

NoArgSQLFunction

public NoArgSQLFunction(java.lang.String name,
                        org.hibernate.type.Type returnType)

NoArgSQLFunction

public NoArgSQLFunction(java.lang.String name,
                        org.hibernate.type.Type returnType,
                        boolean hasParenthesesIfNoArguments)
Method Detail

getReturnType

public org.hibernate.type.Type getReturnType(org.hibernate.type.Type columnType,
                                             org.hibernate.engine.Mapping mapping)
                                      throws org.hibernate.QueryException
Description copied from interface: SQLFunction
The function return type

Specified by:
getReturnType in interface SQLFunction

hasArguments

public boolean hasArguments()
Description copied from interface: SQLFunction
Does this function have any arguments?

Specified by:
hasArguments in interface SQLFunction

hasParenthesesIfNoArguments

public boolean hasParenthesesIfNoArguments()
Description copied from interface: SQLFunction
If there are no arguments, are parens required?

Specified by:
hasParenthesesIfNoArguments in interface SQLFunction

render

public java.lang.String render(java.util.List args,
                               org.hibernate.engine.SessionFactoryImplementor factory)
                        throws org.hibernate.QueryException
Description copied from interface: SQLFunction
Render the function call as SQL

Specified by:
render in interface SQLFunction