# Database Definition

###### Identifier:

org.eclipse.datatools.connectivity.sqm.core.databaseDefinition

###### Since:

0.7

###### Description:

Provides a database definition. The data definition, which must implement the `org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition` interface, can be used to obtain meta-information about the database of given type and version, and can also be used to obtain a data model element factory, as contributed by the `org.eclipse.datatools.connectivity.sqm.core.dataModelElementFactory` extension point.

###### Configuration Markup:

<!ELEMENT extension (definition+)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

<!ELEMENT definition EMPTY>

<!ATTLIST definition

description CDATA #IMPLIED

product CDATA #REQUIRED

version CDATA #REQUIRED

previous CDATA #IMPLIED

allowsConnections (true | false)

productDisplayString CDATA #REQUIRED

versionDisplayString CDATA #REQUIRED

file CDATA #REQUIRED>

- description - A description of the database definition.
- product - Vendor name for the db definition.
- version - Version name for the db definition.
- previous - This attribute should be deprecated. It is never loaded by the code.
- allowsConnections - This method should be deprecated. It is left over from WTP and does not make sense in DTP.
- productDisplayString - A string suitable for display to users for product. See product attribute.
- versionDisplayString - A string suitable for display to users for version. See version attribute.
- file - The location of the instance of the database definition model file. The path is relative to the root of the plug-in.

###### API Information:

Use the `org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinitionRegistry` instance to obtain the database definition.

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