Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGInvalidDatabaseException


   
    public List<DatabaseInformation> getAvailableDatabases(Class<? extends WGDatabaseCore> implClass) throws WGAPIException, ModuleDependencyException {
       
        ServerDatabaseRetriever retriever = fetchServerDatabaseRetriever(implClass);
        if (retriever == null) {
            throw new WGInvalidDatabaseException("The database implementation class '" + implClass.getName() + "' is not suitable for database server type '" + getClass().getName() + "'");
        }
       
        if (!retriever.isAvailableDatabasesRetrievable()) {
            throw new WGInvalidDatabaseException("Available databases for implementation class '" + implClass.getName() + "' are not retrievable database server type '" + getClass().getName() + "'");
        }
       
        return retriever.getAvailableDatabases(this);
       
    }
View Full Code Here


    }
   
    public boolean isAvailableDatabasesRetrievable(Class<? extends WGDatabaseCore> implClass) throws WGAPIException, ModuleDependencyException {
        ServerDatabaseRetriever retriever = fetchServerDatabaseRetriever(implClass);
        if (retriever == null) {
            throw new WGInvalidDatabaseException("The database implementation class '" + implClass.getName() + "' is not suitable for database server type '" + getClass().getName() + "'");
        }
        return retriever.isAvailableDatabasesRetrievable();
    }
View Full Code Here

    }
   
    public List<String> getDatabasePathOptions(Class<? extends WGDatabaseCore> implClass) throws WGAPIException, ModuleDependencyException {
        ServerDatabaseRetriever retriever = fetchServerDatabaseRetriever(implClass);
        if (retriever == null) {
            throw new WGInvalidDatabaseException("The database implementation class '" + implClass.getName() + "' is not suitable for database server type '" + getClass().getName() + "'");
        }
        return retriever.getDatabasePathOptions();       
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGInvalidDatabaseException

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.