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

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

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

Database.getViews介绍

暂无

代码示例

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

public String[] getViews() throws KettleDatabaseException {
 return getViews( false );
}

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

public String[] getViews( boolean includeSchema ) throws KettleDatabaseException {
 return getViews( null, includeSchema );
}

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

setViews( db.getViews( databaseMeta.supportsSchemas() ) ); // legacy call
setViewMap( db.getViewMap() );

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

String[] viewNames = data.db.getViews( data.realSchemaName, meta.isAddSchemaInOut() );
String ObjectType = BaseMessages.getString( PKG, "GetTableNamesDialog.ObjectType.View" );
int nr = viewNames.length;

代码示例来源:origin: pentaho/data-access

public List<String> getDatabaseTables( IDatabaseConnection connection, String schema )
  throws DatasourceServiceException {
 try {
  DatabaseMeta databaseMeta = this.getDatabaseMeta( connection );
  Database database = new Database( null, databaseMeta );
  database.connect();
  String[] tableNames = database.getTablenames( schema, true,
    this.isDataServicesConnection( connection )
      ? new HashMap<String, String>() {{ put( "STREAMING", "N" ); }} : null );
  List<String> tables = new ArrayList<String>();
  tables.addAll( Arrays.asList( tableNames ) );
  tables.addAll( Arrays.asList( database.getViews( schema, true ) ) );
  database.disconnect();
  return tables;
 } catch ( KettleDatabaseException e ) {
  logger.error( "Error creating database object", e );
  throw new DatasourceServiceException( e );
 } catch ( ConnectionServiceException e ) {
  logger.error( "Error getting database meta", e );
  throw new DatasourceServiceException( e );
 }
}

相关文章

微信公众号

最新文章

更多