Examples of dbConnection()


Examples of org.openbel.framework.core.df.DatabaseService.dbConnection()

    protected void setupKamStore(final String kamName) {
        try {
            final SystemConfiguration syscfg = createSystemConfiguration();
            final DatabaseService dbs = new DatabaseServiceImpl();
            dbc = dbs.dbConnection(syscfg.getKamURL(),
                    syscfg.getKamUser(), syscfg.getKamPassword());
            ks = new KAMStoreImpl(dbc);
        } catch (IOException e) {
            e.printStackTrace();
            fail("Could not read system configuration.");
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseService.dbConnection()

        // If "--no-preserve" is not specified, query the database for an
        // existing KAM w/same name. If one exists, exit with proper ExitCode.
        if (!hasOption(LONG_OPT_NO_PRESERVE)){
            String kamName = getOptionValue("k");
            try{
                dbConnection = dbsvc.dbConnection(
                        syscfg.getKamURL(),
                        syscfg.getKamUser(),
                        syscfg.getKamPassword());
                kamStore = new KAMStoreImpl(dbConnection);
                kams = kamStore.getCatalog();
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseService.dbConnection()

        DatabaseService db = new DatabaseServiceImpl();
        SystemConfiguration sc = getSystemConfiguration();

        DBConnection c = null;
        try {
            c = db.dbConnection(sc.getKamURL(), sc.getKamUser(),
                    sc.getKamPassword());
            KAMStore store = new KAMStoreImpl(c);
            return store.getKamInfo(kam) != null;
        } catch (SQLException e) {
            return false;
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseService.dbConnection()

        DatabaseService db = new DatabaseServiceImpl();
        SystemConfiguration sc = getSystemConfiguration();

        DBConnection c = null;
        try {
            c = db.dbConnection(sc.getKamURL(), sc.getKamUser(),
                    sc.getKamPassword());
            KAMStore store = new KAMStoreImpl(c);
            return store.getKam(kam);
        } catch (SQLException e) {
            return null;
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseService.dbConnection()

        DatabaseService db = new DatabaseServiceImpl();
        SystemConfiguration sc = getSystemConfiguration();

        DBConnection c = null;
        try {
            c = db.dbConnection(sc.getKamURL(), sc.getKamUser(),
                    sc.getKamPassword());
            return new KAMStoreImpl(c);
        } catch (SQLException e) {
            return null;
        }
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseServiceImpl.dbConnection()

    protected void setupKamStore(final String kamName) {
        try {
            final SystemConfiguration syscfg = createSystemConfiguration();
            final DatabaseService dbs = new DatabaseServiceImpl();
            dbc = dbs.dbConnection(syscfg.getKamURL(),
                    syscfg.getKamUser(), syscfg.getKamPassword());
            ks = new KAMStoreImpl(dbc);
        } catch (IOException e) {
            e.printStackTrace();
            fail("Could not read system configuration.");
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseServiceImpl.dbConnection()

        // If "--no-preserve" is not specified, query the database for an
        // existing KAM w/same name. If one exists, exit with proper ExitCode.
        if (!hasOption(LONG_OPT_NO_PRESERVE)){
            String kamName = getOptionValue("k");
            try{
                dbConnection = dbsvc.dbConnection(
                        syscfg.getKamURL(),
                        syscfg.getKamUser(),
                        syscfg.getKamPassword());
                kamStore = new KAMStoreImpl(dbConnection);
                kams = kamStore.getCatalog();
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseServiceImpl.dbConnection()

        DatabaseService db = new DatabaseServiceImpl();
        SystemConfiguration sc = getSystemConfiguration();

        DBConnection c = null;
        try {
            c = db.dbConnection(sc.getKamURL(), sc.getKamUser(),
                    sc.getKamPassword());
            KAMStore store = new KAMStoreImpl(c);
            return store.getKamInfo(kam) != null;
        } catch (SQLException e) {
            return false;
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseServiceImpl.dbConnection()

        DatabaseService db = new DatabaseServiceImpl();
        SystemConfiguration sc = getSystemConfiguration();

        DBConnection c = null;
        try {
            c = db.dbConnection(sc.getKamURL(), sc.getKamUser(),
                    sc.getKamPassword());
            KAMStore store = new KAMStoreImpl(c);
            return store.getKam(kam);
        } catch (SQLException e) {
            return null;
View Full Code Here

Examples of org.openbel.framework.core.df.DatabaseServiceImpl.dbConnection()

        DatabaseService db = new DatabaseServiceImpl();
        SystemConfiguration sc = getSystemConfiguration();

        DBConnection c = null;
        try {
            c = db.dbConnection(sc.getKamURL(), sc.getKamUser(),
                    sc.getKamPassword());
            return new KAMStoreImpl(c);
        } catch (SQLException e) {
            return null;
        }
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.