Package org.voltdb.compilereport

Examples of org.voltdb.compilereport.ProcedureAnnotation


        assertTrue(checkTableInProcedure("ResetWarehouse", "ORDER_LINE", false));
    }

    private boolean checkTableInProcedure(String procedureName, String tableName, boolean read){

        ProcedureAnnotation annotation = (ProcedureAnnotation) catalog_db
                .getProcedures().get(procedureName).getAnnotation();

        SortedSet<Table> tables = null;
        if(read){
            tables = annotation.tablesRead;
View Full Code Here


        // sysprocs don't use the procedure compiler
        procedure.setSystemproc(false);
        procedure.setDefaultproc(procedureDescriptor.m_builtInStmt);
        procedure.setHasjava(true);
        procedure.setLanguage(lang.name());
        ProcedureAnnotation pa = (ProcedureAnnotation) procedure.getAnnotation();
        if (pa == null) {
            pa = new ProcedureAnnotation();
            procedure.setAnnotation(pa);
        }
        if (procedureDescriptor.m_scriptImpl != null) {
            // This is a Groovy or other Java derived procedure and we need to add an annotation with
            // the script to the Procedure element in the Catalog
View Full Code Here

        // SQL: hasJava (false), m_language(""), m_defaultproc (false), m_statements.m_items."SQL"
        // JAVA: hasJava (true, m_language ("JAVA"), m_defaultproc (false)
        if (proc.getDefaultproc()) {
            return;
        }
        ProcedureAnnotation annot = (ProcedureAnnotation) proc.getAnnotation();
        if (!proc.getHasjava()) {
            // SQL Statement procedure
            sb.append("CREATE PROCEDURE " + proc.getClassname() + roleNames + "\n" + spacer + "AS\n");
            String sqlStmt = proc.getStatements().get("SQL").getSqltext();
            if (sqlStmt.endsWith(";")) {
View Full Code Here

            index.setAnnotation(ia);
        }
        ia.statementsThatUseThis.add(stmt);
        ia.proceduresThatUseThis.add(proc);

        ProcedureAnnotation pa = (ProcedureAnnotation) proc.getAnnotation();
        if (pa == null) {
            pa = new ProcedureAnnotation();
            proc.setAnnotation(pa);
        }
        pa.indexesUsed.add(index);

        StatementAnnotation sa = (StatementAnnotation) stmt.getAnnotation();
View Full Code Here

        else {
            ta.statementsThatUpdateThis.add(stmt);
            ta.proceduresThatUpdateThis.add(proc);
        }

        ProcedureAnnotation pa = (ProcedureAnnotation) proc.getAnnotation();
        if (pa == null) {
            pa = new ProcedureAnnotation();
            proc.setAnnotation(pa);
        }
        if (read) {
            pa.tablesRead.add(table);
        }
View Full Code Here

TOP

Related Classes of org.voltdb.compilereport.ProcedureAnnotation

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.