public boolean addSchema( String name, Protocol protocol, Format format, String identifier ) { if( childSchemas.containsKey( name ) ) return false; childSchemas.put( name, new SchemaDef( this, name, protocol, format, identifier ) ); return true; }
public void addTable( String name, String identifier, Stereotype<Protocol, Format> stereotype, Protocol protocol, Format format ) { if( childTables.containsKey( name ) ) throw new IllegalArgumentException( "table named: " + childTables.get( name ).getName() + " already exists in schema: " + getName() ); LOG.debug( "adding table: {}, to schema: {}", name, getName() ); childTables.put( name, new TableDef( this, name, identifier, stereotype, protocol, format ) ); }
public void addProviderDef( ProviderDef providerDef ) { if( providers.containsKey( providerDef.getName() ) ) throw new IllegalArgumentException( "provider named: " + providerDef.getName() + " already exists in schema: " + getName() ); LOG.debug( "adding provider: {}, to schema: {}", providerDef.toString(), getName() ); providers.put( providerDef.getName(), providerDef ); }