org.pentaho.di.repository.Repository.readTransSharedObjects()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.pentaho.di.repository.Repository.readTransSharedObjects方法的一些代码示例,展示了Repository.readTransSharedObjects的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.readTransSharedObjects方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:readTransSharedObjects

Repository.readTransSharedObjects介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

@Override
public SharedObjects readTransSharedObjects( TransMeta transMeta ) throws KettleException {
 return getDelegate().readTransSharedObjects( transMeta );
}

代码示例来源:origin: pentaho/pentaho-kettle

public synchronized void reloadTransformationRepositoryObjects( boolean includeActive ) {
 if ( spoon.rep != null ) {
  synchronizeTransformations( includeActive, transMeta -> {
   try {
    spoon.rep.readTransSharedObjects( transMeta );
   } catch ( KettleException e ) {
    logError( e );
   }
  } );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

/**
 * @deprecated is this ever used?
 * functionality seems covered in loadSessionInformation
 */
public void loadRepositoryObjects( TransMeta transMeta ) {
 // Load common database info from active repository...
 if ( rep != null ) {
  try {
   SharedObjects sharedObjects = rep.readTransSharedObjects( transMeta );
   sharedObjectsFileMap.put( sharedObjects.getFilename(), sharedObjects );
  } catch ( Exception e ) {
   new ErrorDialog(
    shell, BaseMessages.getString( PKG, "Spoon.Error.UnableToLoadSharedObjects.Title" ), BaseMessages
     .getString( PKG, "Spoon.Error.UnableToLoadSharedObjects.Message" ), e );
  }
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void clearSharedObjectCache() throws KettleException {
 if ( rep != null ) {
  rep.clearSharedObjectCache();
  TransMeta transMeta = getActiveTransformation();
  if ( transMeta != null ) {
   rep.readTransSharedObjects( transMeta );
  }
  JobMeta jobMeta = getActiveJob();
  if ( jobMeta != null ) {
   rep.readJobMetaSharedObjects( jobMeta );
  }
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

@Test
public void testTransSplitterReadsRep() throws KettleException {
 TransMeta meta = mock( TransMeta.class );
 Repository rep = mock( Repository.class );
 when( meta.getRepository() ).thenReturn( rep );
 TransMeta meta2 = mock( TransMeta.class );
 TransMetaFactory factory = mock( TransMetaFactory.class );
 when( factory.create( any( Node.class ), any( Repository.class ) ) ).thenReturn( meta2 );
 when( meta.getXML() ).thenReturn( "<transformation></transformation>" );
 try {
  new TransSplitter( meta, factory );
 } catch ( Exception e ) {
  // ignore
 }
 verify( rep, times( 1 ) ).readTransSharedObjects( meta2 );
}

代码示例来源:origin: pentaho/pentaho-kettle

try {
 SharedObjects sharedObjects =
  rep != null ? rep.readTransSharedObjects( transMeta ) : transMeta.readSharedObjects();
 spoon.sharedObjectsFileMap.put( sharedObjects.getFilename(), sharedObjects );
} catch ( KettleException e ) {

代码示例来源:origin: pentaho/pentaho-kettle

rep.readTransSharedObjects( this.originalTransformation );

代码示例来源:origin: pentaho/pentaho-kettle

repository != null ? repository.readTransSharedObjects( transMeta ) : transMeta.readSharedObjects();
 sharedObjectsFileMap.put( sharedObjects.getFilename(), sharedObjects );
} catch ( KettleException e ) {

代码示例来源:origin: pentaho/pentaho-kettle

rep != null ? rep.readTransSharedObjects( transMeta ) : transMeta.readSharedObjects();
sharedObjectsFileMap.put( sharedObjects.getFilename(), sharedObjects );
if ( rep == null ) {

代码示例来源:origin: pentaho/pentaho-kettle

sharedObjects = rep != null ? rep.readTransSharedObjects( this ) : readSharedObjects();
} catch ( Exception e ) {
 log

相关文章

Repository类方法