getCatalogService().commitCatalog( getCatalogManager().getSchemaCatalog() );
}
protected SchemaCatalogManager loadCatalogManager()
{
SchemaCatalog catalog = getCatalogService().openSchemaCatalog();
boolean performInit = catalog == null;
if( catalog == null )
catalog = getCatalogService().createSchemaCatalog( getDefaultProtocol(), getDefaultFormat() );
SchemaCatalogManager catalogManager = new SchemaCatalogManager( catalog );
catalogManager.setPlatformBroker( this );
if( performInit )
catalogManager.initializeNew(); // initialize defaults for a new catalog and root schema
if( !getName().equals( catalog.getPlatformName() ) )
throw new IllegalStateException( "catalog was initialized for: " + catalog.getPlatformName() + ", current running on platform: " + getName() );
// schema and tables beyond here are not persisted in the catalog
// they are transient to the session
// todo: wrap transient catalog data around persistent catalog data
if( getProperties().containsKey( SCHEMAS_PROP ) )