Class demo
Object
demo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcompareResolvers(EDbVendor dbVendor, String sqlFilePath) Compare table and column resolution results between RESOLVER and RESOLVER2.static StringextractSQL(String filePath) static voidgenerateKeywordList(String keywordFile, String outFile) static byte[]intToByteArray(int num) static voidstatic booleanstatic voidparseIntToHex(int value) static voidparseJsonFile(EDbVendor db, String jsonfile) static voidstatic voidstatic StringqualifySchemaObjectName(String schemaObjectName) static voidreadbigfile(String filename) static voidstatic voidrunCompareResolvers(String[] args) Main entry point for comparing resolvers from command line.static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidwriteToFile(String outContent, String outfile, String charset)
-
Constructor Details
-
demo
public demo()
-
-
Method Details
-
writeToFile
public static void writeToFile(String outContent, String outfile, String charset) throws IOException - Throws:
IOException
-
readfile1
-
readbigfile
-
parseIntToHex
-
intToByteArray
-
main
- Throws:
IOException
-
testVariableSubstitution
-
testSQLEnv
-
extractSQL
- Throws:
IOException
-
testRemoveTableList
-
testRenameTable
-
testModifyExpr
-
printNodeStartWithThisToken
-
printNodeEndWithThisToken
-
showNodeOfToken
-
testModifySQL
-
testSetNodeText
-
parseJsonFile
-
qualifySchemaObjectName
-
moveFile
-
generateKeywordList
- Throws:
IOException
-
compareResolvers
Compare table and column resolution results between RESOLVER and RESOLVER2. This method parses the same SQL file using both resolver types and compares the outputs.- Parameters:
dbVendor- The database vendor (e.g., EDbVendor.dbvoracle, EDbVendor.dbvmssql)sqlFilePath- The path to the input SQL file
-
runCompareResolvers
Main entry point for comparing resolvers from command line. Usage: java demo compareResolversExample: java demo compareResolvers oracle /path/to/query.sql
-