/*******************************************************************************
* Copyright (c) 2007, 2009 Borland Software 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
*
* Contributors:
* Borland Software Corporation - initial API and implementation
*******************************************************************************/
package rdb;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
*
* The Package for the model.
* It contains accessors for the meta objects to represent
*
* - each class,
* - each feature of each class,
* - each enum,
* - and each data type
*
*
* @see rdb.RdbFactory
* @model kind="package"
* @generated
*/
public interface RdbPackage extends EPackage {
/**
* The package name.
*
*
* @generated
*/
String eNAME = "rdb"; //$NON-NLS-1$
/**
* The package namespace URI.
*
*
* @generated
*/
String eNS_URI = "http://www.eclipse.org/qvt/1.0.0/Operational/examples/rdb"; //$NON-NLS-1$
/**
* The package namespace name.
*
*
* @generated
*/
String eNS_PREFIX = "rdb"; //$NON-NLS-1$
/**
* The singleton instance of the package.
*
*
* @generated
*/
RdbPackage eINSTANCE = rdb.impl.RdbPackageImpl.init();
/**
* The meta object id for the '{@link rdb.impl.ElementImpl Element}' class.
*
*
* @see rdb.impl.ElementImpl
* @see rdb.impl.RdbPackageImpl#getElement()
* @generated
*/
int ELEMENT = 0;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int ELEMENT__PARENT = 0;
/**
* The number of structural features of the 'Element' class.
*
*
* @generated
* @ordered
*/
int ELEMENT_FEATURE_COUNT = 1;
/**
* The meta object id for the '{@link rdb.impl.NamedElementImpl Named Element}' class.
*
*
* @see rdb.impl.NamedElementImpl
* @see rdb.impl.RdbPackageImpl#getNamedElement()
* @generated
*/
int NAMED_ELEMENT = 2;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int NAMED_ELEMENT__PARENT = ELEMENT__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int NAMED_ELEMENT__NAME = ELEMENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the 'Named Element' class.
*
*
* @generated
* @ordered
*/
int NAMED_ELEMENT_FEATURE_COUNT = ELEMENT_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link rdb.impl.SchemaElementImpl Schema Element}' class.
*
*
* @see rdb.impl.SchemaElementImpl
* @see rdb.impl.RdbPackageImpl#getSchemaElement()
* @generated
*/
int SCHEMA_ELEMENT = 5;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int SCHEMA_ELEMENT__PARENT = NAMED_ELEMENT__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int SCHEMA_ELEMENT__NAME = NAMED_ELEMENT__NAME;
/**
* The feature id for the 'Owner' attribute.
*
*
* @generated
* @ordered
*/
int SCHEMA_ELEMENT__OWNER = NAMED_ELEMENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the 'Schema Element' class.
*
*
* @generated
* @ordered
*/
int SCHEMA_ELEMENT_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link rdb.impl.NamedColumnSetImpl Named Column Set}' class.
*
*
* @see rdb.impl.NamedColumnSetImpl
* @see rdb.impl.RdbPackageImpl#getNamedColumnSet()
* @generated
*/
int NAMED_COLUMN_SET = 1;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int NAMED_COLUMN_SET__PARENT = SCHEMA_ELEMENT__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int NAMED_COLUMN_SET__NAME = SCHEMA_ELEMENT__NAME;
/**
* The feature id for the 'Owner' attribute.
*
*
* @generated
* @ordered
*/
int NAMED_COLUMN_SET__OWNER = SCHEMA_ELEMENT__OWNER;
/**
* The number of structural features of the 'Named Column Set' class.
*
*
* @generated
* @ordered
*/
int NAMED_COLUMN_SET_FEATURE_COUNT = SCHEMA_ELEMENT_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link rdb.impl.ModelImpl Model}' class.
*
*
* @see rdb.impl.ModelImpl
* @see rdb.impl.RdbPackageImpl#getModel()
* @generated
*/
int MODEL = 3;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int MODEL__PARENT = NAMED_ELEMENT__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int MODEL__NAME = NAMED_ELEMENT__NAME;
/**
* The feature id for the 'Schemas' containment reference list.
*
*
* @generated
* @ordered
*/
int MODEL__SCHEMAS = NAMED_ELEMENT_FEATURE_COUNT + 0;
/**
* The feature id for the 'Server id' attribute.
*
*
* @generated
* @ordered
*/
int MODEL__SERVER_ID = NAMED_ELEMENT_FEATURE_COUNT + 1;
/**
* The number of structural features of the 'Model' class.
*
*
* @generated
* @ordered
*/
int MODEL_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link rdb.impl.SchemaImpl Schema}' class.
*
*
* @see rdb.impl.SchemaImpl
* @see rdb.impl.RdbPackageImpl#getSchema()
* @generated
*/
int SCHEMA = 4;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int SCHEMA__PARENT = NAMED_ELEMENT__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int SCHEMA__NAME = NAMED_ELEMENT__NAME;
/**
* The feature id for the 'Elements' containment reference list.
*
*
* @generated
* @ordered
*/
int SCHEMA__ELEMENTS = NAMED_ELEMENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the 'Schema' class.
*
*
* @generated
* @ordered
*/
int SCHEMA_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 1;
/**
* The meta object id for the '{@link rdb.impl.TableImpl Table}' class.
*
*
* @see rdb.impl.TableImpl
* @see rdb.impl.RdbPackageImpl#getTable()
* @generated
*/
int TABLE = 6;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int TABLE__PARENT = NAMED_COLUMN_SET__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int TABLE__NAME = NAMED_COLUMN_SET__NAME;
/**
* The feature id for the 'Owner' attribute.
*
*
* @generated
* @ordered
*/
int TABLE__OWNER = NAMED_COLUMN_SET__OWNER;
/**
* The feature id for the 'Columns' containment reference list.
*
*
* @generated
* @ordered
*/
int TABLE__COLUMNS = NAMED_COLUMN_SET_FEATURE_COUNT + 0;
/**
* The feature id for the 'Primary Key' containment reference.
*
*
* @generated
* @ordered
*/
int TABLE__PRIMARY_KEY = NAMED_COLUMN_SET_FEATURE_COUNT + 1;
/**
* The feature id for the 'Unique Constraints' containment reference list.
*
*
* @generated
* @ordered
*/
int TABLE__UNIQUE_CONSTRAINTS = NAMED_COLUMN_SET_FEATURE_COUNT + 2;
/**
* The feature id for the 'Foreign Keys' containment reference list.
*
*
* @generated
* @ordered
*/
int TABLE__FOREIGN_KEYS = NAMED_COLUMN_SET_FEATURE_COUNT + 3;
/**
* The feature id for the 'Indices' containment reference list.
*
*
* @generated
* @ordered
*/
int TABLE__INDICES = NAMED_COLUMN_SET_FEATURE_COUNT + 4;
/**
* The feature id for the 'Checks' containment reference list.
*
*
* @generated
* @ordered
*/
int TABLE__CHECKS = NAMED_COLUMN_SET_FEATURE_COUNT + 5;
/**
* The number of structural features of the 'Table' class.
*
*
* @generated
* @ordered
*/
int TABLE_FEATURE_COUNT = NAMED_COLUMN_SET_FEATURE_COUNT + 6;
/**
* The meta object id for the '{@link rdb.impl.ColumnImpl Column}' class.
*
*
* @see rdb.impl.ColumnImpl
* @see rdb.impl.RdbPackageImpl#getColumn()
* @generated
*/
int COLUMN = 7;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int COLUMN__PARENT = NAMED_ELEMENT__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int COLUMN__NAME = NAMED_ELEMENT__NAME;
/**
* The number of structural features of the 'Column' class.
*
*
* @generated
* @ordered
*/
int COLUMN_FEATURE_COUNT = NAMED_ELEMENT_FEATURE_COUNT + 0;
/**
* The meta object id for the '{@link rdb.impl.TableColumnImpl Table Column}' class.
*
*
* @see rdb.impl.TableColumnImpl
* @see rdb.impl.RdbPackageImpl#getTableColumn()
* @generated
*/
int TABLE_COLUMN = 8;
/**
* The feature id for the 'Parent' reference.
*
*
* @generated
* @ordered
*/
int TABLE_COLUMN__PARENT = COLUMN__PARENT;
/**
* The feature id for the 'Name' attribute.
*
*
* @generated
* @ordered
*/
int TABLE_COLUMN__NAME = COLUMN__NAME;
/**
* The feature id for the 'Domain' reference.
*
*
* @generated
* @ordered
*/
int TABLE_COLUMN__DOMAIN = COLUMN_FEATURE_COUNT + 0;
/**
* The feature id for the 'Type' containment reference.
*
*
* @generated
* @ordered
*/
int TABLE_COLUMN__TYPE = COLUMN_FEATURE_COUNT + 1;
/**
* The feature id for the 'Is Primary Key' attribute.
*
*
* @generated
* @ordered
*/
int TABLE_COLUMN__IS_PRIMARY_KEY = COLUMN_FEATURE_COUNT + 2;
/**
* The feature id for the 'Is Foreign Key' attribute.
*
*
* @generated
* @ordered
*/
int TABLE_COLUMN__IS_FOREIGN_KEY = COLUMN_FEATURE_COUNT + 3;
/**
* The number of structural features of the 'Table Column' class.
*
*
* @generated
* @ordered
*/
int TABLE_COLUMN_FEATURE_COUNT = COLUMN_FEATURE_COUNT + 4;
/**
* Returns the meta object for class '{@link rdb.Element Element}'.
*
*
* @return the meta object for class 'Element'.
* @see rdb.Element
* @generated
*/
EClass getElement();
/**
* Returns the meta object for the reference '{@link rdb.Element#getParent Parent}'.
*
*
* @return the meta object for the reference 'Parent'.
* @see rdb.Element#getParent()
* @see #getElement()
* @generated
*/
EReference getElement_Parent();
/**
* Returns the meta object for class '{@link rdb.NamedColumnSet Named Column Set}'.
*
*
* @return the meta object for class 'Named Column Set'.
* @see rdb.NamedColumnSet
* @generated
*/
EClass getNamedColumnSet();
/**
* Returns the meta object for class '{@link rdb.NamedElement Named Element}'.
*
*
* @return the meta object for class 'Named Element'.
* @see rdb.NamedElement
* @generated
*/
EClass getNamedElement();
/**
* Returns the meta object for the attribute '{@link rdb.NamedElement#getName Name}'.
*
*
* @return the meta object for the attribute 'Name'.
* @see rdb.NamedElement#getName()
* @see #getNamedElement()
* @generated
*/
EAttribute getNamedElement_Name();
/**
* Returns the meta object for class '{@link rdb.Model Model}'.
*
*
* @return the meta object for class 'Model'.
* @see rdb.Model
* @generated
*/
EClass getModel();
/**
* Returns the meta object for the containment reference list '{@link rdb.Model#getSchemas Schemas}'.
*
*
* @return the meta object for the containment reference list 'Schemas'.
* @see rdb.Model#getSchemas()
* @see #getModel()
* @generated
*/
EReference getModel_Schemas();
/**
* Returns the meta object for the attribute '{@link rdb.Model#getServer_id Server id}'.
*
*
* @return the meta object for the attribute 'Server id'.
* @see rdb.Model#getServer_id()
* @see #getModel()
* @generated
*/
EAttribute getModel_Server_id();
/**
* Returns the meta object for class '{@link rdb.Schema Schema}'.
*
*
* @return the meta object for class 'Schema'.
* @see rdb.Schema
* @generated
*/
EClass getSchema();
/**
* Returns the meta object for the containment reference list '{@link rdb.Schema#getElements Elements}'.
*
*
* @return the meta object for the containment reference list 'Elements'.
* @see rdb.Schema#getElements()
* @see #getSchema()
* @generated
*/
EReference getSchema_Elements();
/**
* Returns the meta object for class '{@link rdb.SchemaElement Schema Element}'.
*
*
* @return the meta object for class 'Schema Element'.
* @see rdb.SchemaElement
* @generated
*/
EClass getSchemaElement();
/**
* Returns the meta object for the attribute '{@link rdb.SchemaElement#getOwner Owner}'.
*
*
* @return the meta object for the attribute 'Owner'.
* @see rdb.SchemaElement#getOwner()
* @see #getSchemaElement()
* @generated
*/
EAttribute getSchemaElement_Owner();
/**
* Returns the meta object for class '{@link rdb.Table Table}'.
*
*
* @return the meta object for class 'Table'.
* @see rdb.Table
* @generated
*/
EClass getTable();
/**
* Returns the meta object for the containment reference list '{@link rdb.Table#getColumns Columns}'.
*
*
* @return the meta object for the containment reference list 'Columns'.
* @see rdb.Table#getColumns()
* @see #getTable()
* @generated
*/
EReference getTable_Columns();
/**
* Returns the meta object for the containment reference '{@link rdb.Table#getPrimaryKey Primary Key}'.
*
*
* @return the meta object for the containment reference 'Primary Key'.
* @see rdb.Table#getPrimaryKey()
* @see #getTable()
* @generated
*/
EReference getTable_PrimaryKey();
/**
* Returns the meta object for the containment reference list '{@link rdb.Table#getUniqueConstraints Unique Constraints}'.
*
*
* @return the meta object for the containment reference list 'Unique Constraints'.
* @see rdb.Table#getUniqueConstraints()
* @see #getTable()
* @generated
*/
EReference getTable_UniqueConstraints();
/**
* Returns the meta object for the containment reference list '{@link rdb.Table#getForeignKeys Foreign Keys}'.
*
*
* @return the meta object for the containment reference list 'Foreign Keys'.
* @see rdb.Table#getForeignKeys()
* @see #getTable()
* @generated
*/
EReference getTable_ForeignKeys();
/**
* Returns the meta object for the containment reference list '{@link rdb.Table#getIndices Indices}'.
*
*
* @return the meta object for the containment reference list 'Indices'.
* @see rdb.Table#getIndices()
* @see #getTable()
* @generated
*/
EReference getTable_Indices();
/**
* Returns the meta object for the containment reference list '{@link rdb.Table#getChecks Checks}'.
*
*
* @return the meta object for the containment reference list 'Checks'.
* @see rdb.Table#getChecks()
* @see #getTable()
* @generated
*/
EReference getTable_Checks();
/**
* Returns the meta object for class '{@link rdb.Column Column}'.
*
*
* @return the meta object for class 'Column'.
* @see rdb.Column
* @generated
*/
EClass getColumn();
/**
* Returns the meta object for class '{@link rdb.TableColumn Table Column}'.
*
*
* @return the meta object for class 'Table Column'.
* @see rdb.TableColumn
* @generated
*/
EClass getTableColumn();
/**
* Returns the meta object for the reference '{@link rdb.TableColumn#getDomain Domain}'.
*
*
* @return the meta object for the reference 'Domain'.
* @see rdb.TableColumn#getDomain()
* @see #getTableColumn()
* @generated
*/
EReference getTableColumn_Domain();
/**
* Returns the meta object for the containment reference '{@link rdb.TableColumn#getType Type}'.
*
*
* @return the meta object for the containment reference 'Type'.
* @see rdb.TableColumn#getType()
* @see #getTableColumn()
* @generated
*/
EReference getTableColumn_Type();
/**
* Returns the meta object for the attribute '{@link rdb.TableColumn#getIsPrimaryKey Is Primary Key}'.
*
*
* @return the meta object for the attribute 'Is Primary Key'.
* @see rdb.TableColumn#getIsPrimaryKey()
* @see #getTableColumn()
* @generated
*/
EAttribute getTableColumn_IsPrimaryKey();
/**
* Returns the meta object for the attribute '{@link rdb.TableColumn#getIsForeignKey Is Foreign Key}'.
*
*
* @return the meta object for the attribute 'Is Foreign Key'.
* @see rdb.TableColumn#getIsForeignKey()
* @see #getTableColumn()
* @generated
*/
EAttribute getTableColumn_IsForeignKey();
/**
* Returns the factory that creates the instances of the model.
*
*
* @return the factory that creates the instances of the model.
* @generated
*/
RdbFactory getRdbFactory();
/**
*
* Defines literals for the meta objects that represent
*
* - each class,
* - each feature of each class,
* - each enum,
* - and each data type
*
*
* @generated
*/
interface Literals {
/**
* The meta object literal for the '{@link rdb.impl.ElementImpl Element}' class.
*
*
* @see rdb.impl.ElementImpl
* @see rdb.impl.RdbPackageImpl#getElement()
* @generated
*/
EClass ELEMENT = eINSTANCE.getElement();
/**
* The meta object literal for the 'Parent' reference feature.
*
*
* @generated
*/
EReference ELEMENT__PARENT = eINSTANCE.getElement_Parent();
/**
* The meta object literal for the '{@link rdb.impl.NamedColumnSetImpl Named Column Set}' class.
*
*
* @see rdb.impl.NamedColumnSetImpl
* @see rdb.impl.RdbPackageImpl#getNamedColumnSet()
* @generated
*/
EClass NAMED_COLUMN_SET = eINSTANCE.getNamedColumnSet();
/**
* The meta object literal for the '{@link rdb.impl.NamedElementImpl Named Element}' class.
*
*
* @see rdb.impl.NamedElementImpl
* @see rdb.impl.RdbPackageImpl#getNamedElement()
* @generated
*/
EClass NAMED_ELEMENT = eINSTANCE.getNamedElement();
/**
* The meta object literal for the 'Name' attribute feature.
*
*
* @generated
*/
EAttribute NAMED_ELEMENT__NAME = eINSTANCE.getNamedElement_Name();
/**
* The meta object literal for the '{@link rdb.impl.ModelImpl Model}' class.
*
*
* @see rdb.impl.ModelImpl
* @see rdb.impl.RdbPackageImpl#getModel()
* @generated
*/
EClass MODEL = eINSTANCE.getModel();
/**
* The meta object literal for the 'Schemas' containment reference list feature.
*
*
* @generated
*/
EReference MODEL__SCHEMAS = eINSTANCE.getModel_Schemas();
/**
* The meta object literal for the 'Server id' attribute feature.
*
*
* @generated
*/
EAttribute MODEL__SERVER_ID = eINSTANCE.getModel_Server_id();
/**
* The meta object literal for the '{@link rdb.impl.SchemaImpl Schema}' class.
*
*
* @see rdb.impl.SchemaImpl
* @see rdb.impl.RdbPackageImpl#getSchema()
* @generated
*/
EClass SCHEMA = eINSTANCE.getSchema();
/**
* The meta object literal for the 'Elements' containment reference list feature.
*
*
* @generated
*/
EReference SCHEMA__ELEMENTS = eINSTANCE.getSchema_Elements();
/**
* The meta object literal for the '{@link rdb.impl.SchemaElementImpl Schema Element}' class.
*
*
* @see rdb.impl.SchemaElementImpl
* @see rdb.impl.RdbPackageImpl#getSchemaElement()
* @generated
*/
EClass SCHEMA_ELEMENT = eINSTANCE.getSchemaElement();
/**
* The meta object literal for the 'Owner' attribute feature.
*
*
* @generated
*/
EAttribute SCHEMA_ELEMENT__OWNER = eINSTANCE.getSchemaElement_Owner();
/**
* The meta object literal for the '{@link rdb.impl.TableImpl Table}' class.
*
*
* @see rdb.impl.TableImpl
* @see rdb.impl.RdbPackageImpl#getTable()
* @generated
*/
EClass TABLE = eINSTANCE.getTable();
/**
* The meta object literal for the 'Columns' containment reference list feature.
*
*
* @generated
*/
EReference TABLE__COLUMNS = eINSTANCE.getTable_Columns();
/**
* The meta object literal for the 'Primary Key' containment reference feature.
*
*
* @generated
*/
EReference TABLE__PRIMARY_KEY = eINSTANCE.getTable_PrimaryKey();
/**
* The meta object literal for the 'Unique Constraints' containment reference list feature.
*
*
* @generated
*/
EReference TABLE__UNIQUE_CONSTRAINTS = eINSTANCE.getTable_UniqueConstraints();
/**
* The meta object literal for the 'Foreign Keys' containment reference list feature.
*
*
* @generated
*/
EReference TABLE__FOREIGN_KEYS = eINSTANCE.getTable_ForeignKeys();
/**
* The meta object literal for the 'Indices' containment reference list feature.
*
*
* @generated
*/
EReference TABLE__INDICES = eINSTANCE.getTable_Indices();
/**
* The meta object literal for the 'Checks' containment reference list feature.
*
*
* @generated
*/
EReference TABLE__CHECKS = eINSTANCE.getTable_Checks();
/**
* The meta object literal for the '{@link rdb.impl.ColumnImpl Column}' class.
*
*
* @see rdb.impl.ColumnImpl
* @see rdb.impl.RdbPackageImpl#getColumn()
* @generated
*/
EClass COLUMN = eINSTANCE.getColumn();
/**
* The meta object literal for the '{@link rdb.impl.TableColumnImpl Table Column}' class.
*
*
* @see rdb.impl.TableColumnImpl
* @see rdb.impl.RdbPackageImpl#getTableColumn()
* @generated
*/
EClass TABLE_COLUMN = eINSTANCE.getTableColumn();
/**
* The meta object literal for the 'Domain' reference feature.
*
*
* @generated
*/
EReference TABLE_COLUMN__DOMAIN = eINSTANCE.getTableColumn_Domain();
/**
* The meta object literal for the 'Type' containment reference feature.
*
*
* @generated
*/
EReference TABLE_COLUMN__TYPE = eINSTANCE.getTableColumn_Type();
/**
* The meta object literal for the 'Is Primary Key' attribute feature.
*
*
* @generated
*/
EAttribute TABLE_COLUMN__IS_PRIMARY_KEY = eINSTANCE.getTableColumn_IsPrimaryKey();
/**
* The meta object literal for the 'Is Foreign Key' attribute feature.
*
*
* @generated
*/
EAttribute TABLE_COLUMN__IS_FOREIGN_KEY = eINSTANCE.getTableColumn_IsForeignKey();
}
} //RdbPackage