standardsqlfunction.java
来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 35 行
JAVA
35 行
//$Id: StandardSQLFunction.java,v 1.1.2.1 2003/09/27 10:38:15 oneovthafew Exp $package net.sf.hibernate.dialect;import net.sf.hibernate.engine.Mapping;import net.sf.hibernate.type.Type;/** * 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. * * @author David Channon */public class StandardSQLFunction implements SQLFunction { private Type returnType = null; public StandardSQLFunction() { } public StandardSQLFunction(Type typeValue) { returnType = typeValue; } public Type getReturnType(Type columnType, Mapping mapping) { if (returnType == null) return columnType; return returnType; } public boolean hasArguments() { return true; } public boolean hasParenthesesIfNoArguments() { return true; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?