Package edu.brown.utils

Examples of edu.brown.utils.SQLFormatter


                assert(catalog_view != null) :
                    "Unexpected null MaterializedViewInfo '" + catalog_tbl.getName() + "'";
                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");
            }
        }
        // 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

Related Classes of edu.brown.utils.SQLFormatter

Copyright © 2018 www.massapicom. 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.