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

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

?? hql-sql.g

?? hibernate-distribution-3.3.1.GA-dist.zip源碼
?? 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一区二区三区免费野_久草精品视频
久久精品99国产精品日本| 欧美久久久久免费| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 欧美老年两性高潮| 国产精品少妇自拍| 麻豆极品一区二区三区| 色综合天天综合网国产成人综合天 | 国产成人精品免费视频网站| 色婷婷久久久久swag精品| 久久影院视频免费| 日韩中文欧美在线| 色综合久久中文综合久久97| 久久久亚洲精品一区二区三区| 午夜日韩在线电影| 91黄色激情网站| 国产精品久久久久影院色老大| 麻豆精品蜜桃视频网站| 欧美日韩国产片| 一区二区三区波多野结衣在线观看 | 日韩欧美高清在线| 亚洲狠狠爱一区二区三区| av电影天堂一区二区在线观看| 亚洲欧美福利一区二区| 国产精华液一区二区三区| 欧美一区二区成人| 午夜欧美视频在线观看| 色狠狠色狠狠综合| 亚洲欧美日韩国产中文在线| 成人激情免费视频| 国产欧美日韩视频在线观看| 国产麻豆日韩欧美久久| 欧美r级电影在线观看| 美女视频黄频大全不卡视频在线播放| 91福利视频在线| 一区二区激情视频| 欧美色图第一页| 亚洲图片欧美综合| 欧美日韩国产a| 日韩精品免费视频人成| 91精品婷婷国产综合久久性色| 天天免费综合色| 91精品国产高清一区二区三区蜜臀| 日日噜噜夜夜狠狠视频欧美人| 欧美日韩一区二区不卡| 日韩av一二三| 欧美成人女星排行榜| 国产在线精品一区在线观看麻豆| 精品国产一区二区三区av性色 | 亚洲视频在线观看三级| 99久久精品免费看国产免费软件| 中文字幕亚洲综合久久菠萝蜜| 91蜜桃网址入口| 亚洲一卡二卡三卡四卡无卡久久 | 欧美大度的电影原声| 国产永久精品大片wwwapp| 久久精品一区二区三区不卡| 豆国产96在线|亚洲| 亚洲另类春色校园小说| 欧美军同video69gay| 精品一区二区三区日韩| 国产精品区一区二区三| 在线亚洲人成电影网站色www| 丝袜美腿亚洲色图| 久久免费看少妇高潮| 91蜜桃在线免费视频| 美女视频第一区二区三区免费观看网站| 日韩欧美电影一二三| av亚洲精华国产精华精| 午夜精品一区在线观看| 久久综合色综合88| 91福利区一区二区三区| 久久91精品久久久久久秒播| 亚洲欧洲av另类| 日韩一二三四区| av爱爱亚洲一区| 免费成人在线视频观看| 亚洲欧洲精品一区二区三区| 亚洲同性gay激情无套| 欧美一区二区三区人| fc2成人免费人成在线观看播放| 亚洲国产精品影院| 国产精品毛片久久久久久| 欧美精品丝袜久久久中文字幕| 国产成人自拍在线| 秋霞午夜av一区二区三区| 中文字幕一区在线| 日韩视频永久免费| 色综合亚洲欧洲| 国产精品一二三在| 琪琪久久久久日韩精品| 亚洲人成亚洲人成在线观看图片| 精品欧美乱码久久久久久| 欧美亚洲国产一区在线观看网站| 国产福利一区二区三区视频| 视频一区欧美日韩| 一区二区免费在线| 久久久噜噜噜久久人人看 | 亚洲国产aⅴ成人精品无吗| 国产欧美一区二区精品性| 91精品国产欧美一区二区成人 | 国产激情91久久精品导航| 天堂久久久久va久久久久| 亚洲精品五月天| 国产精品成人在线观看| 国产网站一区二区三区| 精品国产伦一区二区三区观看体验| 欧美三级韩国三级日本一级| 99久久伊人久久99| 成人污视频在线观看| 欧美日韩成人综合在线一区二区| aa级大片欧美| 91在线播放网址| 成人免费va视频| 国产91在线|亚洲| 国产很黄免费观看久久| 国产又黄又大久久| 国产精品一区免费视频| 国产一区二区三区日韩| 国产乱国产乱300精品| 黑人精品欧美一区二区蜜桃| 黄网站免费久久| 国产一区二区电影| 高清成人免费视频| 成人看片黄a免费看在线| 成人综合婷婷国产精品久久蜜臀 | 99视频一区二区三区| 成人成人成人在线视频| 99久久伊人精品| 色婷婷综合五月| 欧美日韩和欧美的一区二区| 欧美性猛交一区二区三区精品| 欧美日韩国产影片| 日韩欧美在线123| 久久青草欧美一区二区三区| 中国色在线观看另类| 亚洲日本va在线观看| 色呦呦国产精品| 欧美吞精做爰啪啪高潮| 日韩一二三四区| 国产三级精品视频| 亚洲乱码日产精品bd| 亚洲成人动漫一区| 久久国产精品99久久久久久老狼| 麻豆精品久久久| www.av精品| 欧美性xxxxx极品少妇| 欧美一区二区三区免费在线看| 精品福利一区二区三区| **性色生活片久久毛片| 日韩在线观看一区二区| 国产风韵犹存在线视精品| 99re免费视频精品全部| 337p亚洲精品色噜噜| 国产亚洲成年网址在线观看| 亚洲精品国久久99热| 久久国产精品一区二区| voyeur盗摄精品| 91精品国产麻豆国产自产在线| 久久日一线二线三线suv| 一区av在线播放| 国产精品一区二区在线观看不卡| 色婷婷av一区二区三区gif | 国产午夜精品久久久久久久| 亚洲少妇最新在线视频| 麻豆91免费观看| 色婷婷久久一区二区三区麻豆| 欧美电影免费观看高清完整版 | 91视频91自| 欧美成人a视频| 亚洲资源中文字幕| 成人自拍视频在线观看| 日韩欧美专区在线| 亚洲国产成人va在线观看天堂| 国产激情精品久久久第一区二区| 欧美日韩久久久久久| 亚洲色图在线视频| 国产风韵犹存在线视精品| 8v天堂国产在线一区二区| 亚洲免费在线观看视频| 成人小视频在线| 国产亚洲一本大道中文在线| 日本成人在线视频网站| 在线国产电影不卡| 中文字幕综合网| 成人免费观看av| 2021中文字幕一区亚洲| 奇米色777欧美一区二区| 欧美性做爰猛烈叫床潮| 亚洲精品福利视频网站| 99re这里只有精品视频首页| 久久久久99精品一区| 狠狠色丁香久久婷婷综| 日韩欧美专区在线| 日本不卡一区二区三区高清视频| 91极品美女在线| 亚洲一区二区不卡免费| 欧美系列亚洲系列| 夜夜精品视频一区二区 | 亚洲自拍偷拍麻豆| 日本韩国精品一区二区在线观看|