Note
|
This is a fork of Openbravo SqlC |
This project was part of Openbravo code (src-core)
SQLC (SQL Compiler) is a utility used to avoid the repetitive task of writing Java classes to interact with the database. The input is an XML file that contains standard SQL statements and the parameters used in the statements. SQLC reads this file and generates a Java class that has all the code necessary to connect to the database, execute the statement, read the record and create standard Java types as return for the methods.
java org.openbravo.data.Sqlc [fileProperties] [fileTermination] [sourceDir] [destinyDir] [write_txt_files] [timeout]
Nome | Values |
---|---|
sqlc.listOfFiles |
sqlc.queryExecutionStrategy |
Name |
---|
dateFormat.java |
SqlClass |
SqlClassComment |
SqlMethod |
Sql |
SqlMethodComment |
Field |
-
Não esta sendo o directorio correcto respeitando a package, ou seja, as classe (bla..bla..)
init();
listDir(){
parseSqlFile();
}
setDefaultOptions();
parseCLIOptions();
processInputDirectory(){
//1 - Iterate on all subdirectory. and search for every FILE that match inputFilePrefix/*.xsql
//3 - validateXsql(File); validateXsql(String);
//2 - XsqlEntity parseXsqlFile() XsqlException: Malformatted XSQL, Wrapper ERROR about database, table, field, etc
//3 - generateJavaCode(XsqlEntity);
}