public void initialize( Domain domain ) throws ModelerException { SqlPhysicalModel model = (SqlPhysicalModel) domain.getPhysicalModels().get( 0 ); SqlPhysicalTable table = model.getPhysicalTables().get( 0 ); String targetTable = (String) table.getProperty( "target_table" ); //$NON-NLS-1$ if ( !StringUtils.isEmpty( targetTable ) ) { domain.setId( targetTable ); } this.databaseMeta = ThinModelConverter.convertToLegacy( model.getId(), model.getDatasource() ); }
public void success( String retVal ) { enableWaitCursor( false ); hideDialog(); model.getDomain().setId( retVal ); ModelerDialog.this.listener.onDialogAccept( model.getDomain() ); }
public void initialize( Domain domain ) throws ModelerException { SqlPhysicalModel model = (SqlPhysicalModel) domain.getPhysicalModels().get( 0 ); SqlPhysicalTable table = model.getPhysicalTables().get( 0 ); String targetTable = (String) table.getProperty( "target_table" ); if ( !StringUtils.isEmpty( targetTable ) ) { domain.setId( targetTable ); } this.databaseMeta = ThinModelConverter.convertToLegacy( model.getId(), model.getDatasource() ); this.tableName = table.getTargetTable(); this.schemaName = table.getTargetSchema(); if ( schemaName == null ) { schemaName = ""; } }
throw new DswPublishValidationException( DswPublishValidationException.Type.INVALID_XMI, e.getMessage() ); domain.setId( domainId ); if ( checkConnection ) { final String connectionId = getMondrianDatasourceWrapper( domain );
@Bindable public void setDatasourceName( String datasourceName ) { String previousVal = this.datasourceName; this.datasourceName = datasourceName; // if we're editing a generated or already defined domain, // we need to keep the datasource name in sync if ( domain != null ) { domain.setId( datasourceName ); LogicalModel model = domain.getLogicalModels().get( 0 ); String localeCode = domain.getLocales().get( 0 ).getCode(); model.getName().setString( localeCode, datasourceName ); } this.getModelInfo().setStageTableName( generateTableName() ); this.firePropertyChange( "datasourceName", previousVal, datasourceName ); //$NON-NLS-1$ validate(); }
this.generator.setTableNames( tableNames ); domain = this.generator.generateDomain(); domain.setId( datasourceName );
public Domain generateDomain( final ImportStrategy importStrategy ) throws PentahoMetadataException { Domain domain = new Domain(); domain.setId( modelName );
public void populateDomain( ModelerWorkspace model ) throws ModelerException { Domain domain = model.getDomain(); domain.setId( model.getModelName() );
domain.setLocales( locales ); domain.addLogicalModel( logicalModel ); domain.setId( modelName ); return domain;
domain.setId( tableName ); // replaced with user specified name later
domain.setLocales( locales ); domain.addLogicalModel( logicalModel ); domain.setId( modelName ); return domain;
domain.setId( schemaMeta.getDomainName() ); List<LocaleType> localeTypes = new ArrayList<LocaleType>();