Examples of NoSuchRoutineException


Examples of com.foundationdb.server.error.NoSuchRoutineException

    private void dropRoutineCommon(Session session, TableName routineName, boolean inSystem) {
        final AkibanInformationSchema oldAIS = getAISForChange(session, !inSystem);
        checkSystemSchema(routineName, inSystem);
        Routine routine = oldAIS.getRoutine(routineName);
        if (routine == null)
            throw new NoSuchRoutineException(routineName);
        final AkibanInformationSchema newAIS = aisCloner.clone(oldAIS);
        routine = newAIS.getRoutine(routineName);
        newAIS.removeRoutine(routineName);
        if (routine.getSQLJJar() != null)
            routine.getSQLJJar().removeRoutine(routine); // Keep accurate in memory.
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchRoutineException

        if (schemaName == null) {
            schemaName = server.getDefaultSchemaName();
        }
        Routine routine = server.getAIS().getRoutine(schemaName, routineName);
        if (routine == null)
            throw new NoSuchRoutineException(schemaName, routineName);
        Object[] constantArgs = null;
        int[] parameterArgs = null;
        JavaValueNode[] margs = methodCall.getMethodParameters();
        if (margs != null) {
            constantArgs = new Object[margs.length];
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchRoutineException

    }

    public static ServerCallInvocation of(ServerSession server, TableName routineName) {
        Routine routine = server.getAIS().getRoutine(routineName);
        if (routine == null)
            throw new NoSuchRoutineException(routineName);
        int nparams = routine.getParameters().size();
        Object[] constantArgs = new Object[nparams];
        int[] parameterArgs = new int[nparams];
        for (int i = 0; i < nparams; i++) {
            parameterArgs[i] = i;
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchRoutineException

                                   QueryContext context) {
        TableName routineName = DDLHelper.convertName(defaultSchemaName, dropRoutine.getObjectName());
        Routine routine = ddlFunctions.getAIS(session).getRoutine(routineName);

        if((routine == null) &&
           skipOrThrow(context, dropRoutine.getExistenceCheck(), routine, new NoSuchRoutineException(routineName))) {
            return;
        }

        ddlFunctions.dropRoutine(session, routineName);
        routineLoader.checkUnloadRoutine(session, routineName);
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchRoutineException

    }

    protected synchronized CacheEntry getEntry(Session session, TableName routineName) {
        Routine routine = dxlService.ddlFunctions().getAIS(session).getRoutine(routineName);
        if (null == routine)
            throw new NoSuchRoutineException(routineName);
        long currentVersion = routine.getVersion();       
        CacheEntry entry = cache.get(routineName);
        if ((entry != null) && (entry.version == currentVersion))
            return entry;
        ScriptEngine engine = getManager(session).getEngineByName(routine.getLanguage());
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchRoutineException

    @Override
    public LoadablePlan<?> loadLoadablePlan(Session session, TableName routineName) {
        AkibanInformationSchema ais = ais(session);
        Routine routine = ais.getRoutine(routineName);
        if (routine == null)
            throw new NoSuchRoutineException(routineName);
        if (routine.getCallingConvention() != Routine.CallingConvention.LOADABLE_PLAN)
            throw new SQLJInstanceException(routineName, "Routine was not loadable plan");
        long currentVersion = routine.getVersion();
        LoadablePlan<?> loadablePlan;
        synchronized (loadablePlans) {
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchRoutineException

    @Override
    public Method loadJavaMethod(Session session, TableName routineName) {
        Routine routine = ais(session).getRoutine(routineName);
        if (routine == null)
            throw new NoSuchRoutineException(routineName);
        if (routine.getCallingConvention() != Routine.CallingConvention.JAVA)
            throw new SQLJInstanceException(routineName, "Routine was not SQL/J");
        long currentVersion = routine.getVersion();
        synchronized (javaMethods) {
            VersionedItem<Method> entry = javaMethods.get(routineName);
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.