Examples of ProcedureAnnotation


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

Examples of org.voltdb.compilereport.ProcedureAnnotation

        // 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

Examples of org.voltdb.compilereport.ProcedureAnnotation

        // 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

Examples of org.voltdb.compilereport.ProcedureAnnotation

            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

Examples of org.voltdb.compilereport.ProcedureAnnotation

        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
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.