net.sf.farrago.catalog
Class FarragoCatalogInit

java.lang.Object
  extended by net.sf.farrago.catalog.FarragoAbstractCatalogInit
      extended by net.sf.farrago.catalog.FarragoCatalogInit
All Implemented Interfaces:
EventListener, MDRChangeListener, MDRPreChangeListener

public class FarragoCatalogInit
extends FarragoAbstractCatalogInit

FarragoCatalogInit contains one-time persistent initialization procedures for the Farrago catalog.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/catalog/FarragoCatalogInit.java#27 $
Author:
John V. Sichi

Field Summary
static long DEFAULT_CONNECTION_TIMEOUT_MILLIS
          Default jdbc connection timeout in milliseconds
static int DEFAULT_FRESHMEN_PAGE_QUEUE_PERCENTAGE
          Default freshmen page queue percentage
static int DEFAULT_PAGE_HISTORY_QUEUE_PERCENTAGE
          Default page history queue percentage
static int DEFAULT_PREFETCH_PAGES_MAX
          Default maximum number of pages to prefetch
static int DEFAULT_PREFETCH_THROTTLE_RATE
          Default prefetch throttle rate
static String LOCALDB_CATALOG_NAME
          Reserved name for the local catalog.
static String PUBLIC_ROLE_NAME
          Reserved name for the public role.
static String SA_USER_NAME
          Reserved name for the system admin authorization user.
static String SYSBOOT_CATALOG_NAME
          Reserved name for the system boot catalog.
 
Fields inherited from class net.sf.farrago.catalog.FarragoAbstractCatalogInit
repos, SYSTEM_USER_NAME, tracer
 
Constructor Summary
FarragoCatalogInit(FarragoRepos repos)
           
 
Method Summary
private  void createSystemAuth()
           
private  void createSystemCatalogs()
           
static void createSystemObjects(FarragoRepos repos)
          Creates objects owned by the system.
private  void initCatalog()
           
 
Methods inherited from class net.sf.farrago.catalog.FarragoAbstractCatalogInit
change, changeCancelled, defineTypeAlias, plannedChange, publishObjects, updateSystemParameters, updateSystemTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSBOOT_CATALOG_NAME

public static final String SYSBOOT_CATALOG_NAME
Reserved name for the system boot catalog.

See Also:
Constant Field Values

LOCALDB_CATALOG_NAME

public static final String LOCALDB_CATALOG_NAME
Reserved name for the local catalog.

See Also:
Constant Field Values

PUBLIC_ROLE_NAME

public static final String PUBLIC_ROLE_NAME
Reserved name for the public role.

See Also:
Constant Field Values

SA_USER_NAME

public static final String SA_USER_NAME
Reserved name for the system admin authorization user. Note that this is intentionally lower-case to match the SQL Server convention.

See Also:
Constant Field Values

DEFAULT_CONNECTION_TIMEOUT_MILLIS

public static final long DEFAULT_CONNECTION_TIMEOUT_MILLIS
Default jdbc connection timeout in milliseconds

See Also:
Constant Field Values

DEFAULT_FRESHMEN_PAGE_QUEUE_PERCENTAGE

public static final int DEFAULT_FRESHMEN_PAGE_QUEUE_PERCENTAGE
Default freshmen page queue percentage

See Also:
Constant Field Values

DEFAULT_PAGE_HISTORY_QUEUE_PERCENTAGE

public static final int DEFAULT_PAGE_HISTORY_QUEUE_PERCENTAGE
Default page history queue percentage

See Also:
Constant Field Values

DEFAULT_PREFETCH_PAGES_MAX

public static final int DEFAULT_PREFETCH_PAGES_MAX
Default maximum number of pages to prefetch

See Also:
Constant Field Values

DEFAULT_PREFETCH_THROTTLE_RATE

public static final int DEFAULT_PREFETCH_THROTTLE_RATE
Default prefetch throttle rate

See Also:
Constant Field Values
Constructor Detail

FarragoCatalogInit

public FarragoCatalogInit(FarragoRepos repos)
Method Detail

createSystemObjects

public static void createSystemObjects(FarragoRepos repos)
Creates objects owned by the system. This is only done once during database creation.

Parameters:
repos - the repository in which to initialize the catalog

initCatalog

private void initCatalog()

createSystemCatalogs

private void createSystemCatalogs()

createSystemAuth

private void createSystemAuth()