Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/mappings/ISecondaryTable.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/mappings/ISecondaryTable.java139
1 files changed, 0 insertions, 139 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/mappings/ISecondaryTable.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/mappings/ISecondaryTable.java
deleted file mode 100644
index dd02c7c34a..0000000000
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/mappings/ISecondaryTable.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*******************************************************************************
- * 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.mappings;
-
-import java.util.List;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.jpt.core.internal.ITextRange;
-import org.eclipse.jpt.core.internal.ITypeMapping;
-import org.eclipse.jpt.db.internal.Table;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>ISecondary Table</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.jpt.core.internal.mappings.ISecondaryTable#getPrimaryKeyJoinColumns <em>Primary Key Join Columns</em>}</li>
- * <li>{@link org.eclipse.jpt.core.internal.mappings.ISecondaryTable#getSpecifiedPrimaryKeyJoinColumns <em>Specified Primary Key Join Columns</em>}</li>
- * <li>{@link org.eclipse.jpt.core.internal.mappings.ISecondaryTable#getDefaultPrimaryKeyJoinColumns <em>Default Primary Key Join Columns</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getISecondaryTable()
- * @model kind="class" interface="true" abstract="true"
- * @generated
- */
-public interface ISecondaryTable extends ITable
-{
- /**
- * Returns the value of the '<em><b>Primary Key Join Columns</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.jpt.core.internal.mappings.IPrimaryKeyJoinColumn}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Primary Key Join Columns</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>Primary Key Join Columns</em>' containment reference list.
- * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getISecondaryTable_PrimaryKeyJoinColumns()
- * @model containment="true" transient="true" changeable="false" volatile="true"
- * @generated
- */
- EList<IPrimaryKeyJoinColumn> getPrimaryKeyJoinColumns();
-
- /**
- * Returns the value of the '<em><b>Specified Primary Key Join Columns</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.jpt.core.internal.mappings.IPrimaryKeyJoinColumn}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Specified Primary Key Join Columns</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>Specified Primary Key Join Columns</em>' containment reference list.
- * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getISecondaryTable_SpecifiedPrimaryKeyJoinColumns()
- * @model containment="true"
- * @generated
- */
- EList<IPrimaryKeyJoinColumn> getSpecifiedPrimaryKeyJoinColumns();
-
- /**
- * Returns the value of the '<em><b>Default Primary Key Join Columns</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.jpt.core.internal.mappings.IPrimaryKeyJoinColumn}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default Primary Key Join Columns</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>Default Primary Key Join Columns</em>' containment reference list.
- * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getISecondaryTable_DefaultPrimaryKeyJoinColumns()
- * @model containment="true"
- * @generated
- */
- EList<IPrimaryKeyJoinColumn> getDefaultPrimaryKeyJoinColumns();
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @model
- * @generated
- */
- ITypeMapping typeMapping();
-
- /**
- * Create a primary key join column with the given index
- */
- IPrimaryKeyJoinColumn createPrimaryKeyJoinColumn(int index);
-
- boolean containsSpecifiedPrimaryKeyJoinColumns();
-
- boolean isVirtual();
-
- class PrimaryKeyJoinColumnOwner implements IAbstractJoinColumn.Owner
- {
- private ISecondaryTable secondaryTable;
-
- public PrimaryKeyJoinColumnOwner(ISecondaryTable secondaryTable) {
- this.secondaryTable = secondaryTable;
- }
-
- public ITextRange validationTextRange() {
- return this.secondaryTable.validationTextRange();
- }
-
- public ITypeMapping getTypeMapping() {
- return this.secondaryTable.typeMapping();
- }
-
- public Table dbTable(String tableName) {
- return this.secondaryTable.dbTable();
- }
-
- public Table dbReferencedColumnTable() {
- return getTypeMapping().primaryDbTable();
- }
-
- public List<IPrimaryKeyJoinColumn> joinColumns() {
- return this.secondaryTable.getPrimaryKeyJoinColumns();
- }
-
- public boolean isVirtual(IAbstractJoinColumn joinColumn) {
- return this.secondaryTable.getDefaultPrimaryKeyJoinColumns().contains(joinColumn);
- }
-
- public int indexOf(IAbstractJoinColumn joinColumn) {
- return joinColumns().indexOf(joinColumn);
- }
- }
-}

Back to the top