protected void addTable( String schemaName, String tableName, String identifier, Fields fields, String protocolName, String formatName ) throws Exception
{
LingualConnection connection = (LingualConnection) getConnection();
SchemaCatalogManager catalogManager = connection.getPlatformBroker().getCatalogManager();
SchemaCatalog schemaCatalog = catalogManager.getSchemaCatalog();
if( !schemaCatalog.schemaExists( schemaName ) )
schemaCatalog.addSchemaDef( schemaName, Protocol.getProtocol( protocolName ), Format.getFormat( formatName ), null );
catalogManager.createTableDefFor( schemaName, tableName, identifier, fields, protocolName, formatName );
catalogManager.addSchemasTo( connection );
}