/** * this method is used to create a DBCatalogRepNode. And Sybase is a specal case because we don't * create schema level when the version of stdio is lower than 5.0.0.So we will create * DBSybaseCatalogRepNode to deal with this special case * * @param viewObject * @param parent parent of repositoryNode * @param type * @return */ public static RepositoryNode createDBCatalogRepNode( IRepositoryViewObject viewObject, RepositoryNode parent, ENodeType type, org.talend.core.model.general.Project inWhichProject) { Item databaseItem = viewObject.getProperty().getItem(); DatabaseConnection dbConnection = (DatabaseConnection) ((DatabaseConnectionItem) databaseItem).getConnection(); SupportDBUrlType dbTypeByKey = SupportDBUrlType.getDBTypeByKey(dbConnection.getDatabaseType()); switch (dbTypeByKey) { case SYBASEDEFAULTURL: return new DBSybaseCatalogRepNode(viewObject, parent, type, inWhichProject); default: return new DBCatalogRepNode(viewObject, parent, type, inWhichProject); } }