Example usage for org.hibernate Query subclass-usage

List of usage examples for org.hibernate Query subclass-usage

Introduction

In this page you can find the example usage for org.hibernate Query subclass-usage.

Usage

From source file ome.services.query.CollectionCountQueryDefinition.java

/**
 * counts the number of members in a collection. This query is used by the
 * {@link ome.api.IContainer IContainer} interface (possbly among others) to add
 * information to outgoing results.
 * 
 * @author Josh Moore, <a href="mailto:josh.moore@gmx.de">josh.moore@gmx.de</a>

From source file ome.services.query.IObjectClassQuery.java

/**
 * simple query subclass which uses the {@link ome.parameters.Parameters#CLASS}
 * parameter value to create a {@link org.hibernate.Criteria} and then adds
 * {@link org.hibernate.criterion.Expression} instances based on all other
 * parameter names.
 * <p>

From source file ome.services.query.PojosFindAnnotationsQueryDefinition.java

public class PojosFindAnnotationsQueryDefinition extends Query {

    static Definitions defs = new Definitions(new IdsQueryParameterDef(), new ClassQueryParameterDef(),
            new QueryParameterDef("annotatorIds", Collection.class, true));

    public PojosFindAnnotationsQueryDefinition(Parameters parameters) {

From source file ome.services.query.PojosGetImagesByOptionsQueryDefinition.java

public class PojosGetImagesByOptionsQueryDefinition extends Query {

    static Definitions defs = new Definitions();

    public PojosGetImagesByOptionsQueryDefinition(Parameters parameters) {
        super(defs, parameters);

From source file ome.services.query.PojosGetUserImagesQueryDefinition.java

public class PojosGetUserImagesQueryDefinition extends Query {

    static Definitions defs = new Definitions();

    public PojosGetUserImagesQueryDefinition(Parameters parameters) {
        super(defs, parameters);

From source file ome.services.query.PojosLoadHierarchyQueryDefinition.java

public class PojosLoadHierarchyQueryDefinition extends Query {

    static Definitions defs = new Definitions(new CollectionQueryParameterDef(Parameters.IDS, true, Long.class),
            new ClassQueryParameterDef());

    public PojosLoadHierarchyQueryDefinition(Parameters parameters) {

From source file ome.services.query.StringQuery.java

/**
 * simple HQL query. Parameters are added as named parameters ({@link org.hibernate.Query#setParameter(java.lang.String, java.lang.Object)}.
 * Parameters with a value of type {@link Collection} are added as
 * {@link org.hibernate.Query#setParameterList(java.lang.String, java.util.Collection)}
 * 
 * No parsing is done until execution time.