Package org.hoteia.qalingo.core.fetchplan

Examples of org.hoteia.qalingo.core.fetchplan.FetchPlan


 
  public EngineSetting getEngineSettingById(final Long engineSettingId, Object... params) {
        Criteria criteria = createDefaultCriteria(EngineSetting.class);
        criteria.add(Restrictions.eq("id", engineSettingId));
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);
       
        EngineSetting engineSetting = (EngineSetting) criteria.uniqueResult();
        if(engineSetting != null){
            engineSetting.setFetchPlan(fetchPlan);
        }
View Full Code Here


 
  public EngineSetting getEngineSettingByCode(final String code, Object... params) {
        Criteria criteria = createDefaultCriteria(EngineSetting.class);
        criteria.add(Restrictions.eq("code", handleCodeValue(code)));
       
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);
       
        EngineSetting engineSetting = (EngineSetting) criteria.uniqueResult();
        if(engineSetting != null){
            engineSetting.setFetchPlan(fetchPlan);
        }
View Full Code Here

    // USER
   
    public User getUserById(final Long userId, Object... params) {
        Criteria criteria = createDefaultCriteria(User.class);
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);
        criteria.add(Restrictions.eq("id", userId));
        User user = (User) criteria.uniqueResult();
        if(user != null){
            user.setFetchPlan(fetchPlan);
        }
View Full Code Here

        return user;
    }
   
    public User getUserByCode(final String userCode, Object... params) {
        Criteria criteria = createDefaultCriteria(User.class);
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);
        criteria.add(Restrictions.eq("code", handleCodeValue(userCode)));
        User user = (User) criteria.uniqueResult();
        if(user != null){
            user.setFetchPlan(fetchPlan);
        }
View Full Code Here

        return user;
    }

    public User getUserByLoginOrEmail(final String usernameOrEmail, Object... params) {
        Criteria criteria = createDefaultCriteria(User.class);
        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);
        criteria.add(Restrictions.or(Restrictions.eq("login", usernameOrEmail), Restrictions.eq("email", usernameOrEmail)));
        criteria.add(Restrictions.eq("active", true));
        User user = (User) criteria.uniqueResult();
        if(user != null){
            user.setFetchPlan(fetchPlan);
View Full Code Here

   
    // COMPANY
   
    public Company getCompanyById(final Long companyId, Object... params) {
        Criteria criteria = createDefaultCriteria(Company.class);
        FetchPlan fetchPlan = handleCompanySpecificFetchMode(criteria, params);
        criteria.add(Restrictions.eq("id", companyId));
        Company company = (Company) criteria.uniqueResult();
        if(company != null){
            company.setFetchPlan(fetchPlan);
        }
View Full Code Here

        return company;
    }
   
    public Company getCompanyByCode(final String companyCode, Object... params) {
        Criteria criteria = createDefaultCriteria(Company.class);
        FetchPlan fetchPlan = handleCompanySpecificFetchMode(criteria, params);
        criteria.add(Restrictions.eq("code", handleCodeValue(companyCode)));
        Company company = (Company) criteria.uniqueResult();
        if(company != null){
            company.setFetchPlan(fetchPlan);
        }
View Full Code Here

    // WAREHOUSE

    public Warehouse getWarehouseById(final Long warehouseId, Object... params) {
        Criteria criteria = createDefaultCriteria(Warehouse.class);

        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("id", warehouseId));
        Warehouse warehouse = (Warehouse) criteria.uniqueResult();
        if(warehouse != null){
            warehouse.setFetchPlan(fetchPlan);
View Full Code Here

    }

    public Warehouse getWarehouseByCode(final String warehouseCode, Object... params) {
        Criteria criteria = createDefaultCriteria(Warehouse.class);

        FetchPlan fetchPlan = handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("code", handleCodeValue(warehouseCode)));
        Warehouse warehouse = (Warehouse) criteria.uniqueResult();
        if(warehouse != null){
            warehouse.setFetchPlan(fetchPlan);
View Full Code Here

    private final Logger logger = LoggerFactory.getLogger(getClass());

    public OrderCustomer getOrderById(final Long orderCustomerId, Object... params) {
        Criteria criteria = createDefaultCriteria(OrderCustomer.class);

        FetchPlan fetchPlan =  handleSpecificFetchMode(criteria, params);

        criteria.add(Restrictions.eq("id", orderCustomerId));
        OrderCustomer orderCustomer = (OrderCustomer) criteria.uniqueResult();
        if(orderCustomer != null){
            orderCustomer.setFetchPlan(fetchPlan);
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.fetchplan.FetchPlan

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.