org.pentaho.di.core.database.Database.getLookup()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(175)

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

Database.getLookup介绍

暂无

代码示例

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

  1. public Object[] getLookup( PreparedStatement ps ) throws KettleDatabaseException {
  2. // we assume this is external PreparedStatement and we may need to re-create rowMeta
  3. // so we just reset it to null and it will be re-created on processRow call
  4. rowMeta = null;
  5. return getLookup( ps, false );
  6. }

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

  1. public Object[] getLookup() throws KettleDatabaseException {
  2. return getLookup( prepStatementLookup, false );
  3. }

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

  1. public Object[] getLookup( boolean failOnMultipleResults, boolean lazyConversion ) throws KettleDatabaseException {
  2. return getLookup( prepStatementLookup, failOnMultipleResults, lazyConversion );
  3. }

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

  1. public Object[] getLookup( boolean failOnMultipleResults ) throws KettleDatabaseException {
  2. return getLookup( failOnMultipleResults, false );
  3. }

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

  1. public Object[] getLookup( PreparedStatement ps, boolean failOnMultipleResults ) throws KettleDatabaseException {
  2. return getLookup( ps, failOnMultipleResults, false );
  3. }

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

  1. @Override public RowMetaAndData call() throws Exception {
  2. Object[] lookup = database.getLookup( pstmt_entry_attributes );
  3. return new RowMetaAndData( database.getReturnRowMeta(), lookup );
  4. }
  5. } );

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

  1. @Override public RowMetaAndData call() throws Exception {
  2. Object[] r = database.getLookup( psJobAttributesLookup );
  3. if ( r == null ) {
  4. return null;
  5. }
  6. return new RowMetaAndData( database.getReturnRowMeta(), r );
  7. }
  8. } );

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

  1. @Override public RowMetaAndData call() throws Exception {
  2. Object[] lookup = database.getLookup( psStepAttributesLookup );
  3. return new RowMetaAndData( database.getReturnRowMeta(), lookup );
  4. }
  5. } );

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

  1. @Override public RowMetaAndData call() throws Exception {
  2. Object[] r = database.getLookup( psTransAttributesLookup );
  3. if ( r == null ) {
  4. return null;
  5. }
  6. return new RowMetaAndData( database.getReturnRowMeta(), r );
  7. }
  8. } );

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

  1. @Test
  2. public void mySqlVariantDbIsLazyConverted() throws Exception {
  3. DatabaseLookupMeta meta = createDatabaseMeta();
  4. DatabaseLookupData data = createDatabaseData();
  5. Database db = createVirtualDb( meta.getDatabaseMeta() );
  6. DatabaseLookup lookup = spyLookup( mockHelper, db, meta.getDatabaseMeta() );
  7. lookup.init( meta, data );
  8. lookup.processRow( meta, data );
  9. verify( db ).getLookup( any( PreparedStatement.class ), anyBoolean(), eq( false ) );
  10. }

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

  1. Database db = mock( Database.class );
  2. RowMeta returnRowMeta = new RowMeta();
  3. doReturn( new Object[] { new Timestamp( System.currentTimeMillis() ) } ).when( db ).getLookup(
  4. any( PreparedStatement.class ) );
  5. returnRowMeta.addValueMeta( new ValueMetaDate( "TimeStamp" ) );

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

  1. Database db = mock( Database.class );
  2. RowMeta returnRowMeta = new RowMeta();
  3. doReturn( new Object[] { new Timestamp( System.currentTimeMillis() ) } ).when( db ).getLookup(
  4. any( PreparedStatement.class ) );
  5. returnRowMeta.addValueMeta( new ValueMetaDate( "TimeStamp" ) );

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

  1. data.lookupParameterRowMeta.getString( lookupRow ) ) );
  2. Object[] add = data.db.getLookup( data.lookupStatement );
  3. incrementLinesInput();

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

  1. if ( val_key == null ) {
  2. data.db.setValues( data.lookupRowMeta, lookupRow, data.prepStatementLookup );
  3. Object[] add = data.db.getLookup( data.prepStatementLookup );
  4. incrementLinesInput();

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

  1. + data.lookupParameterRowMeta.getString( lookupRow ) );
  2. Object[] add = data.db.getLookup( data.prepStatementLookup );
  3. incrementLinesInput();

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

  1. returnRow = data.db.getLookup( data.prepStatementLookup );
  2. data.returnRowMeta = data.db.getReturnRowMeta();

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

  1. add = data.db.getLookup( meta.isFailingOnMultipleResults() );
  2. cache_now = true;

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

  1. .getString( lookupRow ), rowMeta.getString( row ) ) );
  2. add = data.db.getLookup( data.prepStatementLookup );
  3. returnRowMeta = data.db.getReturnRowMeta();
  4. } else {

相关文章