Package cirrus.hibernate

Examples of cirrus.hibernate.Session.find()


        Session s = getHibernateSession(  );
        try
        {
            String oql = "FROM p IN CLASS " + Product.class + " WHERE" + " ( p.productId LIKE '%" + _keyword + "%' ) OR" + " ( p.name LIKE '%" + _keyword + "%' ) OR" + " ( p.description LIKE '%" + _keyword + "%' )";
            _products = s.find( oql );

            return SUCCESS;
        }
        finally
        {
View Full Code Here


            }
            catch ( ObjectNotFoundException o ) {}

            /* Make sure that the email is unique */
            String     oql = "FROM cst IN CLASS " + Customer.class + " WHERE cst.email=?";
            Collection col = s.find( oql, _customer.getEmail(  ), Hibernate.STRING );

            if ( col.size(  ) > 0 )
            {
                Customer c = ( Customer ) col.iterator(  ).next(  );

View Full Code Here

            String     oql;
            Collection col;
            if ( user != null )
            {
                oql = "FROM b IN CLASS " + BookmarkImpl.class.getName(  ) + " WHERE b.userId=? ORDER BY b.title";
                col = session.find( oql, user.getId(  ), Hibernate.STRING );
            }
            else
            {
                oql = "FROM b IN CLASS " + BookmarkImpl.class.getName(  ) + " WHERE b.userId IS NULL ORDER BY b.title";
                col = session.find( oql );
View Full Code Here

                col = session.find( oql, user.getId(  ), Hibernate.STRING );
            }
            else
            {
                oql = "FROM b IN CLASS " + BookmarkImpl.class.getName(  ) + " WHERE b.userId IS NULL ORDER BY b.title";
                col = session.find( oql );
            }

            if ( maxsize >= 0 )
            {
                ArrayList lst = new ArrayList(  );
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.