Examples of VersionDaoImpl


Examples of com.cloud.upgrade.dao.VersionDaoImpl

    protected HashMap<String, DbUpgrade[]> _upgradeMap = new HashMap<String, DbUpgrade[]>();

    VersionDao _dao;

    public DatabaseUpgradeChecker() {
        _dao = new VersionDaoImpl();
        _upgradeMap.put("2.1.7", new DbUpgrade[] { new Upgrade217to218(), new Upgrade218to22(), new Upgrade221to222(),
                new UpgradeSnapshot217to224(), new Upgrade222to224(), new Upgrade224to225(), new Upgrade225to226(),
                new Upgrade227to228(), new Upgrade228to229(), new Upgrade229to2210(), new Upgrade2210to2211(),
                new Upgrade2211to2212(), new Upgrade2212to2213(), new Upgrade2213to2214(), new Upgrade2214to30(),
                new Upgrade30to301(), new Upgrade301to302(), new Upgrade302to40(), new Upgrade40to41(), new Upgrade410to420() });
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

    @Inject
    VersionDao _dao;

    public DatabaseUpgradeChecker() {
        _dao = new VersionDaoImpl();

        _upgradeMap.put("2.1.7", new DbUpgrade[] {new Upgrade217to218(), new Upgrade218to22(), new Upgrade221to222(),
                new UpgradeSnapshot217to224(), new Upgrade222to224(), new Upgrade224to225(), new Upgrade225to226(),
                new Upgrade227to228(), new Upgrade228to229(), new Upgrade229to2210(), new Upgrade2210to2211(),
                new Upgrade2211to2212(), new Upgrade2212to2213(), new Upgrade2213to2214(), new Upgrade2214to30(),
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

    protected HashMap<String, DbUpgrade[]> _upgradeMap = new HashMap<String, DbUpgrade[]>();

    VersionDao _dao;

    public DatabaseUpgradeChecker() {
        _dao = new VersionDaoImpl();
        _upgradeMap.put("2.1.7", new DbUpgrade[] { new Upgrade217to218(), new Upgrade218to22(), new Upgrade221to222(),
                new UpgradeSnapshot217to224(), new Upgrade222to224(), new Upgrade224to225(), new Upgrade225to226(),
                new Upgrade227to228(), new Upgrade228to229(), new Upgrade229to2210(), new Upgrade2210to2211(),
                new Upgrade2211to2212(), new Upgrade2212to2213(), new Upgrade2213to2214(), new Upgrade2214to30(),
                new Upgrade30to301(), new Upgrade301to302(), new Upgrade302to40(), new Upgrade40to41(), new Upgrade410to420(), new Upgrade420to421() });
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

        Connection conn;
        PreparedStatement pstmt;
        ResultSet rs;

        VersionDaoImpl dao = ComponentLocator.inject(VersionDaoImpl.class);
        DatabaseUpgradeChecker checker = ComponentLocator.inject(DatabaseUpgradeChecker.class);

        String version = dao.getCurrentVersion();

        if (!version.equals("2.2.1")) {
            s_logger.error("Version returned is not 2.2.1 but " + version);
        } else {
            s_logger.debug("Sanity 2.2.1 to 2.2.4 test version is " + version);
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

        DbTestUtils.executeScript("fake.sql", false, true);
       
        Connection conn = Transaction.getStandaloneConnection();
        PreparedStatement pstmt;
       
        VersionDaoImpl dao = ComponentLocator.inject(VersionDaoImpl.class);
        DatabaseUpgradeChecker checker = ComponentLocator.inject(DatabaseUpgradeChecker.class);
       
        String version = dao.getCurrentVersion();
       
        if (!version.equals("2.1.8")) {
            s_logger.error("Version returned is not 2.1.8 but " + version);
        } else {
            s_logger.debug("Basic zone test version is " + version);
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

        DbTestUtils.executeScript("fake.sql", false, true);
       
        PreparedStatement pstmt;
        ResultSet rs;
       
        VersionDaoImpl dao = ComponentLocator.inject(VersionDaoImpl.class);
        DatabaseUpgradeChecker checker = ComponentLocator.inject(DatabaseUpgradeChecker.class);
       
        String version = dao.getCurrentVersion();
       
        if (!version.equals("2.1.8")) {
            s_logger.error("Version returned is not 2.1.8 but " + version);
        } else {
            s_logger.debug("Instance group test version is " + version);
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

    public void test218to22Upgrade() throws SQLException {
        s_logger.debug("Finding sample data from 2.1.8");
        DbTestUtils.executeScript("fake.sql", false, true);
       
        VersionDaoImpl dao = ComponentLocator.inject(VersionDaoImpl.class);
        DatabaseUpgradeChecker checker = ComponentLocator.inject(DatabaseUpgradeChecker.class);
       
        String version = dao.getCurrentVersion();
       
        if (!version.equals("2.1.8")) {
            s_logger.error("Version returned is not 2.1.8 but " + version);
        } else {
            s_logger.debug("Instance group test version is " + version);
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

        Connection conn;
        PreparedStatement pstmt;
        ResultSet rs;

        VersionDaoImpl dao = ComponentLocator.inject(VersionDaoImpl.class);
        DatabaseUpgradeChecker checker = ComponentLocator.inject(DatabaseUpgradeChecker.class);

        String version = dao.getCurrentVersion();

        if (!version.equals("2.2.4")) {
            s_logger.error("Version returned is not 2.2.4 but " + version);
        } else {
            s_logger.debug("Sanity 2.2.4 to 2.2.5 test version is " + version);
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

       
        Connection conn;
        PreparedStatement pstmt;
        ResultSet rs;
       
        VersionDaoImpl dao = ComponentLocator.inject(VersionDaoImpl.class);
        DatabaseUpgradeChecker checker = ComponentLocator.inject(DatabaseUpgradeChecker.class);
       
        String version = dao.getCurrentVersion();
       
        if (!version.equals("2.1.8")) {
            s_logger.error("Version returned is not 2.1.8 but " + version);
        } else {
            s_logger.debug("Port forwarding test version is " + version);
View Full Code Here

Examples of com.cloud.upgrade.dao.VersionDaoImpl

        DbTestUtils.executeUsageScript("fake.sql", false, true);
       
        Connection conn;
        PreparedStatement pstmt;
       
        VersionDaoImpl dao = ComponentLocator.inject(VersionDaoImpl.class);
        PremiumDatabaseUpgradeChecker checker = ComponentLocator.inject(PremiumDatabaseUpgradeChecker.class);
       
        String version = dao.getCurrentVersion();
        assert version.equals("2.1.7") : "Version returned is not 2.1.7 but " + version;
       
        checker.upgrade("2.1.7", "2.2.4");
       
        conn = Transaction.getStandaloneConnection();
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.