Package edu.brown.utils

Examples of edu.brown.utils.SQLFormatter.format()


                sb.append(MaterializedViewInfo.class.getSimpleName()).append("\n");
                sb.append(this.getAttributesText(catalog_view));
               
                SQLFormatter f = new SQLFormatter(catalog_view.getSqltext());
                sb.append(StringUtil.SINGLE_LINE);
                sb.append("\n").append(f.format()).append("\n");
            } else {
                String schema = CatalogUtil.toSchema(catalog_tbl);
                sb.append("\n").append(schema).append("\n");
            }
        }
View Full Code Here


        // Statement
        else if (catalog_obj instanceof Statement) {
            Statement catalog_stmt = (Statement)catalog_obj;
            SQLFormatter f = new SQLFormatter(catalog_stmt.getSqltext());
            sb.append(StringUtil.SINGLE_LINE);
            sb.append("\n").append(f.format()).append("\n");
        }

        return (sb.toString());
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.