Class StringQuery

  • All Implemented Interfaces:
    org.springframework.orm.hibernate3.HibernateCallback

    public class StringQuery
    extends Query
    simple HQL query. Parameters are added as named parameters (Query.setParameter(java.lang.String, java.lang.Object). Parameters with a value of type Collection are added as Query.setParameterList(java.lang.String, java.util.Collection) No parsing is done until execution time.
    Since:
    OMERO 3.0
    • Field Detail

      • STRING

        public static final java.lang.String STRING
        parameter name for the definition of the HQL string.
        See Also:
        Constant Field Values
    • Constructor Detail

      • StringQuery

        public StringQuery​(ome.parameters.Parameters parameters)
        Default constructor, used primarily for testing. Leaves SqlAction field null preventing query rewriting.
      • StringQuery

        public StringQuery​(ome.util.SqlAction sql,
                           ome.parameters.Parameters parameters)
    • Method Detail

      • buildQuery

        protected void buildQuery​(org.hibernate.Session session)
                           throws org.hibernate.HibernateException,
                                  java.sql.SQLException
        Description copied from class: Query
        main point of entry for subclasses. This method must build either a Criteria or a Query instance and make it available via Query.setCriteria(org.hibernate.Criteria) or Query.setQuery(org.hibernate.Query)
        Specified by:
        buildQuery in class Query
        Throws:
        org.hibernate.HibernateException
        java.sql.SQLException