Package org.jboss.seam.solder.properties.query

Examples of org.jboss.seam.solder.properties.query.NamedPropertyCriteria


      }
      else
      {
         props = PropertyQueries.createQuery(targetClass)
            .addCriteria(new TypedPropertyCriteria(String.class))
            .addCriteria(new NamedPropertyCriteria(allowedNames))
            .getResultList();
        
         for (String name : allowedNames)
         {
            for (Property<Object> prop : props)
View Full Code Here


         }
         else
         {
            // Scan for a named identity property
            props = PropertyQueries.createQuery(credentialClass)
               .addCriteria(new NamedPropertyCriteria("identity", "identityObject"))
               .getResultList();
            if (!props.isEmpty())
            {
               modelProperties.put(PROPERTY_CREDENTIAL_IDENTITY, props.get(0));
            }
View Full Code Here

    @Override
    public List<E> findBy(E example, SingularAttribute<E, ?>... attributes) {
        String jpqlQuery = allQuery() + " where ";
        List<String> names = extractPropertyNames(attributes);
        List<Property<Object>> properties = PropertyQueries.createQuery(entityClass)
                .addCriteria(new NamedPropertyCriteria(names.toArray(new String[] {}))).getResultList();
        jpqlQuery += prepareWhere(properties);
        log.debugv("findBy: Created query {0}", jpqlQuery);
        TypedQuery<E> query = entityManager.createQuery(jpqlQuery, entityClass);
        addParameters(query, example, properties);
        return query.getResultList();
View Full Code Here

TOP

Related Classes of org.jboss.seam.solder.properties.query.NamedPropertyCriteria

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.