Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.NoSuchSQLJJarException


                                     boolean inSystem, boolean replace) {
        final AkibanInformationSchema oldAIS = getAISForChange(session);
        checkSystemSchema(sqljJar.getName(), inSystem);
        if (replace) {
            if (oldAIS.getSQLJJar(sqljJar.getName()) == null)
                throw new NoSuchSQLJJarException(sqljJar.getName());
        }
        else {
            if (oldAIS.getSQLJJar(sqljJar.getName()) != null)
                throw new DuplicateSQLJJarNameException(sqljJar.getName());
        }
View Full Code Here


                                   boolean inSystem) {
        final AkibanInformationSchema oldAIS = getAISForChange(session);
        checkSystemSchema(jarName, inSystem);
        SQLJJar sqljJar = oldAIS.getSQLJJar(jarName);
        if (sqljJar == null)
            throw new NoSuchSQLJJarException(jarName);
        if (!sqljJar.getRoutines().isEmpty())
            throw new ReferencedSQLJJarException(sqljJar);
        final AkibanInformationSchema newAIS = aisCloner.clone(oldAIS);
        newAIS.removeSQLJJar(jarName);
        if (inSystem) {
View Full Code Here

            }
            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

    public ClassLoader loadSQLJJar(Session session, TableName jarName) {
        if (jarName == null)
            return getClass().getClassLoader();
        SQLJJar sqljJar = ais(session).getSQLJJar(jarName);
        if (sqljJar == null)
            throw new NoSuchSQLJJarException(jarName);
        long currentVersion = sqljJar.getVersion();
        synchronized (classLoaders) {
            VersionedItem<ClassLoader> entry = classLoaders.get(jarName);
            if ((entry != null) && (entry.version == currentVersion))
                return entry.item;
View Full Code Here

    @Override
    public JarFile openSQLJJarFile(Session session, TableName jarName) throws IOException {
        SQLJJar sqljJar = ais(session).getSQLJJar(jarName);
        if (sqljJar == null)
            throw new NoSuchSQLJJarException(jarName);
        URL jarURL = new URL("jar:" + sqljJar.getURL() + "!/");
        return ((JarURLConnection)jarURL.openConnection()).getJarFile();
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.NoSuchSQLJJarException

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.