public String toString() { StringBuffer buff = new StringBuffer(); buff.append( "Node[" + id + "]: Table " ); if ( ( table != null ) && ( table.getPhysicalTable() != null ) ) { buff.append( table.getPhysicalTable().getName( "" ) ); } else if ( table != null ) { buff.append( table.getName( "" ) ); // Business Table } else { buff.append( "*null*" ); // Business } return buff.toString(); } }
public void setPhysicalTable( IPhysicalTable physicalTable ) { this.physicalTable = physicalTable; setName( physicalTable.getName( LocalizedString.DEFAULT_LOCALE ) ); availableFields = new ArrayList<AvailableField>(); populateAvailableFields(); }
public void changeColumn( String columnType ) { Object selectedTreeItem = getSelectedTreeItem(); if ( selectedTreeItem == null ) { return; } ColumnBackedNode selectedColumnBackedNode = (ColumnBackedNode) selectedTreeItem; // only restrict to a table if this node needs to & the node has siblings that might conflict when changing the // parent IPhysicalTable restrictedPhysicalTable = selectedColumnBackedNode.getTableRestriction(); if ( restrictedPhysicalTable == null ) { colController.show( workspace, selectedColumnBackedNode, columnType ); return; } AvailableTable restrictToTable = null; AvailableItemCollection availableTables = workspace.getAvailableTables(); String name = restrictedPhysicalTable.getName( getWorkspaceHelper().getLocale() ); restrictToTable = availableTables.findAvailableTable( name ); colController.show( workspace, selectedColumnBackedNode, columnType, restrictToTable ); }
tableIds.add( table.getId() ); String catName = BaseModelerWorkspaceHelper.getCleanCategoryName( table.getName( locale ), workspace, tableIds.size() );
businessTable.setName( new LocalizedString( locale, businessTable.getPhysicalTable().getName( locale ) ) );
"LC_" + ModelerWorkspace.toId( table.getPhysicalTable().getName( locale ) ) + "_" + ModelerWorkspace.toId( col.getPhysicalColumn().getId() ) + BaseModelerWorkspaceHelper.OLAP_SUFFIX;
"LC_" + toId( lTab.getPhysicalTable().getName( locale ) ) + "_" + toId( field.getPhysicalColumn().getId() );