Package org.pentaho.platform.api.repository

Examples of org.pentaho.platform.api.repository.RepositoryException


      if ( session.isConnected() && session.isOpen() ) {
        session.disconnect();
      }
    } catch ( HibernateException ex ) {
      HibernateUtil.log.error( Messages.getInstance().getErrorString( "HIBUTIL.ERROR_0002_DISCONNECT" ), ex ); //$NON-NLS-1$
      throw new RepositoryException( Messages.getInstance().getErrorString( "HIBUTIL.ERROR_0002_DISCONNECT" ), ex ); //$NON-NLS-1$
    }
    return session;
  }
View Full Code Here


      RuntimeElement runtimeElement = (RuntimeElement) session.load( RuntimeElement.class, instId );
      runtimeElement.setAllowableAttributeNames( allowableReadAttributeNames );
      return runtimeElement;
    } catch ( HibernateException ex ) {
      error( Messages.getInstance().getErrorString( "RTREPO.ERROR_0001_LOAD_ELEMENT", instId ), ex ); //$NON-NLS-1$
      throw new RepositoryException(
          Messages.getInstance().getErrorString( "RTREPO.ERROR_0001_LOAD_ELEMENT", instId ), ex ); //$NON-NLS-1$
    }
  }
View Full Code Here

    if ( !transientOnly ) {
      try {
        session.save( re );
      } catch ( HibernateException ex ) {
        error( Messages.getInstance().getErrorString( "RTREPO.ERROR_0002_SAVING_ELEMENT" ), ex ); //$NON-NLS-1$
        throw new RepositoryException( Messages.getInstance().getErrorString( "RTREPO.ERROR_0002_SAVING_ELEMENT" ),
          ex );
      }
    }
    return re;
  }
View Full Code Here

    if ( !transientOnly ) {
      try {
        session.save( re );
      } catch ( HibernateException ex ) {
        error( Messages.getInstance().getErrorString( "RTREPO.ERROR_0003_SAVING_ELEMENT" ), ex ); //$NON-NLS-1$
        throw new RepositoryException( Messages.getInstance().getErrorString( "RTREPO.ERROR_0003_SAVING_ELEMENT" ), ex ); //$NON-NLS-1$
      }
    }
    return re;
  }
View Full Code Here

  protected void checkType( final String key, final String type, final boolean setIt ) {
    Map localTypesMap = getTypesMap();
    String curType = (String) localTypesMap.get( key );
    if ( curType != null ) {
      if ( !curType.equals( type ) ) {
        throw new RepositoryException( Messages.getInstance().getErrorString(
            "RTREPO.ERROR_0001_INVALIDTYPE", curType, type ) ); //$NON-NLS-1$
      }
    }
    if ( setIt ) {
      localTypesMap.put( key, type );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.repository.RepositoryException

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.