private void createStyleRelationship ( String mappingTableName , String featureTable , String baseTable , String relatedTable ) { if ( ! hasStyleRelationship ( mappingTableName , baseTable , relatedTable ) ) { // Create the extension getOrCreate ( featureTable ) ; if ( baseTable . equals ( ContentsId . TABLE_NAME ) ) { if ( ! contentsId . has ( ) ) { contentsId . getOrCreateExtension ( ) ; } } StyleMappingTable mappingTable = new StyleMappingTable ( mappingTableName ) ; if ( relatedTable . equals ( StyleTable . TABLE_NAME ) ) { relatedTables . addAttributesRelationship ( baseTable , new StyleTable ( ) , mappingTable ) ; } else { relatedTables . addMediaRelationship ( baseTable , new IconTable ( ) , mappingTable ) ; } } }
Create a style extension relationship between a feature table and style extension table