Package com.foundationdb.ais.model

Examples of com.foundationdb.ais.model.AISBuilder.routine()


            }
        }

        TypesTranslator typesTranslator = ddlFunctions.getTypesTranslator();
        AISBuilder builder = new AISBuilder();
        builder.routine(schemaName, routineName,
                        language, callingConvention);
       
        for (int i = 0; i < aliasInfo.getParameterCount(); i++) {
            String parameterName = aliasInfo.getParameterNames()[i];
            Parameter.Direction direction;
View Full Code Here


    public void createJarAndRoutine(String jarSchema, String jarName,
                                    String routineSchema, String routineName) throws MalformedURLException {
        AISBuilder builder = new AISBuilder();
        builder.sqljJar(jarSchema, jarName, new URL("file://ajar.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar(jarSchema, jarName));
        builder.routine(routineSchema, routineName, "java", Routine.CallingConvention.JAVA);
        builder.routineExternalName(routineSchema, routineName, jarSchema, jarName, "className", "method");
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine(routineSchema, routineName), true);
    }

    @After
View Full Code Here

    }

    @Test
    public void dropRoutine() throws Exception {
        AISBuilder builder = new AISBuilder();
        builder.routine("drop", "f", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("drop", "f", "function f() { return 3; }");
        builder.routine("keep", "p", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("keep", "p", "function f() { return 8; }");
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("drop", "f"), true);
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("keep", "p"), true);
View Full Code Here

    @Test
    public void dropRoutine() throws Exception {
        AISBuilder builder = new AISBuilder();
        builder.routine("drop", "f", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("drop", "f", "function f() { return 3; }");
        builder.routine("keep", "p", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("keep", "p", "function f() { return 8; }");
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("drop", "f"), true);
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("keep", "p"), true);
        expectRoutines("drop", "f");
        expectRoutines("keep", "p");
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.