removed unused code from Java classes
This commit is contained in:
parent
3ffbcc9db7
commit
000be9a783
@ -44,7 +44,7 @@ public class SqlCreateBuilder {
|
||||
|
||||
private String table;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
private List<String> columns;
|
||||
|
||||
private JSONObject options;
|
||||
@ -56,13 +56,15 @@ public class SqlCreateBuilder {
|
||||
}
|
||||
|
||||
public String getCreateSQL() {
|
||||
if(logger.isDebugEnabled()) {
|
||||
logger.debug("Create SQL with columns: {}", columns);
|
||||
}
|
||||
StringBuffer createSB = new StringBuffer();
|
||||
|
||||
JSONArray columnOptionArray = options == null ? null : JSONUtilities.getArray(options, "columns");
|
||||
|
||||
final boolean trimColNames = options == null ? false : JSONUtilities.getBoolean(options, "trimColumnNames", false);
|
||||
|
||||
//logger.info("Trim Column Names::" + trimColNames);
|
||||
|
||||
int count = columnOptionArray.length();
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
@ -138,12 +140,6 @@ public class SqlCreateBuilder {
|
||||
return createSQL;
|
||||
}
|
||||
|
||||
// public static void main(String[] args) {
|
||||
// String column = "Column 1 With Spaces";
|
||||
// String newCol = column.replaceAll("\\s", "");
|
||||
//
|
||||
// logger.info("Column after trim:" + newCol);
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
@ -66,7 +66,9 @@ public class SqlExporter implements WriterExporter {
|
||||
@Override
|
||||
public void export(final Project project, Properties params, Engine engine, final Writer writer)
|
||||
throws IOException {
|
||||
|
||||
if(logger.isDebugEnabled()) {
|
||||
logger.debug("export sql with params: {}", params);
|
||||
}
|
||||
TabularSerializer serializer = new TabularSerializer() {
|
||||
|
||||
@Override
|
||||
|
@ -73,7 +73,9 @@ public class SqlInsertBuilder {
|
||||
* @return
|
||||
*/
|
||||
public String getInsertSQL() {
|
||||
// logger.info("options values::::{}", options);
|
||||
if(logger.isDebugEnabled()) {
|
||||
logger.debug("Insert SQL with columns: {}", columns);
|
||||
}
|
||||
JSONArray columnOptionArray = options == null ? null :
|
||||
JSONUtilities.getArray(options, "columns");
|
||||
//logger.info("columnOptionArray::::{}", columnOptionArray);
|
||||
@ -130,8 +132,7 @@ public class SqlInsertBuilder {
|
||||
values.append(",");
|
||||
}
|
||||
values.append("\n");
|
||||
// logger.info("running values:{}", values.toString());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user