⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 querysyntaxexception.java

📁 一个Java持久层类库
💻 JAVA
字号:
// $Id: QuerySyntaxException.java 9242 2006-02-09 12:37:36Z steveebersole $package org.hibernate.hql.ast;import antlr.RecognitionException;import org.hibernate.QueryException;/** * Exception thrown when there is a syntax error in the HQL. * * @author josh */public class QuerySyntaxException extends QueryException {	public QuerySyntaxException(String message) {		super( message );	}	public QuerySyntaxException(String message, String hql) {		this( message );		setQueryString( hql );	}	public static QuerySyntaxException convert(RecognitionException e) {		return convert( e, null );	}	public static QuerySyntaxException convert(RecognitionException e, String hql) {		String positionInfo = e.getLine() > 0 && e.getColumn() > 0				? " near line " + e.getLine() + ", column " + e.getColumn()				: "";		return new QuerySyntaxException( e.getMessage() + positionInfo, hql );	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -