| /******************************************************************************* |
| * Copyright (c) 2007 Oracle. 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: |
| * Oracle - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.jpt.core.internal.content.orm; |
| |
| import java.util.Collection; |
| import org.eclipse.emf.common.notify.Notification; |
| import org.eclipse.emf.common.notify.NotificationChain; |
| import org.eclipse.emf.common.util.EList; |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.InternalEObject; |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| import org.eclipse.jpt.core.internal.mappings.ITableGenerator; |
| import org.eclipse.jpt.core.internal.mappings.IUniqueConstraint; |
| import org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage; |
| import org.eclipse.jpt.core.internal.platform.BaseJpaPlatform; |
| import org.eclipse.jpt.core.internal.platform.DefaultsContext; |
| import org.eclipse.jpt.db.internal.Schema; |
| import org.eclipse.jpt.db.internal.Table; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Xml Table Generator</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getXmlTableGenerator() |
| * @model kind="class" |
| * @generated |
| */ |
| public class XmlTableGenerator extends XmlGenerator implements ITableGenerator |
| { |
| /** |
| * The default value of the '{@link #getTable() <em>Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTable() |
| * @generated |
| * @ordered |
| */ |
| protected static final String TABLE_EDEFAULT = null; |
| |
| /** |
| * The default value of the '{@link #getSpecifiedTable() <em>Specified Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedTable() |
| * @generated |
| * @ordered |
| */ |
| protected static final String SPECIFIED_TABLE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getSpecifiedTable() <em>Specified Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedTable() |
| * @generated |
| * @ordered |
| */ |
| protected String specifiedTable = SPECIFIED_TABLE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDefaultTable() <em>Default Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultTable() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEFAULT_TABLE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDefaultTable() <em>Default Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultTable() |
| * @generated |
| * @ordered |
| */ |
| protected String defaultTable = DEFAULT_TABLE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCatalog() |
| * @generated |
| * @ordered |
| */ |
| protected static final String CATALOG_EDEFAULT = null; |
| |
| /** |
| * The default value of the '{@link #getSpecifiedCatalog() <em>Specified Catalog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedCatalog() |
| * @generated |
| * @ordered |
| */ |
| protected static final String SPECIFIED_CATALOG_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getSpecifiedCatalog() <em>Specified Catalog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedCatalog() |
| * @generated |
| * @ordered |
| */ |
| protected String specifiedCatalog = SPECIFIED_CATALOG_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDefaultCatalog() <em>Default Catalog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultCatalog() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEFAULT_CATALOG_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDefaultCatalog() <em>Default Catalog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultCatalog() |
| * @generated |
| * @ordered |
| */ |
| protected String defaultCatalog = DEFAULT_CATALOG_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSchema() |
| * @generated |
| * @ordered |
| */ |
| protected static final String SCHEMA_EDEFAULT = null; |
| |
| /** |
| * The default value of the '{@link #getSpecifiedSchema() <em>Specified Schema</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedSchema() |
| * @generated |
| * @ordered |
| */ |
| protected static final String SPECIFIED_SCHEMA_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getSpecifiedSchema() <em>Specified Schema</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedSchema() |
| * @generated |
| * @ordered |
| */ |
| protected String specifiedSchema = SPECIFIED_SCHEMA_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDefaultSchema() <em>Default Schema</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultSchema() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEFAULT_SCHEMA_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDefaultSchema() <em>Default Schema</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultSchema() |
| * @generated |
| * @ordered |
| */ |
| protected String defaultSchema = DEFAULT_SCHEMA_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPkColumnName() <em>Pk Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPkColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String PK_COLUMN_NAME_EDEFAULT = null; |
| |
| /** |
| * The default value of the '{@link #getSpecifiedPkColumnName() <em>Specified Pk Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedPkColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String SPECIFIED_PK_COLUMN_NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getSpecifiedPkColumnName() <em>Specified Pk Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedPkColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected String specifiedPkColumnName = SPECIFIED_PK_COLUMN_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDefaultPkColumnName() <em>Default Pk Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultPkColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEFAULT_PK_COLUMN_NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDefaultPkColumnName() <em>Default Pk Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultPkColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected String defaultPkColumnName = DEFAULT_PK_COLUMN_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getValueColumnName() <em>Value Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getValueColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String VALUE_COLUMN_NAME_EDEFAULT = null; |
| |
| /** |
| * The default value of the '{@link #getSpecifiedValueColumnName() <em>Specified Value Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedValueColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String SPECIFIED_VALUE_COLUMN_NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getSpecifiedValueColumnName() <em>Specified Value Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedValueColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected String specifiedValueColumnName = SPECIFIED_VALUE_COLUMN_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDefaultValueColumnName() <em>Default Value Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultValueColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEFAULT_VALUE_COLUMN_NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDefaultValueColumnName() <em>Default Value Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultValueColumnName() |
| * @generated |
| * @ordered |
| */ |
| protected String defaultValueColumnName = DEFAULT_VALUE_COLUMN_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPkColumnValue() <em>Pk Column Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPkColumnValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String PK_COLUMN_VALUE_EDEFAULT = null; |
| |
| /** |
| * The default value of the '{@link #getSpecifiedPkColumnValue() <em>Specified Pk Column Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedPkColumnValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String SPECIFIED_PK_COLUMN_VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getSpecifiedPkColumnValue() <em>Specified Pk Column Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getSpecifiedPkColumnValue() |
| * @generated |
| * @ordered |
| */ |
| protected String specifiedPkColumnValue = SPECIFIED_PK_COLUMN_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDefaultPkColumnValue() <em>Default Pk Column Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultPkColumnValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEFAULT_PK_COLUMN_VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDefaultPkColumnValue() <em>Default Pk Column Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultPkColumnValue() |
| * @generated |
| * @ordered |
| */ |
| protected String defaultPkColumnValue = DEFAULT_PK_COLUMN_VALUE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getUniqueConstraints() <em>Unique Constraints</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getUniqueConstraints() |
| * @generated |
| * @ordered |
| */ |
| protected EList<IUniqueConstraint> uniqueConstraints; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected XmlTableGenerator() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return OrmPackage.Literals.XML_TABLE_GENERATOR; |
| } |
| |
| public String getTable() { |
| return (this.getSpecifiedTable() == null) ? getDefaultTable() : this.getSpecifiedTable(); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Specified Table</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Specified Table</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Specified Table</em>' attribute. |
| * @see #setSpecifiedTable(String) |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_SpecifiedTable() |
| * @model |
| * @generated |
| */ |
| public String getSpecifiedTable() { |
| return specifiedTable; |
| } |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.content.orm.XmlTableGenerator#getSpecifiedTable <em>Specified Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Specified Table</em>' attribute. |
| * @see #getSpecifiedTable() |
| * @generated |
| */ |
| public void setSpecifiedTable(String newSpecifiedTable) { |
| String oldSpecifiedTable = specifiedTable; |
| specifiedTable = newSpecifiedTable; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_TABLE, oldSpecifiedTable, specifiedTable)); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Default Table</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Default Table</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Default Table</em>' attribute. |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_DefaultTable() |
| * @model changeable="false" |
| * @generated |
| */ |
| public String getDefaultTable() { |
| return defaultTable; |
| } |
| |
| public String getCatalog() { |
| return (this.getSpecifiedCatalog() == null) ? getDefaultCatalog() : this.getSpecifiedCatalog(); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Specified Catalog</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Specified Catalog</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Specified Catalog</em>' attribute. |
| * @see #setSpecifiedCatalog(String) |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_SpecifiedCatalog() |
| * @model |
| * @generated |
| */ |
| public String getSpecifiedCatalog() { |
| return specifiedCatalog; |
| } |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.content.orm.XmlTableGenerator#getSpecifiedCatalog <em>Specified Catalog</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Specified Catalog</em>' attribute. |
| * @see #getSpecifiedCatalog() |
| * @generated |
| */ |
| public void setSpecifiedCatalog(String newSpecifiedCatalog) { |
| String oldSpecifiedCatalog = specifiedCatalog; |
| specifiedCatalog = newSpecifiedCatalog; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_CATALOG, oldSpecifiedCatalog, specifiedCatalog)); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Default Catalog</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Default Catalog</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Default Catalog</em>' attribute. |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_DefaultCatalog() |
| * @model changeable="false" |
| * @generated |
| */ |
| public String getDefaultCatalog() { |
| return defaultCatalog; |
| } |
| |
| public String getSchema() { |
| return (this.getSpecifiedSchema() == null) ? getDefaultSchema() : this.getSpecifiedSchema(); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Specified Schema</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Specified Schema</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Specified Schema</em>' attribute. |
| * @see #setSpecifiedSchema(String) |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_SpecifiedSchema() |
| * @model |
| * @generated |
| */ |
| public String getSpecifiedSchema() { |
| return specifiedSchema; |
| } |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.content.orm.XmlTableGenerator#getSpecifiedSchema <em>Specified Schema</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Specified Schema</em>' attribute. |
| * @see #getSpecifiedSchema() |
| * @generated |
| */ |
| public void setSpecifiedSchema(String newSpecifiedSchema) { |
| String oldSpecifiedSchema = specifiedSchema; |
| specifiedSchema = newSpecifiedSchema; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_SCHEMA, oldSpecifiedSchema, specifiedSchema)); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Default Schema</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Default Schema</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Default Schema</em>' attribute. |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_DefaultSchema() |
| * @model changeable="false" |
| * @generated |
| */ |
| public String getDefaultSchema() { |
| return defaultSchema; |
| } |
| |
| protected void setDefaultSchema(String newDefaultSchema) { |
| String oldDefaultSchema = this.defaultSchema; |
| this.defaultSchema = newDefaultSchema; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_TABLE_GENERATOR__DEFAULT_SCHEMA, oldDefaultSchema, this.defaultSchema)); |
| } |
| |
| public String getPkColumnName() { |
| return (this.getSpecifiedPkColumnName() == null) ? getDefaultPkColumnName() : this.getSpecifiedPkColumnName(); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Specified Pk Column Name</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Specified Pk Column Name</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Specified Pk Column Name</em>' attribute. |
| * @see #setSpecifiedPkColumnName(String) |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_SpecifiedPkColumnName() |
| * @model |
| * @generated |
| */ |
| public String getSpecifiedPkColumnName() { |
| return specifiedPkColumnName; |
| } |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.content.orm.XmlTableGenerator#getSpecifiedPkColumnName <em>Specified Pk Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Specified Pk Column Name</em>' attribute. |
| * @see #getSpecifiedPkColumnName() |
| * @generated |
| */ |
| public void setSpecifiedPkColumnName(String newSpecifiedPkColumnName) { |
| String oldSpecifiedPkColumnName = specifiedPkColumnName; |
| specifiedPkColumnName = newSpecifiedPkColumnName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME, oldSpecifiedPkColumnName, specifiedPkColumnName)); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Default Pk Column Name</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Default Pk Column Name</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Default Pk Column Name</em>' attribute. |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_DefaultPkColumnName() |
| * @model changeable="false" |
| * @generated |
| */ |
| public String getDefaultPkColumnName() { |
| return defaultPkColumnName; |
| } |
| |
| public String getValueColumnName() { |
| return (this.getSpecifiedValueColumnName() == null) ? getDefaultValueColumnName() : this.getSpecifiedValueColumnName(); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Specified Value Column Name</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Specified Value Column Name</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Specified Value Column Name</em>' attribute. |
| * @see #setSpecifiedValueColumnName(String) |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_SpecifiedValueColumnName() |
| * @model |
| * @generated |
| */ |
| public String getSpecifiedValueColumnName() { |
| return specifiedValueColumnName; |
| } |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.content.orm.XmlTableGenerator#getSpecifiedValueColumnName <em>Specified Value Column Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Specified Value Column Name</em>' attribute. |
| * @see #getSpecifiedValueColumnName() |
| * @generated |
| */ |
| public void setSpecifiedValueColumnName(String newSpecifiedValueColumnName) { |
| String oldSpecifiedValueColumnName = specifiedValueColumnName; |
| specifiedValueColumnName = newSpecifiedValueColumnName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME, oldSpecifiedValueColumnName, specifiedValueColumnName)); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Default Value Column Name</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Default Value Column Name</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Default Value Column Name</em>' attribute. |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_DefaultValueColumnName() |
| * @model changeable="false" |
| * @generated |
| */ |
| public String getDefaultValueColumnName() { |
| return defaultValueColumnName; |
| } |
| |
| public String getPkColumnValue() { |
| return (this.getSpecifiedPkColumnValue() == null) ? getDefaultPkColumnValue() : this.getSpecifiedPkColumnValue(); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Specified Pk Column Value</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Specified Pk Column Value</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Specified Pk Column Value</em>' attribute. |
| * @see #setSpecifiedPkColumnValue(String) |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_SpecifiedPkColumnValue() |
| * @model |
| * @generated |
| */ |
| public String getSpecifiedPkColumnValue() { |
| return specifiedPkColumnValue; |
| } |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.content.orm.XmlTableGenerator#getSpecifiedPkColumnValue <em>Specified Pk Column Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Specified Pk Column Value</em>' attribute. |
| * @see #getSpecifiedPkColumnValue() |
| * @generated |
| */ |
| public void setSpecifiedPkColumnValue(String newSpecifiedPkColumnValue) { |
| String oldSpecifiedPkColumnValue = specifiedPkColumnValue; |
| specifiedPkColumnValue = newSpecifiedPkColumnValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE, oldSpecifiedPkColumnValue, specifiedPkColumnValue)); |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Default Pk Column Value</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Default Pk Column Value</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Default Pk Column Value</em>' attribute. |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_DefaultPkColumnValue() |
| * @model changeable="false" |
| * @generated |
| */ |
| public String getDefaultPkColumnValue() { |
| return defaultPkColumnValue; |
| } |
| |
| /** |
| * Returns the value of the '<em><b>Unique Constraints</b></em>' containment reference list. |
| * The list contents are of type {@link org.eclipse.jpt.core.internal.mappings.IUniqueConstraint}. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Unique Constraints</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>Unique Constraints</em>' containment reference list. |
| * @see org.eclipse.jpt.core.internal.content.orm.OrmPackage#getITableGenerator_UniqueConstraints() |
| * @model type="org.eclipse.jpt.core.internal.mappings.IUniqueConstraint" containment="true" |
| * @generated |
| */ |
| public EList<IUniqueConstraint> getUniqueConstraints() { |
| if (uniqueConstraints == null) { |
| uniqueConstraints = new EObjectContainmentEList<IUniqueConstraint>(IUniqueConstraint.class, this, OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS); |
| } |
| return uniqueConstraints; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS : |
| return ((InternalEList<?>) getUniqueConstraints()).basicRemove(otherEnd, msgs); |
| } |
| return super.eInverseRemove(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case OrmPackage.XML_TABLE_GENERATOR__TABLE : |
| return getTable(); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_TABLE : |
| return getSpecifiedTable(); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_TABLE : |
| return getDefaultTable(); |
| case OrmPackage.XML_TABLE_GENERATOR__CATALOG : |
| return getCatalog(); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_CATALOG : |
| return getSpecifiedCatalog(); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_CATALOG : |
| return getDefaultCatalog(); |
| case OrmPackage.XML_TABLE_GENERATOR__SCHEMA : |
| return getSchema(); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_SCHEMA : |
| return getSpecifiedSchema(); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_SCHEMA : |
| return getDefaultSchema(); |
| case OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_NAME : |
| return getPkColumnName(); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME : |
| return getSpecifiedPkColumnName(); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_NAME : |
| return getDefaultPkColumnName(); |
| case OrmPackage.XML_TABLE_GENERATOR__VALUE_COLUMN_NAME : |
| return getValueColumnName(); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME : |
| return getSpecifiedValueColumnName(); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_VALUE_COLUMN_NAME : |
| return getDefaultValueColumnName(); |
| case OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_VALUE : |
| return getPkColumnValue(); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE : |
| return getSpecifiedPkColumnValue(); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_VALUE : |
| return getDefaultPkColumnValue(); |
| case OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS : |
| return getUniqueConstraints(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_TABLE : |
| setSpecifiedTable((String) newValue); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_CATALOG : |
| setSpecifiedCatalog((String) newValue); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_SCHEMA : |
| setSpecifiedSchema((String) newValue); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME : |
| setSpecifiedPkColumnName((String) newValue); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME : |
| setSpecifiedValueColumnName((String) newValue); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE : |
| setSpecifiedPkColumnValue((String) newValue); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS : |
| getUniqueConstraints().clear(); |
| getUniqueConstraints().addAll((Collection<? extends IUniqueConstraint>) newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_TABLE : |
| setSpecifiedTable(SPECIFIED_TABLE_EDEFAULT); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_CATALOG : |
| setSpecifiedCatalog(SPECIFIED_CATALOG_EDEFAULT); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_SCHEMA : |
| setSpecifiedSchema(SPECIFIED_SCHEMA_EDEFAULT); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME : |
| setSpecifiedPkColumnName(SPECIFIED_PK_COLUMN_NAME_EDEFAULT); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME : |
| setSpecifiedValueColumnName(SPECIFIED_VALUE_COLUMN_NAME_EDEFAULT); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE : |
| setSpecifiedPkColumnValue(SPECIFIED_PK_COLUMN_VALUE_EDEFAULT); |
| return; |
| case OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS : |
| getUniqueConstraints().clear(); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case OrmPackage.XML_TABLE_GENERATOR__TABLE : |
| return TABLE_EDEFAULT == null ? getTable() != null : !TABLE_EDEFAULT.equals(getTable()); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_TABLE : |
| return SPECIFIED_TABLE_EDEFAULT == null ? specifiedTable != null : !SPECIFIED_TABLE_EDEFAULT.equals(specifiedTable); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_TABLE : |
| return DEFAULT_TABLE_EDEFAULT == null ? defaultTable != null : !DEFAULT_TABLE_EDEFAULT.equals(defaultTable); |
| case OrmPackage.XML_TABLE_GENERATOR__CATALOG : |
| return CATALOG_EDEFAULT == null ? getCatalog() != null : !CATALOG_EDEFAULT.equals(getCatalog()); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_CATALOG : |
| return SPECIFIED_CATALOG_EDEFAULT == null ? specifiedCatalog != null : !SPECIFIED_CATALOG_EDEFAULT.equals(specifiedCatalog); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_CATALOG : |
| return DEFAULT_CATALOG_EDEFAULT == null ? defaultCatalog != null : !DEFAULT_CATALOG_EDEFAULT.equals(defaultCatalog); |
| case OrmPackage.XML_TABLE_GENERATOR__SCHEMA : |
| return SCHEMA_EDEFAULT == null ? getSchema() != null : !SCHEMA_EDEFAULT.equals(getSchema()); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_SCHEMA : |
| return SPECIFIED_SCHEMA_EDEFAULT == null ? specifiedSchema != null : !SPECIFIED_SCHEMA_EDEFAULT.equals(specifiedSchema); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_SCHEMA : |
| return DEFAULT_SCHEMA_EDEFAULT == null ? defaultSchema != null : !DEFAULT_SCHEMA_EDEFAULT.equals(defaultSchema); |
| case OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_NAME : |
| return PK_COLUMN_NAME_EDEFAULT == null ? getPkColumnName() != null : !PK_COLUMN_NAME_EDEFAULT.equals(getPkColumnName()); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME : |
| return SPECIFIED_PK_COLUMN_NAME_EDEFAULT == null ? specifiedPkColumnName != null : !SPECIFIED_PK_COLUMN_NAME_EDEFAULT.equals(specifiedPkColumnName); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_NAME : |
| return DEFAULT_PK_COLUMN_NAME_EDEFAULT == null ? defaultPkColumnName != null : !DEFAULT_PK_COLUMN_NAME_EDEFAULT.equals(defaultPkColumnName); |
| case OrmPackage.XML_TABLE_GENERATOR__VALUE_COLUMN_NAME : |
| return VALUE_COLUMN_NAME_EDEFAULT == null ? getValueColumnName() != null : !VALUE_COLUMN_NAME_EDEFAULT.equals(getValueColumnName()); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME : |
| return SPECIFIED_VALUE_COLUMN_NAME_EDEFAULT == null ? specifiedValueColumnName != null : !SPECIFIED_VALUE_COLUMN_NAME_EDEFAULT.equals(specifiedValueColumnName); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_VALUE_COLUMN_NAME : |
| return DEFAULT_VALUE_COLUMN_NAME_EDEFAULT == null ? defaultValueColumnName != null : !DEFAULT_VALUE_COLUMN_NAME_EDEFAULT.equals(defaultValueColumnName); |
| case OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_VALUE : |
| return PK_COLUMN_VALUE_EDEFAULT == null ? getPkColumnValue() != null : !PK_COLUMN_VALUE_EDEFAULT.equals(getPkColumnValue()); |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE : |
| return SPECIFIED_PK_COLUMN_VALUE_EDEFAULT == null ? specifiedPkColumnValue != null : !SPECIFIED_PK_COLUMN_VALUE_EDEFAULT.equals(specifiedPkColumnValue); |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_VALUE : |
| return DEFAULT_PK_COLUMN_VALUE_EDEFAULT == null ? defaultPkColumnValue != null : !DEFAULT_PK_COLUMN_VALUE_EDEFAULT.equals(defaultPkColumnValue); |
| case OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS : |
| return uniqueConstraints != null && !uniqueConstraints.isEmpty(); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { |
| if (baseClass == ITableGenerator.class) { |
| switch (derivedFeatureID) { |
| case OrmPackage.XML_TABLE_GENERATOR__TABLE : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__TABLE; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_TABLE : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_TABLE; |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_TABLE : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_TABLE; |
| case OrmPackage.XML_TABLE_GENERATOR__CATALOG : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__CATALOG; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_CATALOG : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_CATALOG; |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_CATALOG : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_CATALOG; |
| case OrmPackage.XML_TABLE_GENERATOR__SCHEMA : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__SCHEMA; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_SCHEMA : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_SCHEMA; |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_SCHEMA : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_SCHEMA; |
| case OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_NAME : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__PK_COLUMN_NAME; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME; |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_NAME : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_PK_COLUMN_NAME; |
| case OrmPackage.XML_TABLE_GENERATOR__VALUE_COLUMN_NAME : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__VALUE_COLUMN_NAME; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME; |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_VALUE_COLUMN_NAME : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_VALUE_COLUMN_NAME; |
| case OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_VALUE : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__PK_COLUMN_VALUE; |
| case OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE; |
| case OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_VALUE : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_PK_COLUMN_VALUE; |
| case OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS : |
| return JpaCoreMappingsPackage.ITABLE_GENERATOR__UNIQUE_CONSTRAINTS; |
| default : |
| return -1; |
| } |
| } |
| return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { |
| if (baseClass == ITableGenerator.class) { |
| switch (baseFeatureID) { |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__TABLE : |
| return OrmPackage.XML_TABLE_GENERATOR__TABLE; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_TABLE : |
| return OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_TABLE; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_TABLE : |
| return OrmPackage.XML_TABLE_GENERATOR__DEFAULT_TABLE; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__CATALOG : |
| return OrmPackage.XML_TABLE_GENERATOR__CATALOG; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_CATALOG : |
| return OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_CATALOG; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_CATALOG : |
| return OrmPackage.XML_TABLE_GENERATOR__DEFAULT_CATALOG; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__SCHEMA : |
| return OrmPackage.XML_TABLE_GENERATOR__SCHEMA; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_SCHEMA : |
| return OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_SCHEMA; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_SCHEMA : |
| return OrmPackage.XML_TABLE_GENERATOR__DEFAULT_SCHEMA; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__PK_COLUMN_NAME : |
| return OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_NAME; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME : |
| return OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_NAME; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_PK_COLUMN_NAME : |
| return OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_NAME; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__VALUE_COLUMN_NAME : |
| return OrmPackage.XML_TABLE_GENERATOR__VALUE_COLUMN_NAME; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME : |
| return OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_VALUE_COLUMN_NAME; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_VALUE_COLUMN_NAME : |
| return OrmPackage.XML_TABLE_GENERATOR__DEFAULT_VALUE_COLUMN_NAME; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__PK_COLUMN_VALUE : |
| return OrmPackage.XML_TABLE_GENERATOR__PK_COLUMN_VALUE; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE : |
| return OrmPackage.XML_TABLE_GENERATOR__SPECIFIED_PK_COLUMN_VALUE; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__DEFAULT_PK_COLUMN_VALUE : |
| return OrmPackage.XML_TABLE_GENERATOR__DEFAULT_PK_COLUMN_VALUE; |
| case JpaCoreMappingsPackage.ITABLE_GENERATOR__UNIQUE_CONSTRAINTS : |
| return OrmPackage.XML_TABLE_GENERATOR__UNIQUE_CONSTRAINTS; |
| default : |
| return -1; |
| } |
| } |
| return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String toString() { |
| if (eIsProxy()) |
| return super.toString(); |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (specifiedTable: "); |
| result.append(specifiedTable); |
| result.append(", defaultTable: "); |
| result.append(defaultTable); |
| result.append(", specifiedCatalog: "); |
| result.append(specifiedCatalog); |
| result.append(", defaultCatalog: "); |
| result.append(defaultCatalog); |
| result.append(", specifiedSchema: "); |
| result.append(specifiedSchema); |
| result.append(", defaultSchema: "); |
| result.append(defaultSchema); |
| result.append(", specifiedPkColumnName: "); |
| result.append(specifiedPkColumnName); |
| result.append(", defaultPkColumnName: "); |
| result.append(defaultPkColumnName); |
| result.append(", specifiedValueColumnName: "); |
| result.append(specifiedValueColumnName); |
| result.append(", defaultValueColumnName: "); |
| result.append(defaultValueColumnName); |
| result.append(", specifiedPkColumnValue: "); |
| result.append(specifiedPkColumnValue); |
| result.append(", defaultPkColumnValue: "); |
| result.append(defaultPkColumnValue); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| public void refreshDefaults(DefaultsContext defaultsContext) { |
| setDefaultSchema((String) defaultsContext.getDefault(BaseJpaPlatform.DEFAULT_TABLE_GENERATOR_SCHEMA_KEY)); |
| } |
| |
| public IUniqueConstraint createUniqueConstraint(int index) { |
| return createXmlJavaUniqueConstraint(index); |
| } |
| |
| protected XmlUniqueConstraint createXmlJavaUniqueConstraint(int index) { |
| return OrmFactory.eINSTANCE.createXmlUniqueConstraint(); |
| } |
| |
| public Table dbTable() { |
| Schema schema = this.dbSchema(); |
| return (schema == null) ? null : schema.tableNamed(this.getTable()); |
| } |
| |
| public Schema dbSchema() { |
| return this.database().schemaNamed(this.getSchema()); |
| } |
| } |