Package org.springframework.orm.hibernate3

Examples of org.springframework.orm.hibernate3.LocalRegionFactoryProxy


   *      java.lang.String)
   */
  public NokkelDriftProsjekteringV aggreagateYearWeek(
      final YearWeek currentYearWeek, final String productArea) {
    return (NokkelDriftProsjekteringV) getHibernateTemplate().execute(
        new HibernateCallback() {

          @SuppressWarnings("unchecked")
          public Object doInHibernate(Session session)
              throws HibernateException {
            String query = "select sum(nokkelDriftProsjekteringV.orderCount),"
View Full Code Here


        super(OrdchgrLineV.class);
    }

    @SuppressWarnings("unchecked")
  public List<OrdchgrLineV> getLines(final Integer ordNo, final List<Integer> lnNos) {
        return (List<OrdchgrLineV>) getHibernateTemplate().execute(new HibernateCallback() {

            public Object doInHibernate(final Session session) {

                return session.createCriteria(OrdchgrLineV.class).add(Restrictions.eq("ordchgrLineVPK.ordNo", ordNo)).add(
                        Restrictions.in("ordchgrLineVPK.lnNo", lnNos)).list();
View Full Code Here

  @SuppressWarnings("unchecked")
  private List<DeviationSumJobFunctionV> getAllProductAreaGroup(final Integer year,
      final JobFunction deviationFunction, final ProductAreaGroup productAreaGroup) {
    return (List<DeviationSumJobFunctionV>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(final Session session) {
            String query="select new DeviationSumJobFunctionV(''," +
                "                                         deviationSumJobFunctionVPK.registrationYear," +
                "                                         deviationSumJobFunctionVPK.registrationWeek," +
View Full Code Here

  @SuppressWarnings("unchecked")
  private List<DeviationSumJobFunctionV> getPerProductAreaGroup(
      final Integer year, final JobFunction deviationFunction,
      final ProductAreaGroup productAreaGroup) {
    return (List<DeviationSumJobFunctionV>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(final Session session) {
            return session
                .createCriteria(DeviationSumJobFunctionV.class)
                .add(
View Full Code Here

    @SuppressWarnings("unchecked")
    public final ProcentDone findByYearWeekOrder(final Integer year,
            final Integer week, final Order order) {
        return (ProcentDone) getHibernateTemplate().execute(
                new HibernateCallback() {

                    public Object doInHibernate(final Session session) {
                        List<ProcentDone> list = session.createCriteria(
                                ProcentDone.class).add(
                                Restrictions.eq("procentDoneYear", year)).add(
View Full Code Here

   * @see no.ugland.utransprod.dao.TaksteinSkarpnesVDAO#findByOrderNr(java.lang.String)
   */
  @SuppressWarnings("unchecked")
  public List<Produceable> findByOrderNr(final String orderNr) {
    return (List<Produceable>) getHibernateTemplate().execute(
        new HibernateCallback() {

          @SuppressWarnings("unchecked")
          public Object doInHibernate(Session session)
              throws HibernateException {
            return session.createCriteria(
View Full Code Here

   * @see no.ugland.utransprod.dao.TaksteinSkarpnesVDAO#findByCustomerNr(java.lang.Integer)
   */
  @SuppressWarnings("unchecked")
  public List<Produceable> findByCustomerNr(final Integer customerNr) {
    return (List<Produceable>) getHibernateTemplate().execute(
        new HibernateCallback() {

          @SuppressWarnings("unchecked")
          public Object doInHibernate(Session session)
              throws HibernateException {
            return session.createCriteria(TaksteinSkarpnesV.class)
View Full Code Here

  }

  public List<Produceable> findByCustomerNrAndProductAreaGroup(
      final Integer customerNr, final ProductAreaGroup productAreaGroup) {
    return (List<Produceable>) getHibernateTemplate().execute(
        new HibernateCallback() {

          @SuppressWarnings("unchecked")
          public Object doInHibernate(Session session)
              throws HibernateException {
            Criteria criteria= session.createCriteria(TaksteinSkarpnesV.class)
View Full Code Here

  }

  public List<Produceable> findByOrderNrAndProductAreaGroup(final String orderNr,
      final ProductAreaGroup productAreaGroup) {
    return (List<Produceable>) getHibernateTemplate().execute(
        new HibernateCallback() {

          @SuppressWarnings("unchecked")
          public Object doInHibernate(Session session)
              throws HibernateException {
            Criteria criteria= session.createCriteria(
View Full Code Here

  /**
   * @see no.ugland.utransprod.dao.ColliDAO#findByNameAndOrder(java.lang.String,
   *      no.ugland.utransprod.model.Order)
   */
  public Colli findByNameAndOrder(final String colliName, final Order order) {
    return (Colli) getHibernateTemplate().execute(new HibernateCallback() {

      @SuppressWarnings("unchecked")
      public Object doInHibernate(Session session)
          throws HibernateException {
        List<Colli> collies = session.createCriteria(Colli.class).add(
View Full Code Here

TOP

Related Classes of org.springframework.orm.hibernate3.LocalRegionFactoryProxy

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.