本文整理匯總了Java中org.pentaho.di.core.database.DatabaseMeta.getDatabaseInterface方法的典型用法代碼示例。如果您正苦於以下問題:Java DatabaseMeta.getDatabaseInterface方法的具體用法?Java DatabaseMeta.getDatabaseInterface怎麽用?Java DatabaseMeta.getDatabaseInterface使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.pentaho.di.core.database.DatabaseMeta
的用法示例。
在下文中一共展示了DatabaseMeta.getDatabaseInterface方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addDbConnectionInputs
import org.pentaho.di.core.database.DatabaseMeta; //導入方法依賴的package包/類
/**
* Adds db connection text boxes for input
* @return the last control specified
*/
protected Control addDbConnectionInputs() {
List<String> ibConnections = new ArrayList<String>();
for (DatabaseMeta dbMeta : transMeta.getDatabases()) {
if (dbMeta.getDatabaseInterface() instanceof IngresDatabaseMeta) {
ibConnections.add(dbMeta.getName());
}
}
serverConnection = addStandardSelect("Connection", wStepname, ibConnections.toArray(new String[ibConnections.size()]));
return serverConnection;
}
示例2: addDbConnectionInputs
import org.pentaho.di.core.database.DatabaseMeta; //導入方法依賴的package包/類
/**
* Adds db connection text boxes for input
* @return the last control specified
*/
protected Control addDbConnectionInputs() {
List<String> ibConnections = new ArrayList<String>();
for (DatabaseMeta dbMeta : transMeta.getDatabases()) {
if (dbMeta.getDatabaseInterface() instanceof MySQLDatabaseMeta || dbMeta.getDatabaseInterface() instanceof InfobrightDatabaseMeta) {
ibConnections.add(dbMeta.getName());
}
}
serverConnection = addStandardSelect(BaseMessages.getString(PKG, "InfobrightLoaderDialog.Connection.Label"), wStepname, ibConnections.toArray(new String[ibConnections.size()]));
return serverConnection;
}
示例3: selectSAPR3Databases
import org.pentaho.di.core.database.DatabaseMeta; //導入方法依賴的package包/類
/**
* Select the SAP ERP databases in the List of databases.
* @param databases All the databases
* @return SAP ERP databases in a List of databases.
*/
public static final List<DatabaseMeta> selectSAPR3Databases(List<DatabaseMeta> databases)
{
List<DatabaseMeta> sap = new ArrayList<DatabaseMeta>();
for (DatabaseMeta db : databases)
{
if (db.getDatabaseInterface() instanceof SAPR3DatabaseMeta) {
sap.add(db);
}
}
return sap;
}