Package realcix20.guis.layouts

Source Code of realcix20.guis.layouts.LayoutManager

package realcix20.guis.layouts;

import realcix20.utils.DAO;
import realcix20.utils.Resources;

public class LayoutManager {
       
    private LayoutManager() {
    }
   
    public static void deleteLayout(int clsId, int layoutId) {       
        DAO dao = DAO.getInstance();
        dao.setAutoCommit(true);
        dao.update(Resources.DELETE_LAYOUT_BY_CLSID_AND_LAYOUT_1);
        dao.setInt(1, clsId);
        dao.setInt(2, layoutId);
        dao.executeUpdate();
        dao.update(Resources.DELETE_LAYOUT_BY_CLSID_AND_LAYOUT_2);
        dao.setInt(1, clsId);
        dao.setInt(2, layoutId);
        dao.executeUpdate();
        dao.update(Resources.DELETE_LAYOUT_NAME);
        String txtId = "CL." + clsId + "." + layoutId;
        dao.setString(1, txtId);
        dao.executeUpdate();
    }
   
    public static void updateReportIsFavorite(int clsId, int layoutId, boolean stat) {       
        DAO dao = DAO.getInstance();
        dao.update(Resources.UPDATE_CL_ISFAVORITE_SQL);
        dao.setBoolean(1, stat);
        dao.setInt(2, clsId);
        dao.setInt(3, layoutId);
        dao.executeUpdate();       
    }
   
}
TOP

Related Classes of realcix20.guis.layouts.LayoutManager

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.