de.opitzconsulting.orcasDsl.impl.TableImpl Maven / Gradle / Ivy
/**
*/
package de.opitzconsulting.orcasDsl.impl;
import de.opitzconsulting.orcasDsl.Column;
import de.opitzconsulting.orcasDsl.CompressForType;
import de.opitzconsulting.orcasDsl.CompressType;
import de.opitzconsulting.orcasDsl.Constraint;
import de.opitzconsulting.orcasDsl.ForeignKey;
import de.opitzconsulting.orcasDsl.IndexOrUniqueKey;
import de.opitzconsulting.orcasDsl.InlineComment;
import de.opitzconsulting.orcasDsl.LobStorage;
import de.opitzconsulting.orcasDsl.LoggingType;
import de.opitzconsulting.orcasDsl.MviewLog;
import de.opitzconsulting.orcasDsl.NestedTableStorage;
import de.opitzconsulting.orcasDsl.OrcasDslPackage;
import de.opitzconsulting.orcasDsl.ParallelType;
import de.opitzconsulting.orcasDsl.PermanentnessTransactionType;
import de.opitzconsulting.orcasDsl.PermanentnessType;
import de.opitzconsulting.orcasDsl.PrimaryKey;
import de.opitzconsulting.orcasDsl.Table;
import de.opitzconsulting.orcasDsl.TablePartitioning;
import de.opitzconsulting.orcasDsl.VarrayStorage;
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;
/**
*
* An implementation of the model object 'Table'.
*
*
* The following features are implemented:
*
*
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getPermanentness Permanentness}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getName Name}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getAlias Alias}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getDomain Domain}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getObject_type Object type}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getColumns Columns}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getPrimary_key Primary key}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getConstraints Constraints}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getInd_uks Ind uks}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getForeign_keys Foreign keys}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getComments Comments}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getTransactionControl Transaction Control}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getLobStorages Lob Storages}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getVarrayStorages Varray Storages}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getNestedTableStorages Nested Table Storages}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getTablePartitioning Table Partitioning}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getTablespace Tablespace}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#isIndexOrganized Index Organized}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getPctthreshold Pctthreshold}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getIncludingColumn Including Column}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getOverflowTablespace Overflow Tablespace}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getPctfree Pctfree}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getCompression Compression}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getCompressionFor Compression For}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getLogging Logging}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getParallel Parallel}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getParallel_degree Parallel degree}
* - {@link de.opitzconsulting.orcasDsl.impl.TableImpl#getMviewLog Mview Log}
*
*
* @generated
*/
public class TableImpl extends ModelElementImpl implements Table
{
/**
* The default value of the '{@link #getPermanentness() Permanentness}' attribute.
*
*
* @see #getPermanentness()
* @generated
* @ordered
*/
public static final PermanentnessType PERMANENTNESS_EDEFAULT = null;
/**
* The cached value of the '{@link #getPermanentness() Permanentness}' attribute.
*
*
* @see #getPermanentness()
* @generated
* @ordered
*/
public PermanentnessType permanentness = PERMANENTNESS_EDEFAULT;
/**
* The default value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
public static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
public String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getAlias() Alias}' attribute.
*
*
* @see #getAlias()
* @generated
* @ordered
*/
public static final String ALIAS_EDEFAULT = null;
/**
* The cached value of the '{@link #getAlias() Alias}' attribute.
*
*
* @see #getAlias()
* @generated
* @ordered
*/
public String alias = ALIAS_EDEFAULT;
/**
* The default value of the '{@link #getDomain() Domain}' attribute.
*
*
* @see #getDomain()
* @generated
* @ordered
*/
public static final String DOMAIN_EDEFAULT = null;
/**
* The cached value of the '{@link #getDomain() Domain}' attribute.
*
*
* @see #getDomain()
* @generated
* @ordered
*/
public String domain = DOMAIN_EDEFAULT;
/**
* The default value of the '{@link #getObject_type() Object type}' attribute.
*
*
* @see #getObject_type()
* @generated
* @ordered
*/
public static final String OBJECT_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getObject_type() Object type}' attribute.
*
*
* @see #getObject_type()
* @generated
* @ordered
*/
public String object_type = OBJECT_TYPE_EDEFAULT;
/**
* The cached value of the '{@link #getColumns() Columns}' containment reference list.
*
*
* @see #getColumns()
* @generated
* @ordered
*/
public EList columns;
/**
* The cached value of the '{@link #getPrimary_key() Primary key}' containment reference.
*
*
* @see #getPrimary_key()
* @generated
* @ordered
*/
public PrimaryKey primary_key;
/**
* The cached value of the '{@link #getConstraints() Constraints}' containment reference list.
*
*
* @see #getConstraints()
* @generated
* @ordered
*/
public EList constraints;
/**
* The cached value of the '{@link #getInd_uks() Ind uks}' containment reference list.
*
*
* @see #getInd_uks()
* @generated
* @ordered
*/
public EList ind_uks;
/**
* The cached value of the '{@link #getForeign_keys() Foreign keys}' containment reference list.
*
*
* @see #getForeign_keys()
* @generated
* @ordered
*/
public EList foreign_keys;
/**
* The cached value of the '{@link #getComments() Comments}' containment reference list.
*
*
* @see #getComments()
* @generated
* @ordered
*/
public EList comments;
/**
* The default value of the '{@link #getTransactionControl() Transaction Control}' attribute.
*
*
* @see #getTransactionControl()
* @generated
* @ordered
*/
public static final PermanentnessTransactionType TRANSACTION_CONTROL_EDEFAULT = null;
/**
* The cached value of the '{@link #getTransactionControl() Transaction Control}' attribute.
*
*
* @see #getTransactionControl()
* @generated
* @ordered
*/
public PermanentnessTransactionType transactionControl = TRANSACTION_CONTROL_EDEFAULT;
/**
* The cached value of the '{@link #getLobStorages() Lob Storages}' containment reference list.
*
*
* @see #getLobStorages()
* @generated
* @ordered
*/
public EList lobStorages;
/**
* The cached value of the '{@link #getVarrayStorages() Varray Storages}' containment reference list.
*
*
* @see #getVarrayStorages()
* @generated
* @ordered
*/
public EList varrayStorages;
/**
* The cached value of the '{@link #getNestedTableStorages() Nested Table Storages}' containment reference list.
*
*
* @see #getNestedTableStorages()
* @generated
* @ordered
*/
public EList nestedTableStorages;
/**
* The cached value of the '{@link #getTablePartitioning() Table Partitioning}' containment reference.
*
*
* @see #getTablePartitioning()
* @generated
* @ordered
*/
public TablePartitioning tablePartitioning;
/**
* The default value of the '{@link #getTablespace() Tablespace}' attribute.
*
*
* @see #getTablespace()
* @generated
* @ordered
*/
public static final String TABLESPACE_EDEFAULT = null;
/**
* The cached value of the '{@link #getTablespace() Tablespace}' attribute.
*
*
* @see #getTablespace()
* @generated
* @ordered
*/
public String tablespace = TABLESPACE_EDEFAULT;
/**
* The default value of the '{@link #isIndexOrganized() Index Organized}' attribute.
*
*
* @see #isIndexOrganized()
* @generated
* @ordered
*/
public static final boolean INDEX_ORGANIZED_EDEFAULT = false;
/**
* The cached value of the '{@link #isIndexOrganized() Index Organized}' attribute.
*
*
* @see #isIndexOrganized()
* @generated
* @ordered
*/
public boolean indexOrganized = INDEX_ORGANIZED_EDEFAULT;
/**
* The default value of the '{@link #getPctthreshold() Pctthreshold}' attribute.
*
*
* @see #getPctthreshold()
* @generated
* @ordered
*/
public static final Integer PCTTHRESHOLD_EDEFAULT = null;
/**
* The cached value of the '{@link #getPctthreshold() Pctthreshold}' attribute.
*
*
* @see #getPctthreshold()
* @generated
* @ordered
*/
public Integer pctthreshold = PCTTHRESHOLD_EDEFAULT;
/**
* The default value of the '{@link #getIncludingColumn() Including Column}' attribute.
*
*
* @see #getIncludingColumn()
* @generated
* @ordered
*/
public static final String INCLUDING_COLUMN_EDEFAULT = null;
/**
* The cached value of the '{@link #getIncludingColumn() Including Column}' attribute.
*
*
* @see #getIncludingColumn()
* @generated
* @ordered
*/
public String includingColumn = INCLUDING_COLUMN_EDEFAULT;
/**
* The default value of the '{@link #getOverflowTablespace() Overflow Tablespace}' attribute.
*
*
* @see #getOverflowTablespace()
* @generated
* @ordered
*/
public static final String OVERFLOW_TABLESPACE_EDEFAULT = null;
/**
* The cached value of the '{@link #getOverflowTablespace() Overflow Tablespace}' attribute.
*
*
* @see #getOverflowTablespace()
* @generated
* @ordered
*/
public String overflowTablespace = OVERFLOW_TABLESPACE_EDEFAULT;
/**
* The default value of the '{@link #getPctfree() Pctfree}' attribute.
*
*
* @see #getPctfree()
* @generated
* @ordered
*/
public static final Integer PCTFREE_EDEFAULT = null;
/**
* The cached value of the '{@link #getPctfree() Pctfree}' attribute.
*
*
* @see #getPctfree()
* @generated
* @ordered
*/
public Integer pctfree = PCTFREE_EDEFAULT;
/**
* The default value of the '{@link #getCompression() Compression}' attribute.
*
*
* @see #getCompression()
* @generated
* @ordered
*/
public static final CompressType COMPRESSION_EDEFAULT = null;
/**
* The cached value of the '{@link #getCompression() Compression}' attribute.
*
*
* @see #getCompression()
* @generated
* @ordered
*/
public CompressType compression = COMPRESSION_EDEFAULT;
/**
* The default value of the '{@link #getCompressionFor() Compression For}' attribute.
*
*
* @see #getCompressionFor()
* @generated
* @ordered
*/
public static final CompressForType COMPRESSION_FOR_EDEFAULT = null;
/**
* The cached value of the '{@link #getCompressionFor() Compression For}' attribute.
*
*
* @see #getCompressionFor()
* @generated
* @ordered
*/
public CompressForType compressionFor = COMPRESSION_FOR_EDEFAULT;
/**
* The default value of the '{@link #getLogging() Logging}' attribute.
*
*
* @see #getLogging()
* @generated
* @ordered
*/
public static final LoggingType LOGGING_EDEFAULT = null;
/**
* The cached value of the '{@link #getLogging() Logging}' attribute.
*
*
* @see #getLogging()
* @generated
* @ordered
*/
public LoggingType logging = LOGGING_EDEFAULT;
/**
* The default value of the '{@link #getParallel() Parallel}' attribute.
*
*
* @see #getParallel()
* @generated
* @ordered
*/
public static final ParallelType PARALLEL_EDEFAULT = null;
/**
* The cached value of the '{@link #getParallel() Parallel}' attribute.
*
*
* @see #getParallel()
* @generated
* @ordered
*/
public ParallelType parallel = PARALLEL_EDEFAULT;
/**
* The default value of the '{@link #getParallel_degree() Parallel degree}' attribute.
*
*
* @see #getParallel_degree()
* @generated
* @ordered
*/
public static final int PARALLEL_DEGREE_EDEFAULT = 0;
/**
* The cached value of the '{@link #getParallel_degree() Parallel degree}' attribute.
*
*
* @see #getParallel_degree()
* @generated
* @ordered
*/
public int parallel_degree = PARALLEL_DEGREE_EDEFAULT;
/**
* The cached value of the '{@link #getMviewLog() Mview Log}' containment reference.
*
*
* @see #getMviewLog()
* @generated
* @ordered
*/
public MviewLog mviewLog;
/**
*
*
* @generated
*/
public TableImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
public EClass eStaticClass()
{
return OrcasDslPackage.Literals.TABLE;
}
/**
*
*
* @generated
*/
public PermanentnessType getPermanentness()
{
return permanentness;
}
/**
*
*
* @generated
*/
public void setPermanentness(PermanentnessType newPermanentness)
{
PermanentnessType oldPermanentness = permanentness;
permanentness = newPermanentness == null ? PERMANENTNESS_EDEFAULT : newPermanentness;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__PERMANENTNESS, oldPermanentness, permanentness));
}
/**
*
*
* @generated
*/
public String getName()
{
return name;
}
/**
*
*
* @generated
*/
public void setName(String newName)
{
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__NAME, oldName, name));
}
/**
*
*
* @generated
*/
public String getAlias()
{
return alias;
}
/**
*
*
* @generated
*/
public void setAlias(String newAlias)
{
String oldAlias = alias;
alias = newAlias;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__ALIAS, oldAlias, alias));
}
/**
*
*
* @generated
*/
public String getDomain()
{
return domain;
}
/**
*
*
* @generated
*/
public void setDomain(String newDomain)
{
String oldDomain = domain;
domain = newDomain;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__DOMAIN, oldDomain, domain));
}
/**
*
*
* @generated
*/
public String getObject_type()
{
return object_type;
}
/**
*
*
* @generated
*/
public void setObject_type(String newObject_type)
{
String oldObject_type = object_type;
object_type = newObject_type;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__OBJECT_TYPE, oldObject_type, object_type));
}
/**
*
*
* @generated
*/
public EList getColumns()
{
if (columns == null)
{
columns = new EObjectContainmentEList(Column.class, this, OrcasDslPackage.TABLE__COLUMNS);
}
return columns;
}
/**
*
*
* @generated
*/
public PrimaryKey getPrimary_key()
{
return primary_key;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetPrimary_key(PrimaryKey newPrimary_key, NotificationChain msgs)
{
PrimaryKey oldPrimary_key = primary_key;
primary_key = newPrimary_key;
if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__PRIMARY_KEY, oldPrimary_key, newPrimary_key);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setPrimary_key(PrimaryKey newPrimary_key)
{
if (newPrimary_key != primary_key)
{
NotificationChain msgs = null;
if (primary_key != null)
msgs = ((InternalEObject)primary_key).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.TABLE__PRIMARY_KEY, null, msgs);
if (newPrimary_key != null)
msgs = ((InternalEObject)newPrimary_key).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.TABLE__PRIMARY_KEY, null, msgs);
msgs = basicSetPrimary_key(newPrimary_key, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__PRIMARY_KEY, newPrimary_key, newPrimary_key));
}
/**
*
*
* @generated
*/
public EList getConstraints()
{
if (constraints == null)
{
constraints = new EObjectContainmentEList(Constraint.class, this, OrcasDslPackage.TABLE__CONSTRAINTS);
}
return constraints;
}
/**
*
*
* @generated
*/
public EList getInd_uks()
{
if (ind_uks == null)
{
ind_uks = new EObjectContainmentEList(IndexOrUniqueKey.class, this, OrcasDslPackage.TABLE__IND_UKS);
}
return ind_uks;
}
/**
*
*
* @generated
*/
public EList getForeign_keys()
{
if (foreign_keys == null)
{
foreign_keys = new EObjectContainmentEList(ForeignKey.class, this, OrcasDslPackage.TABLE__FOREIGN_KEYS);
}
return foreign_keys;
}
/**
*
*
* @generated
*/
public EList getComments()
{
if (comments == null)
{
comments = new EObjectContainmentEList(InlineComment.class, this, OrcasDslPackage.TABLE__COMMENTS);
}
return comments;
}
/**
*
*
* @generated
*/
public PermanentnessTransactionType getTransactionControl()
{
return transactionControl;
}
/**
*
*
* @generated
*/
public void setTransactionControl(PermanentnessTransactionType newTransactionControl)
{
PermanentnessTransactionType oldTransactionControl = transactionControl;
transactionControl = newTransactionControl == null ? TRANSACTION_CONTROL_EDEFAULT : newTransactionControl;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__TRANSACTION_CONTROL, oldTransactionControl, transactionControl));
}
/**
*
*
* @generated
*/
public EList getLobStorages()
{
if (lobStorages == null)
{
lobStorages = new EObjectContainmentEList(LobStorage.class, this, OrcasDslPackage.TABLE__LOB_STORAGES);
}
return lobStorages;
}
/**
*
*
* @generated
*/
public EList getVarrayStorages()
{
if (varrayStorages == null)
{
varrayStorages = new EObjectContainmentEList(VarrayStorage.class, this, OrcasDslPackage.TABLE__VARRAY_STORAGES);
}
return varrayStorages;
}
/**
*
*
* @generated
*/
public EList getNestedTableStorages()
{
if (nestedTableStorages == null)
{
nestedTableStorages = new EObjectContainmentEList(NestedTableStorage.class, this, OrcasDslPackage.TABLE__NESTED_TABLE_STORAGES);
}
return nestedTableStorages;
}
/**
*
*
* @generated
*/
public TablePartitioning getTablePartitioning()
{
return tablePartitioning;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetTablePartitioning(TablePartitioning newTablePartitioning, NotificationChain msgs)
{
TablePartitioning oldTablePartitioning = tablePartitioning;
tablePartitioning = newTablePartitioning;
if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__TABLE_PARTITIONING, oldTablePartitioning, newTablePartitioning);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setTablePartitioning(TablePartitioning newTablePartitioning)
{
if (newTablePartitioning != tablePartitioning)
{
NotificationChain msgs = null;
if (tablePartitioning != null)
msgs = ((InternalEObject)tablePartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.TABLE__TABLE_PARTITIONING, null, msgs);
if (newTablePartitioning != null)
msgs = ((InternalEObject)newTablePartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.TABLE__TABLE_PARTITIONING, null, msgs);
msgs = basicSetTablePartitioning(newTablePartitioning, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__TABLE_PARTITIONING, newTablePartitioning, newTablePartitioning));
}
/**
*
*
* @generated
*/
public String getTablespace()
{
return tablespace;
}
/**
*
*
* @generated
*/
public void setTablespace(String newTablespace)
{
String oldTablespace = tablespace;
tablespace = newTablespace;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__TABLESPACE, oldTablespace, tablespace));
}
/**
*
*
* @generated
*/
public boolean isIndexOrganized()
{
return indexOrganized;
}
/**
*
*
* @generated
*/
public void setIndexOrganized(boolean newIndexOrganized)
{
boolean oldIndexOrganized = indexOrganized;
indexOrganized = newIndexOrganized;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__INDEX_ORGANIZED, oldIndexOrganized, indexOrganized));
}
/**
*
*
* @generated
*/
public Integer getPctthreshold()
{
return pctthreshold;
}
/**
*
*
* @generated
*/
public void setPctthreshold(Integer newPctthreshold)
{
Integer oldPctthreshold = pctthreshold;
pctthreshold = newPctthreshold;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__PCTTHRESHOLD, oldPctthreshold, pctthreshold));
}
/**
*
*
* @generated
*/
public String getIncludingColumn()
{
return includingColumn;
}
/**
*
*
* @generated
*/
public void setIncludingColumn(String newIncludingColumn)
{
String oldIncludingColumn = includingColumn;
includingColumn = newIncludingColumn;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__INCLUDING_COLUMN, oldIncludingColumn, includingColumn));
}
/**
*
*
* @generated
*/
public String getOverflowTablespace()
{
return overflowTablespace;
}
/**
*
*
* @generated
*/
public void setOverflowTablespace(String newOverflowTablespace)
{
String oldOverflowTablespace = overflowTablespace;
overflowTablespace = newOverflowTablespace;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__OVERFLOW_TABLESPACE, oldOverflowTablespace, overflowTablespace));
}
/**
*
*
* @generated
*/
public Integer getPctfree()
{
return pctfree;
}
/**
*
*
* @generated
*/
public void setPctfree(Integer newPctfree)
{
Integer oldPctfree = pctfree;
pctfree = newPctfree;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__PCTFREE, oldPctfree, pctfree));
}
/**
*
*
* @generated
*/
public CompressType getCompression()
{
return compression;
}
/**
*
*
* @generated
*/
public void setCompression(CompressType newCompression)
{
CompressType oldCompression = compression;
compression = newCompression == null ? COMPRESSION_EDEFAULT : newCompression;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__COMPRESSION, oldCompression, compression));
}
/**
*
*
* @generated
*/
public CompressForType getCompressionFor()
{
return compressionFor;
}
/**
*
*
* @generated
*/
public void setCompressionFor(CompressForType newCompressionFor)
{
CompressForType oldCompressionFor = compressionFor;
compressionFor = newCompressionFor == null ? COMPRESSION_FOR_EDEFAULT : newCompressionFor;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__COMPRESSION_FOR, oldCompressionFor, compressionFor));
}
/**
*
*
* @generated
*/
public LoggingType getLogging()
{
return logging;
}
/**
*
*
* @generated
*/
public void setLogging(LoggingType newLogging)
{
LoggingType oldLogging = logging;
logging = newLogging == null ? LOGGING_EDEFAULT : newLogging;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__LOGGING, oldLogging, logging));
}
/**
*
*
* @generated
*/
public ParallelType getParallel()
{
return parallel;
}
/**
*
*
* @generated
*/
public void setParallel(ParallelType newParallel)
{
ParallelType oldParallel = parallel;
parallel = newParallel == null ? PARALLEL_EDEFAULT : newParallel;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__PARALLEL, oldParallel, parallel));
}
/**
*
*
* @generated
*/
public int getParallel_degree()
{
return parallel_degree;
}
/**
*
*
* @generated
*/
public void setParallel_degree(int newParallel_degree)
{
int oldParallel_degree = parallel_degree;
parallel_degree = newParallel_degree;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__PARALLEL_DEGREE, oldParallel_degree, parallel_degree));
}
/**
*
*
* @generated
*/
public MviewLog getMviewLog()
{
return mviewLog;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetMviewLog(MviewLog newMviewLog, NotificationChain msgs)
{
MviewLog oldMviewLog = mviewLog;
mviewLog = newMviewLog;
if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__MVIEW_LOG, oldMviewLog, newMviewLog);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setMviewLog(MviewLog newMviewLog)
{
if (newMviewLog != mviewLog)
{
NotificationChain msgs = null;
if (mviewLog != null)
msgs = ((InternalEObject)mviewLog).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.TABLE__MVIEW_LOG, null, msgs);
if (newMviewLog != null)
msgs = ((InternalEObject)newMviewLog).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrcasDslPackage.TABLE__MVIEW_LOG, null, msgs);
msgs = basicSetMviewLog(newMviewLog, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.TABLE__MVIEW_LOG, newMviewLog, newMviewLog));
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case OrcasDslPackage.TABLE__COLUMNS:
return ((InternalEList>)getColumns()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__PRIMARY_KEY:
return basicSetPrimary_key(null, msgs);
case OrcasDslPackage.TABLE__CONSTRAINTS:
return ((InternalEList>)getConstraints()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__IND_UKS:
return ((InternalEList>)getInd_uks()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__FOREIGN_KEYS:
return ((InternalEList>)getForeign_keys()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__COMMENTS:
return ((InternalEList>)getComments()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__LOB_STORAGES:
return ((InternalEList>)getLobStorages()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__VARRAY_STORAGES:
return ((InternalEList>)getVarrayStorages()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__NESTED_TABLE_STORAGES:
return ((InternalEList>)getNestedTableStorages()).basicRemove(otherEnd, msgs);
case OrcasDslPackage.TABLE__TABLE_PARTITIONING:
return basicSetTablePartitioning(null, msgs);
case OrcasDslPackage.TABLE__MVIEW_LOG:
return basicSetMviewLog(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case OrcasDslPackage.TABLE__PERMANENTNESS:
return getPermanentness();
case OrcasDslPackage.TABLE__NAME:
return getName();
case OrcasDslPackage.TABLE__ALIAS:
return getAlias();
case OrcasDslPackage.TABLE__DOMAIN:
return getDomain();
case OrcasDslPackage.TABLE__OBJECT_TYPE:
return getObject_type();
case OrcasDslPackage.TABLE__COLUMNS:
return getColumns();
case OrcasDslPackage.TABLE__PRIMARY_KEY:
return getPrimary_key();
case OrcasDslPackage.TABLE__CONSTRAINTS:
return getConstraints();
case OrcasDslPackage.TABLE__IND_UKS:
return getInd_uks();
case OrcasDslPackage.TABLE__FOREIGN_KEYS:
return getForeign_keys();
case OrcasDslPackage.TABLE__COMMENTS:
return getComments();
case OrcasDslPackage.TABLE__TRANSACTION_CONTROL:
return getTransactionControl();
case OrcasDslPackage.TABLE__LOB_STORAGES:
return getLobStorages();
case OrcasDslPackage.TABLE__VARRAY_STORAGES:
return getVarrayStorages();
case OrcasDslPackage.TABLE__NESTED_TABLE_STORAGES:
return getNestedTableStorages();
case OrcasDslPackage.TABLE__TABLE_PARTITIONING:
return getTablePartitioning();
case OrcasDslPackage.TABLE__TABLESPACE:
return getTablespace();
case OrcasDslPackage.TABLE__INDEX_ORGANIZED:
return isIndexOrganized();
case OrcasDslPackage.TABLE__PCTTHRESHOLD:
return getPctthreshold();
case OrcasDslPackage.TABLE__INCLUDING_COLUMN:
return getIncludingColumn();
case OrcasDslPackage.TABLE__OVERFLOW_TABLESPACE:
return getOverflowTablespace();
case OrcasDslPackage.TABLE__PCTFREE:
return getPctfree();
case OrcasDslPackage.TABLE__COMPRESSION:
return getCompression();
case OrcasDslPackage.TABLE__COMPRESSION_FOR:
return getCompressionFor();
case OrcasDslPackage.TABLE__LOGGING:
return getLogging();
case OrcasDslPackage.TABLE__PARALLEL:
return getParallel();
case OrcasDslPackage.TABLE__PARALLEL_DEGREE:
return getParallel_degree();
case OrcasDslPackage.TABLE__MVIEW_LOG:
return getMviewLog();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case OrcasDslPackage.TABLE__PERMANENTNESS:
setPermanentness((PermanentnessType)newValue);
return;
case OrcasDslPackage.TABLE__NAME:
setName((String)newValue);
return;
case OrcasDslPackage.TABLE__ALIAS:
setAlias((String)newValue);
return;
case OrcasDslPackage.TABLE__DOMAIN:
setDomain((String)newValue);
return;
case OrcasDslPackage.TABLE__OBJECT_TYPE:
setObject_type((String)newValue);
return;
case OrcasDslPackage.TABLE__COLUMNS:
getColumns().clear();
getColumns().addAll((Collection extends Column>)newValue);
return;
case OrcasDslPackage.TABLE__PRIMARY_KEY:
setPrimary_key((PrimaryKey)newValue);
return;
case OrcasDslPackage.TABLE__CONSTRAINTS:
getConstraints().clear();
getConstraints().addAll((Collection extends Constraint>)newValue);
return;
case OrcasDslPackage.TABLE__IND_UKS:
getInd_uks().clear();
getInd_uks().addAll((Collection extends IndexOrUniqueKey>)newValue);
return;
case OrcasDslPackage.TABLE__FOREIGN_KEYS:
getForeign_keys().clear();
getForeign_keys().addAll((Collection extends ForeignKey>)newValue);
return;
case OrcasDslPackage.TABLE__COMMENTS:
getComments().clear();
getComments().addAll((Collection extends InlineComment>)newValue);
return;
case OrcasDslPackage.TABLE__TRANSACTION_CONTROL:
setTransactionControl((PermanentnessTransactionType)newValue);
return;
case OrcasDslPackage.TABLE__LOB_STORAGES:
getLobStorages().clear();
getLobStorages().addAll((Collection extends LobStorage>)newValue);
return;
case OrcasDslPackage.TABLE__VARRAY_STORAGES:
getVarrayStorages().clear();
getVarrayStorages().addAll((Collection extends VarrayStorage>)newValue);
return;
case OrcasDslPackage.TABLE__NESTED_TABLE_STORAGES:
getNestedTableStorages().clear();
getNestedTableStorages().addAll((Collection extends NestedTableStorage>)newValue);
return;
case OrcasDslPackage.TABLE__TABLE_PARTITIONING:
setTablePartitioning((TablePartitioning)newValue);
return;
case OrcasDslPackage.TABLE__TABLESPACE:
setTablespace((String)newValue);
return;
case OrcasDslPackage.TABLE__INDEX_ORGANIZED:
setIndexOrganized((Boolean)newValue);
return;
case OrcasDslPackage.TABLE__PCTTHRESHOLD:
setPctthreshold((Integer)newValue);
return;
case OrcasDslPackage.TABLE__INCLUDING_COLUMN:
setIncludingColumn((String)newValue);
return;
case OrcasDslPackage.TABLE__OVERFLOW_TABLESPACE:
setOverflowTablespace((String)newValue);
return;
case OrcasDslPackage.TABLE__PCTFREE:
setPctfree((Integer)newValue);
return;
case OrcasDslPackage.TABLE__COMPRESSION:
setCompression((CompressType)newValue);
return;
case OrcasDslPackage.TABLE__COMPRESSION_FOR:
setCompressionFor((CompressForType)newValue);
return;
case OrcasDslPackage.TABLE__LOGGING:
setLogging((LoggingType)newValue);
return;
case OrcasDslPackage.TABLE__PARALLEL:
setParallel((ParallelType)newValue);
return;
case OrcasDslPackage.TABLE__PARALLEL_DEGREE:
setParallel_degree((Integer)newValue);
return;
case OrcasDslPackage.TABLE__MVIEW_LOG:
setMviewLog((MviewLog)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case OrcasDslPackage.TABLE__PERMANENTNESS:
setPermanentness(PERMANENTNESS_EDEFAULT);
return;
case OrcasDslPackage.TABLE__NAME:
setName(NAME_EDEFAULT);
return;
case OrcasDslPackage.TABLE__ALIAS:
setAlias(ALIAS_EDEFAULT);
return;
case OrcasDslPackage.TABLE__DOMAIN:
setDomain(DOMAIN_EDEFAULT);
return;
case OrcasDslPackage.TABLE__OBJECT_TYPE:
setObject_type(OBJECT_TYPE_EDEFAULT);
return;
case OrcasDslPackage.TABLE__COLUMNS:
getColumns().clear();
return;
case OrcasDslPackage.TABLE__PRIMARY_KEY:
setPrimary_key((PrimaryKey)null);
return;
case OrcasDslPackage.TABLE__CONSTRAINTS:
getConstraints().clear();
return;
case OrcasDslPackage.TABLE__IND_UKS:
getInd_uks().clear();
return;
case OrcasDslPackage.TABLE__FOREIGN_KEYS:
getForeign_keys().clear();
return;
case OrcasDslPackage.TABLE__COMMENTS:
getComments().clear();
return;
case OrcasDslPackage.TABLE__TRANSACTION_CONTROL:
setTransactionControl(TRANSACTION_CONTROL_EDEFAULT);
return;
case OrcasDslPackage.TABLE__LOB_STORAGES:
getLobStorages().clear();
return;
case OrcasDslPackage.TABLE__VARRAY_STORAGES:
getVarrayStorages().clear();
return;
case OrcasDslPackage.TABLE__NESTED_TABLE_STORAGES:
getNestedTableStorages().clear();
return;
case OrcasDslPackage.TABLE__TABLE_PARTITIONING:
setTablePartitioning((TablePartitioning)null);
return;
case OrcasDslPackage.TABLE__TABLESPACE:
setTablespace(TABLESPACE_EDEFAULT);
return;
case OrcasDslPackage.TABLE__INDEX_ORGANIZED:
setIndexOrganized(INDEX_ORGANIZED_EDEFAULT);
return;
case OrcasDslPackage.TABLE__PCTTHRESHOLD:
setPctthreshold(PCTTHRESHOLD_EDEFAULT);
return;
case OrcasDslPackage.TABLE__INCLUDING_COLUMN:
setIncludingColumn(INCLUDING_COLUMN_EDEFAULT);
return;
case OrcasDslPackage.TABLE__OVERFLOW_TABLESPACE:
setOverflowTablespace(OVERFLOW_TABLESPACE_EDEFAULT);
return;
case OrcasDslPackage.TABLE__PCTFREE:
setPctfree(PCTFREE_EDEFAULT);
return;
case OrcasDslPackage.TABLE__COMPRESSION:
setCompression(COMPRESSION_EDEFAULT);
return;
case OrcasDslPackage.TABLE__COMPRESSION_FOR:
setCompressionFor(COMPRESSION_FOR_EDEFAULT);
return;
case OrcasDslPackage.TABLE__LOGGING:
setLogging(LOGGING_EDEFAULT);
return;
case OrcasDslPackage.TABLE__PARALLEL:
setParallel(PARALLEL_EDEFAULT);
return;
case OrcasDslPackage.TABLE__PARALLEL_DEGREE:
setParallel_degree(PARALLEL_DEGREE_EDEFAULT);
return;
case OrcasDslPackage.TABLE__MVIEW_LOG:
setMviewLog((MviewLog)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case OrcasDslPackage.TABLE__PERMANENTNESS:
return permanentness != PERMANENTNESS_EDEFAULT;
case OrcasDslPackage.TABLE__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case OrcasDslPackage.TABLE__ALIAS:
return ALIAS_EDEFAULT == null ? alias != null : !ALIAS_EDEFAULT.equals(alias);
case OrcasDslPackage.TABLE__DOMAIN:
return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain);
case OrcasDslPackage.TABLE__OBJECT_TYPE:
return OBJECT_TYPE_EDEFAULT == null ? object_type != null : !OBJECT_TYPE_EDEFAULT.equals(object_type);
case OrcasDslPackage.TABLE__COLUMNS:
return columns != null && !columns.isEmpty();
case OrcasDslPackage.TABLE__PRIMARY_KEY:
return primary_key != null;
case OrcasDslPackage.TABLE__CONSTRAINTS:
return constraints != null && !constraints.isEmpty();
case OrcasDslPackage.TABLE__IND_UKS:
return ind_uks != null && !ind_uks.isEmpty();
case OrcasDslPackage.TABLE__FOREIGN_KEYS:
return foreign_keys != null && !foreign_keys.isEmpty();
case OrcasDslPackage.TABLE__COMMENTS:
return comments != null && !comments.isEmpty();
case OrcasDslPackage.TABLE__TRANSACTION_CONTROL:
return transactionControl != TRANSACTION_CONTROL_EDEFAULT;
case OrcasDslPackage.TABLE__LOB_STORAGES:
return lobStorages != null && !lobStorages.isEmpty();
case OrcasDslPackage.TABLE__VARRAY_STORAGES:
return varrayStorages != null && !varrayStorages.isEmpty();
case OrcasDslPackage.TABLE__NESTED_TABLE_STORAGES:
return nestedTableStorages != null && !nestedTableStorages.isEmpty();
case OrcasDslPackage.TABLE__TABLE_PARTITIONING:
return tablePartitioning != null;
case OrcasDslPackage.TABLE__TABLESPACE:
return TABLESPACE_EDEFAULT == null ? tablespace != null : !TABLESPACE_EDEFAULT.equals(tablespace);
case OrcasDslPackage.TABLE__INDEX_ORGANIZED:
return indexOrganized != INDEX_ORGANIZED_EDEFAULT;
case OrcasDslPackage.TABLE__PCTTHRESHOLD:
return PCTTHRESHOLD_EDEFAULT == null ? pctthreshold != null : !PCTTHRESHOLD_EDEFAULT.equals(pctthreshold);
case OrcasDslPackage.TABLE__INCLUDING_COLUMN:
return INCLUDING_COLUMN_EDEFAULT == null ? includingColumn != null : !INCLUDING_COLUMN_EDEFAULT.equals(includingColumn);
case OrcasDslPackage.TABLE__OVERFLOW_TABLESPACE:
return OVERFLOW_TABLESPACE_EDEFAULT == null ? overflowTablespace != null : !OVERFLOW_TABLESPACE_EDEFAULT.equals(overflowTablespace);
case OrcasDslPackage.TABLE__PCTFREE:
return PCTFREE_EDEFAULT == null ? pctfree != null : !PCTFREE_EDEFAULT.equals(pctfree);
case OrcasDslPackage.TABLE__COMPRESSION:
return compression != COMPRESSION_EDEFAULT;
case OrcasDslPackage.TABLE__COMPRESSION_FOR:
return compressionFor != COMPRESSION_FOR_EDEFAULT;
case OrcasDslPackage.TABLE__LOGGING:
return logging != LOGGING_EDEFAULT;
case OrcasDslPackage.TABLE__PARALLEL:
return parallel != PARALLEL_EDEFAULT;
case OrcasDslPackage.TABLE__PARALLEL_DEGREE:
return parallel_degree != PARALLEL_DEGREE_EDEFAULT;
case OrcasDslPackage.TABLE__MVIEW_LOG:
return mviewLog != null;
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString()
{
if (eIsProxy()) return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (permanentness: ");
result.append(permanentness);
result.append(", name: ");
result.append(name);
result.append(", alias: ");
result.append(alias);
result.append(", domain: ");
result.append(domain);
result.append(", object_type: ");
result.append(object_type);
result.append(", transactionControl: ");
result.append(transactionControl);
result.append(", tablespace: ");
result.append(tablespace);
result.append(", indexOrganized: ");
result.append(indexOrganized);
result.append(", pctthreshold: ");
result.append(pctthreshold);
result.append(", includingColumn: ");
result.append(includingColumn);
result.append(", overflowTablespace: ");
result.append(overflowTablespace);
result.append(", pctfree: ");
result.append(pctfree);
result.append(", compression: ");
result.append(compression);
result.append(", compressionFor: ");
result.append(compressionFor);
result.append(", logging: ");
result.append(logging);
result.append(", parallel: ");
result.append(parallel);
result.append(", parallel_degree: ");
result.append(parallel_degree);
result.append(')');
return result.toString();
}
} //TableImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy