TeiidImpl extends RelationalChildRestrictedObject implements Teiid, TeiidParent, EventManager { @Override public String getName() { UnitOfWork uow = null; try { uow = getOrCreateTransaction(); String name = getName(uow); commit(uow); return name; } catch (KException ex) { KEngine.getInstance().getErrorHandler().error(ex); if (uow != null) uow.rollback(); return null; } } TeiidImpl( final UnitOfWork uow,
                      final Repository repository,
                      final String path ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override TeiidInstance getTeiidInstance(TeiidVersion teiidVersion); @Override TeiidInstance getTeiidInstance(UnitOfWork uow); @Override QueryService getQueryService(UnitOfWork uow); @Override TeiidVersion getVersion( UnitOfWork uow ); @Override void setVersion(UnitOfWork uow, TeiidVersion version); @Override String getId( final UnitOfWork transaction ); @Override String getHost( UnitOfWork uow ); @Override void setHost(UnitOfWork uow, String host); @Override int getAdminPort( UnitOfWork uow ); @Override void setAdminPort( UnitOfWork uow, int port ); @Override String getAdminUser( UnitOfWork uow ); @Override void setAdminUser( UnitOfWork uow, String userName ); @Override String getAdminPassword( UnitOfWork uow ); @Override void setAdminPassword( UnitOfWork uow,
                                  String password ); @Override int getTypeId(); @Override boolean isAdminSecure( UnitOfWork uow ); @Override void setAdminSecure( UnitOfWork uow, boolean secure ); @Override int getJdbcPort( UnitOfWork uow ); @Override void setJdbcPort( UnitOfWork uow, int port ); @Override String getJdbcUsername( UnitOfWork uow ); @Override void setJdbcUsername( UnitOfWork uow, String userName ); @Override String getJdbcPassword( UnitOfWork uow ); @Override void setJdbcPassword( UnitOfWork uow, String password ); @Override boolean isJdbcSecure( UnitOfWork uow ); @Override void setJdbcSecure( UnitOfWork uow, boolean secure ); @Override boolean isConnected(UnitOfWork uow); @Override CachedTeiid importContent(UnitOfWork transaction); @Override boolean addListener( ExecutionConfigurationListener listener ); @Override void permitListeners( boolean enable ); @Override void notifyListeners( ExecutionConfigurationEvent event ); @Override boolean removeListener( ExecutionConfigurationListener listener ); @Override boolean isSound(); @Override String getHost(); @Override int getPort(); @Override Object getParentObject(); @Override String getId(); @Override String getName(); @Override String getUsername(); @Override String getPassword(); @Override boolean isSecure(); @Override EventManager getEventManager(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void shouldHaveId() throws Exception { assertThat( this.teiid.getName( getTransaction() ), is( TEIID_NAME ) ); }
@Test public void shouldHaveCorrectPrimaryType() throws Exception { assertThat( this.teiid.getPrimaryType( getTransaction() ).getName(), is( KomodoLexicon.Teiid.NODE_TYPE ) ); }