Examples of sqljJar()


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

            if (jarName != null) {
                AkibanInformationSchema ais = ddlFunctions.getAIS(session);
                SQLJJar sqljJar = ais.getSQLJJar(jarSchema, jarName);
                if (sqljJar == null)
                    throw new NoSuchSQLJJarException(jarSchema, jarName);
                builder.sqljJar(jarSchema, jarName, sqljJar.getURL());
            }
            builder.routineExternalName(schemaName, routineName,
                                        jarSchema, jarName,
                                        className, methodName);
        }
View Full Code Here

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

    }

    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);
    }
View Full Code Here

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

    }

    @Test
    public void dropSqljJar() throws Exception {
        AISBuilder builder = new AISBuilder();
        builder.sqljJar("drop", "grapeJelly", new URL("file://boo.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar("drop", "grapeJelly"));
        builder.sqljJar("keep", "strawberryJam", new URL("file://far.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar("keep", "strawberryJam"));
        expectSqljJars("drop", "grapeJelly");
        expectSqljJars("keep", "strawberryJam");
View Full Code Here

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

    @Test
    public void dropSqljJar() throws Exception {
        AISBuilder builder = new AISBuilder();
        builder.sqljJar("drop", "grapeJelly", new URL("file://boo.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar("drop", "grapeJelly"));
        builder.sqljJar("keep", "strawberryJam", new URL("file://far.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar("keep", "strawberryJam"));
        expectSqljJars("drop", "grapeJelly");
        expectSqljJars("keep", "strawberryJam");
        ddl().dropSchema(session(), "drop");
        expectNotSqljJars("drop", "grapeJelly");
View Full Code Here

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

public class RoutineDDLIT extends AISDDLITBase {
    @Before
    public void createJar() throws Exception {
        // CALL SQLJ.INSTALL_JAR('foo.jar', 'ajar', 0)
        AISBuilder builder = new AISBuilder();
        builder.sqljJar(SCHEMA_NAME, "ajar", new URL("file://foo.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar(SCHEMA_NAME, "ajar"));
    }

    @Test
    public void testCreateJava() throws Exception {
View Full Code Here

Examples of com.foundationdb.ais.model.TestAISBuilder.sqljJar()

                     refs);
        builder.column(schema, view, "c1", 0, "MCOMPAT", "DOUBLE", true);
        builder.column(schema, view, "c2", 1, "MCOMPAT", "INT", false);
        }

        builder.sqljJar("test", "ajar",
                        new URL("https://example.com/procs/ajar.jar"));

        builder.routine("test", "proc1", "java", Routine.CallingConvention.JAVA);
        builder.parameter("test", "proc1", "n1", Parameter.Direction.IN,
                          "MCOMPAT", "bigint", null, null);
View Full Code Here

Examples of com.foundationdb.ais.model.aisb2.NewAISBuilder.sqljJar()

        ServerSession server = context.getServer();
        TableName jarName = jarName(server, jar);
        DDLFunctions ddl = server.getDXL().ddlFunctions();
        NewAISBuilder aisb = AISBBasedBuilder.create(server.getDefaultSchemaName(),
                                                     ddl.getTypesTranslator());
        aisb.sqljJar(jarName).url(url, true);
        SQLJJar sqljJar = aisb.ais().getSQLJJar(jarName);
        ddl.createSQLJJar(server.getSession(), sqljJar);
        if (deploy != 0) {
            new SQLJJarDeployer(context, jarName).deploy();
        }
View Full Code Here

Examples of com.foundationdb.ais.model.aisb2.NewAISBuilder.sqljJar()

        ServerSession server = context.getServer();
        TableName jarName = jarName(server, jar);
        DDLFunctions ddl = server.getDXL().ddlFunctions();
        NewAISBuilder aisb = AISBBasedBuilder.create(server.getDefaultSchemaName(),
                                                     ddl.getTypesTranslator());
        aisb.sqljJar(jarName).url(url, true);
        SQLJJar sqljJar = aisb.ais().getSQLJJar(jarName);
        ddl.replaceSQLJJar(server.getSession(), sqljJar);
        server.getRoutineLoader().checkUnloadSQLJJar(server.getSession(), jarName);
    }
View Full Code Here

Examples of com.foundationdb.ais.model.aisb2.NewAISBuilder.sqljJar()

    }

    @Test
    public void procedureJava() {
        NewAISBuilder builder = AISBBasedBuilder.create(SCHEMA, typesTranslator());
        builder.sqljJar("myjar")
            // A file URL would vary by testing system. But don't check exists.
            .url("http://example.com/procs.jar", false);
        builder.procedure("PROC1")
            .language("java", Routine.CallingConvention.JAVA)
            .paramLongIn("x1")
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.