Package org.springframework.orm.hibernate3

Examples of org.springframework.orm.hibernate3.SessionFactoryUtils


    }*/

    public final void setInvoiceNr(final TransportCostBasis transportCostBasis,
            final String invoiceNr) {
        getHibernateTemplate().execute(new HibernateCallback() {

            public Object doInHibernate(final Session session) {
                String sql = "update OrderCost orderCost set invoiceNr=:invoiceNr "
                        + "          where orderCost.transportCostBasis = :transportCostBasis";
                session.createQuery(sql).setParameter("invoiceNr", invoiceNr)
View Full Code Here


    /**
     * @see no.ugland.utransprod.dao.DeviationSumVDAO#findByParams(no.ugland.utransprod.util.excel.ExcelReportSettingDeviation)
     */
    @SuppressWarnings("unchecked")
    public List<DeviationSumV> findByParams(final ExcelReportSettingDeviation params) {
        return (List<DeviationSumV>) getHibernateTemplate().execute(new HibernateCallback() {

            public Object doInHibernate(Session session) throws HibernateException {
                StringBuilder sql = new StringBuilder(
                        "select new DeviationSumV(deviationSumV.deviationSumVPK.jobFunctionName,"
                                + "                deviationSumV.deviationSumVPK.functionCategoryName,"
View Full Code Here

   * @see no.ugland.utransprod.dao.VeggProductionVDAO#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(VeggProductionV.class)
View Full Code Here

   * @see no.ugland.utransprod.dao.VeggProductionVDAO#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(VeggProductionV.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(VeggProductionV.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(VeggProductionV.class)
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  public List<SumAvvikV> findByProductAreaYearAndMonth(final Integer year,
      final Integer month, final String productArea) {
    return (List<SumAvvikV>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(Session session)
              throws HibernateException {

            String sql = "select new SumAvvikV(sumAvvikV.sumAvvikVPK.registrationYear,"
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  public List<SumAvvikV> findSumByProductAreaYearAndMonth(final Integer year,
      final Integer month, final String productArea) {
    return (List<SumAvvikV>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(Session session)
              throws HibernateException {

            String sql = "select new SumAvvikV(sumAvvikV.sumAvvikVPK.registrationYear,"
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  public List<SumAvvikV> findByProductAreaYearAndMonthWithClosed(
      final Integer year, final Integer month, final String productArea) {
    return (List<SumAvvikV>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(Session session)
              throws HibernateException {

            String sql = "select new SumAvvikV(sumAvvikV.sumAvvikVPK.registrationYear,"
View Full Code Here

  @SuppressWarnings("unchecked")
  public List<NokkelDriftProsjekteringV> findBetweenYearWeek(
      final YearWeek fromYearWeek, final YearWeek toYearWeek,
      final String productArea) {
    return (List<NokkelDriftProsjekteringV>) getHibernateTemplate()
        .execute(new HibernateCallback() {

          public Object doInHibernate(Session session)
              throws HibernateException {
            String query = "select nokkelDriftProsjekteringV "
                + "      from NokkelDriftProsjekteringV nokkelDriftProsjekteringV "
View Full Code Here

TOP

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

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.