亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hql-sql.g

?? hibernate 開源框架的代碼 jar包希望大家能喜歡
?? G
?? 第 1 頁 / 共 2 頁
字號:
header{// $Id: hql-sql.g 10001 2006-06-08 21:08:04Z steve.ebersole@jboss.com $package org.hibernate.hql.antlr;import org.slf4j.Logger;import org.slf4j.LoggerFactory;}/** * Hibernate Query Language to SQL Tree Transform.<br> * This is a tree grammar that transforms an HQL AST into a intermediate SQL AST * with bindings to Hibernate interfaces (Queryable, etc.).  The Hibernate specific methods * are all implemented in the HqlSqlWalker subclass, allowing the ANTLR-generated class * to have only the minimum dependencies on the Hibernate code base.   This will also allow * the sub-class to be easily edited using an IDE (most IDE's don't support ANTLR). * <br> * <i>NOTE:</i> The java class is generated from hql-sql.g by ANTLR. * <i>DO NOT EDIT THE GENERATED JAVA SOURCE CODE.</i> * @author Joshua Davis (joshua@hibernate.org) */class HqlSqlBaseWalker extends TreeParser;options{	// Note: importVocab and exportVocab cause ANTLR to share the token type numbers between the	// two grammars.  This means that the token type constants from the source tree are the same	// as those in the target tree.  If this is not the case, tree translation can result in	// token types from the *source* tree being present in the target tree.	importVocab=Hql;        // import definitions from "Hql"	exportVocab=HqlSql;     // Call the resulting definitions "HqlSql"	buildAST=true;}tokens{	FROM_FRAGMENT;	// A fragment of SQL that represents a table reference in a FROM clause.	IMPLIED_FROM;	// An implied FROM element.	JOIN_FRAGMENT;	// A JOIN fragment.	SELECT_CLAUSE;	LEFT_OUTER;	RIGHT_OUTER;	ALIAS_REF;      // An IDENT that is a reference to an entity via it's alias.	PROPERTY_REF;   // A DOT that is a reference to a property in an entity.	SQL_TOKEN;      // A chunk of SQL that is 'rendered' already.	SELECT_COLUMNS; // A chunk of SQL representing a bunch of select columns.	SELECT_EXPR;    // A select expression, generated from a FROM element.	THETA_JOINS;	// Root of theta join condition subtree.	FILTERS;		// Root of the filters condition subtree.	METHOD_NAME;    // An IDENT that is a method name.	NAMED_PARAM;    // A named parameter (:foo).	BOGUS;          // Used for error state detection, etc.}// -- Declarations --{	private static Logger log = LoggerFactory.getLogger( HqlSqlBaseWalker.class );	private int level = 0;	private boolean inSelect = false;	private boolean inFunctionCall = false;	private boolean inCase = false;	private boolean inFrom = false;	private int statementType;	private String statementTypeName;	// Note: currentClauseType tracks the current clause within the current	// statement, regardless of level; currentTopLevelClauseType, on the other	// hand, tracks the current clause within the top (or primary) statement.	// Thus, currentTopLevelClauseType ignores the clauses from any subqueries.	private int currentClauseType;	private int currentTopLevelClauseType;	private int currentStatementType;	public final boolean isSubQuery() {		return level > 1;	}	public final boolean isInFrom() {		return inFrom;	}	public final boolean isInFunctionCall() {		return inFunctionCall;	}		public final boolean isInSelect() {		return inSelect;	}	public final boolean isInCase() {		return inCase;	}	public final int getStatementType() {		return statementType;	}	public final int getCurrentClauseType() {		return currentClauseType;	}	public final int getCurrentTopLevelClauseType() {		return currentTopLevelClauseType;	}	public final int getCurrentStatementType() {		return currentStatementType;	}	public final boolean isComparativeExpressionClause() {		// Note: once we add support for "JOIN ... ON ...",		// the ON clause needs to get included here	    return getCurrentClauseType() == WHERE ||	            getCurrentClauseType() == WITH ||	            isInCase();	}	public final boolean isSelectStatement() {		return statementType == SELECT;	}	private void beforeStatement(String statementName, int statementType) {		inFunctionCall = false;		level++;		if ( level == 1 ) {			this.statementTypeName = statementName;			this.statementType = statementType;		}		currentStatementType = statementType;		if ( log.isDebugEnabled() ) {			log.debug( statementName + " << begin [level=" + level + ", statement=" + this.statementTypeName + "]" );		}	}	private void beforeStatementCompletion(String statementName) {		if ( log.isDebugEnabled() ) {			log.debug( statementName + " : finishing up [level=" + level + ", statement=" + statementTypeName + "]" );		}	}	private void afterStatementCompletion(String statementName) {		if ( log.isDebugEnabled() ) {			log.debug( statementName + " >> end [level=" + level + ", statement=" + statementTypeName + "]" );		}		level--;	}	private void handleClauseStart(int clauseType) {		currentClauseType = clauseType;		if ( level == 1 ) {			currentTopLevelClauseType = clauseType;		}	}	///////////////////////////////////////////////////////////////////////////	// NOTE: The real implementations for the following are in the subclass.	protected void evaluateAssignment(AST eq) throws SemanticException { }		/** Pre-process the from clause input tree. **/	protected void prepareFromClauseInputTree(AST fromClauseInput) {}	/** Sets the current 'FROM' context. **/	protected void pushFromClause(AST fromClause,AST inputFromNode) {}	protected AST createFromElement(String path,AST alias,AST propertyFetch) throws SemanticException {		return null;	}	protected void createFromJoinElement(AST path,AST alias,int joinType,AST fetch,AST propertyFetch,AST with) throws SemanticException {}	protected AST createFromFilterElement(AST filterEntity,AST alias) throws SemanticException	{		return null;	}	protected void processQuery(AST select,AST query) throws SemanticException { }	protected void postProcessUpdate(AST update) throws SemanticException { }	protected void postProcessDelete(AST delete) throws SemanticException { }	protected void postProcessInsert(AST insert) throws SemanticException { }	protected void beforeSelectClause() throws SemanticException { }	protected void processIndex(AST indexOp) throws SemanticException { }	protected void processConstant(AST constant) throws SemanticException { }	protected void processBoolean(AST constant) throws SemanticException { }	protected void processNumericLiteral(AST literal) throws SemanticException { }	protected void resolve(AST node) throws SemanticException { }	protected void resolveSelectExpression(AST dotNode) throws SemanticException { }	protected void processFunction(AST functionCall,boolean inSelect) throws SemanticException { }	protected void processConstructor(AST constructor) throws SemanticException { }	protected AST generateNamedParameter(AST delimiterNode, AST nameNode) throws SemanticException {		return #( [NAMED_PARAM, nameNode.getText()] );	}	protected AST generatePositionalParameter(AST inputNode) throws SemanticException {		return #( [PARAM, "?"] );	}	protected void lookupAlias(AST ident) throws SemanticException { }    protected void setAlias(AST selectExpr, AST ident) { }	protected AST lookupProperty(AST dot,boolean root,boolean inSelect) throws SemanticException {		return dot;	}	protected boolean isNonQualifiedPropertyRef(AST ident) { return false; }	protected AST lookupNonQualifiedProperty(AST property) throws SemanticException { return property; }	protected void setImpliedJoinType(int joinType) { }	protected AST createIntoClause(String path, AST propertySpec) throws SemanticException {		return null;	};	protected void prepareVersioned(AST updateNode, AST versionedNode) throws SemanticException {}	protected void prepareLogicOperator(AST operator) throws SemanticException { }	protected void prepareArithmeticOperator(AST operator) throws SemanticException { }}// The main statement rule.statement	: selectStatement | updateStatement | deleteStatement | insertStatement	;selectStatement	: query	;// Cannot use just the fromElement rule here in the update and delete queries// because fromElement essentially relies on a FromClause already having been// built :(updateStatement!	: #( u:UPDATE { beforeStatement( "update", UPDATE ); } (v:VERSIONED)? f:fromClause s:setClause (w:whereClause)? ) {		#updateStatement = #(#u, #f, #s, #w);		beforeStatementCompletion( "update" );		prepareVersioned( #updateStatement, #v );		postProcessUpdate( #updateStatement );		afterStatementCompletion( "update" );	}	;deleteStatement	: #( DELETE { beforeStatement( "delete", DELETE ); } fromClause (whereClause)? ) {		beforeStatementCompletion( "delete" );		postProcessDelete( #deleteStatement );		afterStatementCompletion( "delete" );	}	;insertStatement	// currently only "INSERT ... SELECT ..." statements supported;	// do we also need support for "INSERT ... VALUES ..."?	//	: #( INSERT { beforeStatement( "insert", INSERT ); } intoClause query ) {		beforeStatementCompletion( "insert" );		postProcessInsert( #insertStatement );		afterStatementCompletion( "insert" );	}	;intoClause! {		String p = null;	}	: #( INTO { handleClauseStart( INTO ); } (p=path) ps:insertablePropertySpec ) {		#intoClause = createIntoClause(p, ps);	}	;insertablePropertySpec	: #( RANGE (IDENT)+ )	;setClause	: #( SET { handleClauseStart( SET ); } (assignment)* )	;assignment	// Note: the propertyRef here needs to be resolved	// *before* we evaluate the newValue rule...	: #( EQ (p:propertyRef) { resolve(#p); } (newValue) ) {		evaluateAssignment( #assignment );	}	;// For now, just use expr.  Revisit after ejb3 solidifies this.newValue	: expr | query	;// The query / subquery rule. Pops the current 'from node' context // (list of aliases).query!	: #( QUERY { beforeStatement( "select", SELECT ); }			// The first phase places the FROM first to make processing the SELECT simpler.			#(SELECT_FROM				f:fromClause				(s:selectClause)?			)			(w:whereClause)?			(g:groupClause)?			(o:orderClause)?		) {		// Antlr note: #x_in refers to the input AST, #x refers to the output AST		#query = #([SELECT,"SELECT"], #s, #f, #w, #g, #o);		beforeStatementCompletion( "select" );		processQuery( #s, #query );		afterStatementCompletion( "select" );	}	;orderClause	: #(ORDER { handleClauseStart( ORDER ); } orderExprs)	;orderExprs	: expr ( ASCENDING | DESCENDING )? (orderExprs)?	;groupClause	: #(GROUP { handleClauseStart( GROUP ); } (expr)+ ( #(HAVING logicalExpr) )? )	;selectClause!	: #(SELECT { handleClauseStart( SELECT ); beforeSelectClause(); } (d:DISTINCT)? x:selectExprList ) {		#selectClause = #([SELECT_CLAUSE,"{select clause}"], #d, #x);	}	;selectExprList {		boolean oldInSelect = inSelect;		inSelect = true;	}	: ( selectExpr | aliasedSelectExpr )+ {		inSelect = oldInSelect;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费成人在线网站| 欧美一卡二卡三卡| 欧美精品三级在线观看| 精品国产sm最大网站| 一卡二卡三卡日韩欧美| 国产v日产∨综合v精品视频| 欧美另类videos死尸| 亚洲日本成人在线观看| 激情综合色播五月| 欧美精品1区2区3区| 亚洲美女在线国产| 丁香婷婷综合网| 精品国产乱码久久久久久影片| 亚洲精品v日韩精品| 成人性生交大片免费| 欧美va亚洲va| 日韩精品高清不卡| 欧美日韩国产一级| 亚洲一区在线电影| 一本一道综合狠狠老| 亚洲欧美在线观看| 不卡的电视剧免费网站有什么| 精品不卡在线视频| 久久99精品久久久久久国产越南 | 国产精品久久久久久一区二区三区 | 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲国产精品99久久久久久久久| 免费在线看一区| 欧美一区二区三区在线观看视频| 亚洲成人动漫在线观看| 欧美日韩一卡二卡| 婷婷丁香久久五月婷婷| 宅男噜噜噜66一区二区66| 亚洲国产精品久久久久婷婷884 | 欧美精品一卡两卡| 日本欧美在线观看| 欧美r级在线观看| 久久99精品久久久久久久久久久久| 日韩女优毛片在线| 紧缚捆绑精品一区二区| 久久综合丝袜日本网| 国产精品一区二区三区网站| 亚洲国产成人午夜在线一区| 成人午夜视频网站| 亚洲少妇最新在线视频| 色婷婷国产精品综合在线观看| 一级特黄大欧美久久久| 精品视频一区三区九区| 久久99久久99小草精品免视看| 精品少妇一区二区三区在线视频| 国内精品免费在线观看| 中文字幕精品三区| 91久久线看在观草草青青| 五月婷婷另类国产| 久久久久国产精品麻豆ai换脸| 成人激情黄色小说| 午夜激情久久久| 日韩欧美一区在线观看| 成人免费视频一区| 亚洲午夜国产一区99re久久| 日韩一区二区不卡| 成人午夜私人影院| 天使萌一区二区三区免费观看| 精品国产精品网麻豆系列| 波多野洁衣一区| 日韩精品电影在线| 久久精品人人做人人综合| 色婷婷av一区二区三区软件 | 91精品国产色综合久久久蜜香臀| 激情综合网av| 亚洲尤物在线视频观看| 久久久久免费观看| 欧美日韩中字一区| 懂色av噜噜一区二区三区av| 亚洲成a人片在线观看中文| 国产视频一区二区在线观看| 欧美日韩高清一区二区不卡| 成人一区二区视频| 日本va欧美va瓶| 亚洲品质自拍视频网站| 久久久天堂av| 91精品中文字幕一区二区三区| 国产v日产∨综合v精品视频| 日韩成人一级片| 亚洲美女屁股眼交3| 久久免费午夜影院| 91精品午夜视频| 91啪亚洲精品| 国产91色综合久久免费分享| 石原莉奈一区二区三区在线观看| 国产精品美女久久久久久久| 欧美精品一区在线观看| 在线不卡中文字幕| 欧美吻胸吃奶大尺度电影 | 欧美亚洲国产bt| 夫妻av一区二区| 久久精品99久久久| 亚洲大片精品永久免费| 亚洲乱码国产乱码精品精小说| 欧美高清一级片在线观看| 26uuu精品一区二区| 欧美大胆人体bbbb| 日韩欧美一级二级| 日韩久久久久久| 欧美高清www午色夜在线视频| 色8久久精品久久久久久蜜| 91在线观看污| 99视频国产精品| av一区二区三区四区| www.欧美.com| 91首页免费视频| 97精品久久久午夜一区二区三区| 成人国产精品免费观看| 不卡视频免费播放| 99久久精品国产一区| 成人激情图片网| 91丨九色丨蝌蚪富婆spa| 成人av在线电影| 91色在线porny| 欧美性感一类影片在线播放| 欧美日韩高清一区二区三区| 7777精品伊人久久久大香线蕉的 | 国产视频一区二区在线观看| 精品成人在线观看| 久久久精品tv| 亚洲国产精品传媒在线观看| 国产精品水嫩水嫩| 亚洲精品国产无天堂网2021| 亚洲一区精品在线| 首页国产欧美久久| 久久99精品国产.久久久久久| 久久aⅴ国产欧美74aaa| 狠狠色狠狠色综合| 成人开心网精品视频| www.99精品| 欧美乱妇15p| 欧美精品一区二区三区久久久| 国产欧美日韩中文久久| 18欧美亚洲精品| 亚洲成人手机在线| 黑人巨大精品欧美黑白配亚洲| 成人丝袜18视频在线观看| 91福利社在线观看| 日韩一区二区三区在线观看| 久久久久久久综合日本| 亚洲美女免费在线| 免费人成网站在线观看欧美高清| 国产激情视频一区二区在线观看| 91在线播放网址| 6080国产精品一区二区| 国产日韩视频一区二区三区| 有码一区二区三区| 激情综合色综合久久| 色综合久久天天综合网| 日韩视频一区在线观看| 亚洲天堂精品视频| 国产一二精品视频| 欧美日韩国产免费| 国产精品久久网站| 日本午夜一区二区| 色综合久久中文综合久久97| 日韩亚洲欧美高清| 亚洲精品ww久久久久久p站| 黑人精品欧美一区二区蜜桃 | 亚洲自拍偷拍九九九| 狠狠色2019综合网| 在线电影一区二区三区| 国产精品久久久久久久久免费相片| 天天综合网 天天综合色| 成人黄色av网站在线| 精品三级在线看| 亚洲国产精品久久人人爱| av在线免费不卡| 国产喂奶挤奶一区二区三区| 免费精品视频在线| 欧美视频一区二区在线观看| 久久久.com| 久久草av在线| 7777精品伊人久久久大香线蕉超级流畅| 中国av一区二区三区| 激情欧美一区二区| 日韩一级片网站| 亚洲成人自拍一区| 欧美中文字幕亚洲一区二区va在线 | 国产一区二区美女| 日韩一区二区免费在线电影| 伊人色综合久久天天人手人婷| 大胆亚洲人体视频| 国产片一区二区| 国产精品自拍网站| 精品乱人伦小说| 精品一区二区三区影院在线午夜 | 日本一区二区成人在线| 国产激情一区二区三区桃花岛亚洲| 日韩欧美一区二区不卡| 天天影视网天天综合色在线播放| 欧美色成人综合| 亚洲午夜在线视频| 欧美三日本三级三级在线播放| 一区二区三区在线视频观看|