ITeye博客

hibernate 中 SQLFunctionTemplate 类的翻译

as619864232 · 2012-05-13 13:34 · Hibernate · Translate · 行业应用 · Hibernate · 翻译 · SQLFunctionTemplate · Markdown

org.hibernate.dialect.function Class SQLFunctionTemplate

java.lang.Object
  org.hibernate.dialect.function.SQLFunctionTemplate

All Implemented Interfaces:

SQLFunction


public class SQLFunctionTemplate

extends Object

implements SQLFunction


Represents(描述) HQL functions that can have different representations(描述) in different SQL dialects. E.g. in HQL we can define function concat(?1, ?2) to concatenate(连接) two strings p1 and p2. Target SQL function will be dialect-specific, e.g. (?1 || ?2) for Oracle, concat(?1, ?2) for MySql, (?1 + ?2) for MS SQL. Each dialect will define a template as a string (exactly(恰好) like above) marking function parameters with '?' followed by parameter's index (first index is 1).

 

 

Version:

$Revision: 6608 $

Author:

Alexey Loubyansky

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。