# Catalog

###### Identifier:

org.eclipse.datatools.connectivity.sqm.core.Catalog

###### Since:

0.7

###### Description:

Provides a catalog loader and/or override catalog loader.

###### Configuration Markup:

<!ELEMENT extension (catalog | overrideLoader+)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

<!ELEMENT catalog EMPTY>

<!ATTLIST catalog

product CDATA #REQUIRED

version CDATA #REQUIRED

provider CDATA #REQUIRED

priority CDATA #IMPLIED>

- product - Vendor name for the db definition.
- version - Version name for the db definition.
- provider - Providers must implement org.eclipse.datatools.connectivity.sqm.core.rte.ICatalogProvider.
- priority - The priority range is from 0 to 2147483647. The default is 0.

<!ELEMENT overrideLoader EMPTY>

<!ATTLIST overrideLoader

product CDATA #REQUIRED

version CDATA #REQUIRED

provider CDATA #REQUIRED

eclass CDATA #REQUIRED>

The overrideLoader extension allows implementers to override the catalog loader for a particular level of the JDBC SQL model. This only applies when the default JDBCobject and JDBC catalog loaders are being used in the framework.

Implementers can specify a replacement catalog loader for a particular DB definition/eclass combination.

Catalog loader classes need to extend JDBCBaseLoader and should really extend the particular level of loader class from the framework. For instance, if replacing the schema loader, the class should extend JDBCSchemaLoader. The loader also must implement a zero-argument constructor. Just pass in a null to the default constructor of the extended loader class. The catalog object will be set at an appropriate time when needed.

- product - Vendor name for the db definition.
- version - Version name for the db definition.
- provider - Catalog loader provider class. Should extend JDBCBaseLoader or one of the other default JDBC loaders and implement a zero-argument constructor.
- eclass - Eclass name to indicate which level of the model we're overriding the loader for. Should correspond to an interface name from the SQL model, i.e. Schema, Catalog, Routine, etc.

Copyright 2005, 2007 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html