Examples of findByCriteria()


Examples of com.sun.appserv.ha.spi.BackingStore.findByCriteria()

                = this.getSipApplicationSessionBackingStore();
        SipApplicationSessionExtraParams sasExtraParamCriteria
                = SipApplicationSessionExtraParams.createSearchCriteria(
                this, this.getApplicationId(), owningInstanceName);
        Collection<SipApplicationSessionExtraParams> sasColl
                = backingStore.findByCriteria(null, sasExtraParamCriteria);

        List<FederatedQueryListElement> sessionIds = new ArrayList();
        //using set to avoid dups
        HashSet sessionIdsSet = new HashSet();
        Iterator<SipApplicationSessionExtraParams> sasResults =
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore.findByCriteria()

        BackingStore backingStore
            = this.getSipSessionBackingStore();
        SipSessionExtraParams ssExtraParamCriteria
            = SipSessionExtraParams.createSearchCriteria(this, owningInstanceName);
        Collection<SipSessionExtraParams> ssColl
            = backingStore.findByCriteria(null, ssExtraParamCriteria);

        List<FederatedQueryListElement> sessionIds = new ArrayList();
        //using set to avoid dups
        HashSet sessionIdsSet = new HashSet();
        Iterator<SipSessionExtraParams> ssResults =
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore.findByCriteria()

        BackingStore backingStore
            = this.getServletTimerBackingStore();
        ServletTimerExtraParams stExtraParamCriteria
            = ServletTimerExtraParams.createSearchCriteria(this, owningInstanceName);
        Collection<ServletTimerExtraParams> stColl
            = backingStore.findByCriteria(null, stExtraParamCriteria);

        List<FederatedQueryListElement> servletTimerIds = new ArrayList();
        //using set to avoid dups
        HashSet servletTimerIdsSet = new HashSet();
        Iterator<ServletTimerExtraParams> stResults =
View Full Code Here

Examples of org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria()

  private Number query(String value) {
    HibernateTemplate template = new HibernateTemplate(sessionFactory);
    DetachedCriteria criteria = forClass(entity).add(eq(field, value))
        .setProjection(count(field));
    return (Number) template.findByCriteria(criteria).iterator().next();
  }

}
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.UserDataDAO.findByCriteria()

            @Override
            public List<UserData> processWithContext(ProcessToolContext ctx) {
                UserDataDAO dao = ctx.getUserDataDAO();
                DetachedCriteria criteria = dao.getDetachedCriteria().add(Restrictions.in("login", logins))
                        .addOrder(Order.asc("login"));
                return dao.findByCriteria(criteria);
            }
        });
    }

    @Override
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.UserDataDAO.findByCriteria()

            @Override
            public List<UserData> processWithContext(ProcessToolContext ctx) {
                UserDataDAO dao = ctx.getUserDataDAO();
                DetachedCriteria criteria = dao.getDetachedCriteria().add(Restrictions.in("email", emails))
                        .addOrder(Order.asc("login"));
                return dao.findByCriteria(criteria);
            }
        });
    }

    @Override
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.UserDataDAO.findByCriteria()

            @Override
            public List<UserData> processWithContext(ProcessToolContext ctx) {
                UserDataDAO dao = ctx.getUserDataDAO();
                DetachedCriteria criteria = dao.getDetachedCriteria().add(Restrictions.in("id", ids))
                        .addOrder(Order.asc("login"));
                return dao.findByCriteria(criteria);
            }
        });
    }

    @Override
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.UserDataDAO.findByCriteria()

                        .add(Restrictions.eq("key", key));
                if(values.length == 1)
                  criteria.add(Restrictions.eq("value", values[0]));
                else
                  criteria.add(Restrictions.in("value", values));
                return dao.findByCriteria(criteria);
            }
        });
    }

    @Override
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.UserDataDAO.findByCriteria()

                DetachedCriteria criteria = dao.getDetachedCriteria()
                        .setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY)
                        .addOrder(Order.asc("login"))
                        .createCriteria("attributes")
                        .add(Restrictions.in("key", key));
                return dao.findByCriteria(criteria);
            }
        });
    }

    @Override
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.dao.UserDataDAO.findByCriteria()

        return withContext(new ReturningProcessToolContextCallback<List<UserData>>() {
            @Override
            public List<UserData> processWithContext(ProcessToolContext ctx) {
                UserDataDAO dao = ctx.getUserDataDAO();
                DetachedCriteria criteria = configureAttributesJoinCriteria(dao.getDetachedCriteria(), attributeValues);
                return dao.findByCriteria(criteria);
            }
        });
    }

    protected DetachedCriteria configureAttributesJoinCriteria(DetachedCriteria root, Map<String, String> attributeValues) {
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.