本文整理了Java中org.pentaho.di.core.database.Database.getViews()
方法的一些代码示例,展示了Database.getViews()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Database.getViews()
方法的具体详情如下:
包路径:org.pentaho.di.core.database.Database
类名称: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 );
}
}
内容来源于网络,如有侵权,请联系作者删除!