/** * Copyright (c) 2011 Obeo. * 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: * Obeo - initial API and implementation */ package org.obeonetwork.dsl.database; import org.eclipse.emf.common.util.EList; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Index</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.obeonetwork.dsl.database.Index#getQualifier <em>Qualifier</em>}</li> * <li>{@link org.obeonetwork.dsl.database.Index#getElements <em>Elements</em>}</li> * <li>{@link org.obeonetwork.dsl.database.Index#isUnique <em>Unique</em>}</li> * <li>{@link org.obeonetwork.dsl.database.Index#getCardinality <em>Cardinality</em>}</li> * <li>{@link org.obeonetwork.dsl.database.Index#getIndexType <em>Index Type</em>}</li> * <li>{@link org.obeonetwork.dsl.database.Index#getOwner <em>Owner</em>}</li> * </ul> * </p> * * @see org.obeonetwork.dsl.database.DatabasePackage#getIndex() * @model * @generated */ public interface Index extends NamedElement { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ String copyright = "Copyright (c) 2011 Obeo.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Obeo - initial API and implementation"; /** * Returns the value of the '<em><b>Qualifier</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Qualifier</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Qualifier</em>' attribute. * @see #setQualifier(String) * @see org.obeonetwork.dsl.database.DatabasePackage#getIndex_Qualifier() * @model * @generated */ String getQualifier(); /** * Sets the value of the '{@link org.obeonetwork.dsl.database.Index#getQualifier <em>Qualifier</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Qualifier</em>' attribute. * @see #getQualifier() * @generated */ void setQualifier(String value); /** * Returns the value of the '<em><b>Elements</b></em>' containment reference list. * The list contents are of type {@link org.obeonetwork.dsl.database.IndexElement}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Elements</em>' containment reference list. * @see org.obeonetwork.dsl.database.DatabasePackage#getIndex_Elements() * @model containment="true" * @generated */ EList<IndexElement> getElements(); /** * Returns the value of the '<em><b>Unique</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Unique</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Unique</em>' attribute. * @see #setUnique(boolean) * @see org.obeonetwork.dsl.database.DatabasePackage#getIndex_Unique() * @model * @generated */ boolean isUnique(); /** * Sets the value of the '{@link org.obeonetwork.dsl.database.Index#isUnique <em>Unique</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Unique</em>' attribute. * @see #isUnique() * @generated */ void setUnique(boolean value); /** * Returns the value of the '<em><b>Cardinality</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Cardinality</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Cardinality</em>' attribute. * @see #setCardinality(int) * @see org.obeonetwork.dsl.database.DatabasePackage#getIndex_Cardinality() * @model * @generated */ int getCardinality(); /** * Sets the value of the '{@link org.obeonetwork.dsl.database.Index#getCardinality <em>Cardinality</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Cardinality</em>' attribute. * @see #getCardinality() * @generated */ void setCardinality(int value); /** * Returns the value of the '<em><b>Index Type</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Index Type</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Index Type</em>' attribute. * @see #setIndexType(String) * @see org.obeonetwork.dsl.database.DatabasePackage#getIndex_IndexType() * @model * @generated */ String getIndexType(); /** * Sets the value of the '{@link org.obeonetwork.dsl.database.Index#getIndexType <em>Index Type</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Index Type</em>' attribute. * @see #getIndexType() * @generated */ void setIndexType(String value); /** * Returns the value of the '<em><b>Owner</b></em>' container reference. * It is bidirectional and its opposite is '{@link org.obeonetwork.dsl.database.Table#getIndexes <em>Indexes</em>}'. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Owner</em>' container reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Owner</em>' container reference. * @see #setOwner(Table) * @see org.obeonetwork.dsl.database.DatabasePackage#getIndex_Owner() * @see org.obeonetwork.dsl.database.Table#getIndexes * @model opposite="indexes" required="true" transient="false" * @generated */ Table getOwner(); /** * Sets the value of the '{@link org.obeonetwork.dsl.database.Index#getOwner <em>Owner</em>}' container reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Owner</em>' container reference. * @see #getOwner() * @generated */ void setOwner(Table value); } // Index