Examples of storeDomain()


Examples of org.pentaho.metadata.repository.IMetadataDomainRepository.storeDomain()

      Map<String, String> attributes = new HashMap<String, String>();
      attributes.put( "QUOTE_ALL_FIELDS", "Y" );
      ( (SqlPhysicalModel) domain4.getPhysicalModels().get( 0 ) ).getDatasource().setAttributes( attributes );

      domain4.setId( "MYSQL_DOMAIN" );
      repo.storeDomain( domain, true );
      repo.storeDomain( domain2, true );
      repo.storeDomain( domain3, true );
      repo.storeDomain( domain4, true );
    } catch ( Exception e ) {
      e.printStackTrace();
View Full Code Here

Examples of org.pentaho.metadata.repository.IMetadataDomainRepository.storeDomain()

      attributes.put( "QUOTE_ALL_FIELDS", "Y" );
      ( (SqlPhysicalModel) domain4.getPhysicalModels().get( 0 ) ).getDatasource().setAttributes( attributes );

      domain4.setId( "MYSQL_DOMAIN" );
      repo.storeDomain( domain, true );
      repo.storeDomain( domain2, true );
      repo.storeDomain( domain3, true );
      repo.storeDomain( domain4, true );
    } catch ( Exception e ) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.pentaho.metadata.repository.IMetadataDomainRepository.storeDomain()

      ( (SqlPhysicalModel) domain4.getPhysicalModels().get( 0 ) ).getDatasource().setAttributes( attributes );

      domain4.setId( "MYSQL_DOMAIN" );
      repo.storeDomain( domain, true );
      repo.storeDomain( domain2, true );
      repo.storeDomain( domain3, true );
      repo.storeDomain( domain4, true );
    } catch ( Exception e ) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.pentaho.metadata.repository.IMetadataDomainRepository.storeDomain()

      domain4.setId( "MYSQL_DOMAIN" );
      repo.storeDomain( domain, true );
      repo.storeDomain( domain2, true );
      repo.storeDomain( domain3, true );
      repo.storeDomain( domain4, true );
    } catch ( Exception e ) {
      e.printStackTrace();
    }

    // JNDI
View Full Code Here

Examples of org.pentaho.metadata.repository.InMemoryMetadataDomainRepository.storeDomain()

      {
        final InMemoryMetadataDomainRepository repo = new InMemoryMetadataDomainRepository();
        final XmiParser parser = new XmiParser();
        final Domain domain = parser.parseXmi(stream);
        domain.setId(domainId);
        repo.storeDomain(domain, true);
        return repo;
      }
      finally
      {
        stream.close();
View Full Code Here

Examples of org.pentaho.metadata.repository.InMemoryMetadataDomainRepository.storeDomain()

    {
      final InMemoryMetadataDomainRepository repo = new InMemoryMetadataDomainRepository();
      final XmiParser parser = new XmiParser();
      final Domain domain = parser.parseXmi(stream);
      domain.setId(String.valueOf(o));
      repo.storeDomain(domain, true);
      return new SimpleResource(key, repo, IMetadataDomainRepository.class, version);
    }
    catch (ResourceCreationException e)
    {
      throw e;
View Full Code Here

Examples of org.pentaho.metadata.repository.InMemoryMetadataDomainRepository.storeDomain()

          final List<AggregationType> list = new ArrayList<AggregationType>();
          list.add(AggregationType.SUM);
          list.add(AggregationType.AVERAGE);
          col.setAggregationList(list);
          domain.setId(domainId);
          repo.storeDomain(domain, true);
          return repo;
        }
        finally
        {
          stream.close();
View Full Code Here

Examples of org.pentaho.platform.plugin.services.metadata.SessionCachingMetadataDomainRepository.storeDomain()

    Set<String> ids = repo.getDomainIds();
    assertEquals( 0, ids.size() );
    assertEquals( 1, mock.getInvocationCount( "getDomainIds" ) ); //$NON-NLS-1$

    repo.storeDomain( getTestDomain( ID ), false );
    assertEquals( 0, PentahoSystem.getCacheManager( null ).getAllKeysFromRegionCache( CACHE_NAME ).size() );

    ids = repo.getDomainIds();
    assertEquals( 1, ids.size() );
    assertEquals( 2, mock.getInvocationCount( "getDomainIds" ) ); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.platform.plugin.services.metadata.SessionCachingMetadataDomainRepository.storeDomain()

    Set<String> ids = repo.getDomainIds();
    assertEquals( 0, ids.size() );
    assertEquals( 1, mock.getInvocationCount( "getDomainIds" ) ); //$NON-NLS-1$

    repo.storeDomain( getTestDomain( ID ), false );

    ids = repo.getDomainIds();
    assertEquals( 1, ids.size() );
    assertEquals( 2, mock.getInvocationCount( "getDomainIds" ) ); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.platform.plugin.services.metadata.SessionCachingMetadataDomainRepository.storeDomain()

    final String ID = "1"; //$NON-NLS-1$
    MockSessionAwareMetadataDomainRepository mock = new MockSessionAwareMetadataDomainRepository();

    SessionCachingMetadataDomainRepository repo = new SessionCachingMetadataDomainRepository( mock );
    PentahoSessionHolder.setSession( new StandaloneSession( "Standalone Session", "1" ) ); //$NON-NLS-1$ //$NON-NLS-2$
    repo.storeDomain( getTestDomain( ID ), false );

    repo.getDomain( ID );
    assertEquals( 1, PentahoSystem.getCacheManager( null ).getAllKeysFromRegionCache( CACHE_NAME ).size() );

    PentahoSessionHolder.setSession( new StandaloneSession( "Standalone Session", "2" ) ); //$NON-NLS-1$ //$NON-NLS-2$
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.