iBatis Analyzer#
The object relational framework, iBatis, takes care of heavy lifting of various database access and execution related operations while providing the java middle tier convenience to interface with the database layer. But, as iBatis hides the complexities of data access from Java, the dependencies between them also get hidden in the process. The iBatis Analyzer figures out about the dependencies so that the dependencies from java to the database become clear.
The iBatis Analyzer parses java byte code and sql map configuration file to generate the dependencies between Java classes and Database objects.
The iBatis Analyzer became available from Lattix 8.3 onwards.
Running the iBatis Analyzer#
Invoke the iBatis Analyzer using the batch file toolcmd.bat (for windows).
Command Line Arguments#
The iBatis Analyzer takes the following arguments:
toolcmd -command ibatis [-input input | -classesdir classes-dir-name | -jardir jar-dir-name | -jarfile jar-file] [-outfile out-file.ldi] [-sqlMapCfg sqlmapconfig-xml-file] | [-memberlevel] [-help]
Mandatory arguments:
-outfile: Specify the file for the output. If the output file name is of type “ldi”, the format of the output will be for ldi. If the output file name is of type “csv”, the format of the file will be csv (comma seperated values). Note that csv files can be read into excel directly. If you do not specify the output option, dependencies will be dumped out on the console in a text format.
-sqlMapCfg: Specify the iBatis sql map configuration xml file to be analyzed. This is optional if input (-input war or, jar file or, the directory) or, classes directory (-classesdir) has been specified and sql map config xml files are available there.