Package com.dotmarketing.exception

Examples of com.dotmarketing.exception.DotHibernateException


      Session session = getSession();
      if (id == null)
        return thisClass.newInstance();
      return session.get(thisClass, id);
    }catch (Exception e) {
      throw new DotHibernateException("Unable to get Object with id " + id + " from Hibernate Session ", e);
    }
  }
View Full Code Here


        sb.append("param " + i + " = " + query.getNamedParameters()[i]);
      }

    return sb.toString();
    }catch (Exception e) {
      throw new DotHibernateException("Unable to set Query ", e);
    }
  }
View Full Code Here

        forceDirtyObject.set(obj);
      Session session = getSession();
      session.save(obj);
      session.flush();
    }catch (Exception e) {
      throw new DotHibernateException("Unable to save Object to Hibernate Session ", e);
    }
    finally {
            forceDirtyObject.remove();
        }
  }
View Full Code Here

        forceDirtyObject.set(obj);
      Session session = getSession();
      session.saveOrUpdate(obj);
      session.flush();
    }catch (Exception e) {
      throw new DotHibernateException("Unable to save/update Object to Hibernate Session ", e);
    }
    finally {
        forceDirtyObject.remove();
    }
  }
View Full Code Here

        forceDirtyObject.set(obj);
      Session session = getSession();
      session.update(obj);
      session.flush();
    }catch (Exception e) {
      throw new DotHibernateException("Unable to update Object to Hibernate Session ", e);
    }
    finally {
            forceDirtyObject.remove();
        }
  }
View Full Code Here

        try {
            try {
                local = HibernateUtil.startLocalTransactionIfNeeded();
            } catch ( DotDataException e ) {
                Logger.error( this.getClass(), e.getMessage(), e );
                throw new DotHibernateException( "Unable to start a local transaction " + e.getMessage(), e );
            }

            r.setEditPermissions( true );
            r.setEditLayouts( true );
            r.setEditUsers( true );
View Full Code Here

      try{
        try {
          local = HibernateUtil.startLocalTransactionIfNeeded();
        } catch (DotDataException e1) {
          Logger.error(TemplateFactoryImpl.class,e1.getMessage(),e1);
          throw new DotHibernateException("Unable to start a local transaction " + e1.getMessage(), e1);
        }

        //Get one of the relations to get the container id.
        String containerIdentifier = containerStructureList.get(0).getContainerId();
View Full Code Here

TOP

Related Classes of com.dotmarketing.exception.DotHibernateException

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.