1 30 package com.genimen.djeneric.repository.sqlparser; 31 32 import com.genimen.djeneric.repository.sqlparser.core.ParseException; 33 import com.genimen.djeneric.repository.sqlparser.core.TokenContext; 34 35 public interface SqlParserEngineListener 36 { 37 void handleTable(TokenContext ctxt, StringBuffer tableName, StringBuffer tableAlias) throws ParseException; 38 39 void handleColumn(TokenContext ctxt, StringBuffer tableAlias, StringBuffer columnName) throws ParseException; 40 41 void handleParameter(TokenContext ctxt, StringBuffer parameterName) throws ParseException; 42 43 void handleColumnExpression(TokenContext ctxt, StringBuffer expression) throws ParseException; 44 45 void handleSelectedColumnExpression(TokenContext ctxt, StringBuffer expression, StringBuffer aliasName) 46 throws ParseException; 47 48 void handleSelectList(TokenContext ctxt, StringBuffer selectList) throws ParseException; 49 50 void handleSelectFullRecord(TokenContext ctxt, String tableAlias, StringBuffer fullRecordSelect) 51 throws ParseException; 52 53 void handleInsertColumnList(TokenContext ctxt, StringBuffer insertColumns) throws ParseException; 54 55 void handleInsertValueList(TokenContext ctxt, StringBuffer insertColumns) throws ParseException; 56 57 void handleTableList(TokenContext ctxt, StringBuffer tableList) throws ParseException; 58 59 void handleWhereClause(TokenContext ctxt, StringBuffer where) throws ParseException; 60 61 void handleGroupBy(TokenContext ctxt, StringBuffer groupBy) throws ParseException; 62 63 void handleHaving(TokenContext ctxt, StringBuffer having) throws ParseException; 64 65 void handleOrderBy(TokenContext ctxt, StringBuffer orderBy) throws ParseException; 66 67 void handleFunction(TokenContext ctxt, StringBuffer functionName, StringBuffer args) throws ParseException; 68 69 void enterStatement(TokenContext ctxt, int 70 statementType) throws ParseException; 71 72 void exitStatement(TokenContext ctxt, int 73 statementType, StringBuffer theStatement) throws ParseException; 74 75 } | Popular Tags |