Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2007-04-25 20:09:37 +0000
committerpfullbright2007-04-25 20:09:37 +0000
commit5a50ff3aeafeb18e74f2ae005e86953fb4e38ceb (patch)
tree5f403b003319df613511081401862c5a1e6781f6 /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/ITypeMapping.java
downloadwebtools.dali-5a50ff3aeafeb18e74f2ae005e86953fb4e38ceb.tar.gz
webtools.dali-5a50ff3aeafeb18e74f2ae005e86953fb4e38ceb.tar.xz
webtools.dali-5a50ff3aeafeb18e74f2ae005e86953fb4e38ceb.zip
renamed
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/ITypeMapping.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/ITypeMapping.java128
1 files changed, 128 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/ITypeMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/ITypeMapping.java
new file mode 100644
index 0000000000..8329aac842
--- /dev/null
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/ITypeMapping.java
@@ -0,0 +1,128 @@
+/*******************************************************************************
+ * Copyright (c) 2006 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;
+
+import java.util.Iterator;
+import org.eclipse.jpt.core.internal.mappings.ITable;
+import org.eclipse.jpt.db.internal.Table;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>I Type Mapping</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.jpt.core.internal.ITypeMapping#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.jpt.core.internal.ITypeMapping#getTableName <em>Table Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.jpt.core.internal.JpaCorePackage#getITypeMapping()
+ * @model kind="class" interface="true" abstract="true"
+ * @generated
+ */
+public interface ITypeMapping extends IJpaSourceObject
+{
+ /**
+ * Return a unique key for the ITypeMapping. If this is defined in
+ * an extension they should be equal.
+ * @return
+ */
+ String getKey();
+
+ IPersistentType getPersistentType();
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>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>Name</em>' attribute.
+ * @see org.eclipse.jpt.core.internal.JpaCorePackage#getITypeMapping_Name()
+ * @model changeable="false" volatile="true" derived="true"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Returns the value of the '<em><b>Table Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Table 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>Table Name</em>' attribute.
+ * @see org.eclipse.jpt.core.internal.JpaCorePackage#getITypeMapping_TableName()
+ * @model changeable="false" volatile="true" derived="true"
+ * @generated
+ */
+ String getTableName();
+
+ /**
+ * Return the type mapping's "associated" tables, which includes the
+ * primary table and the collection of secondary tables.
+ */
+ Iterator<ITable> associatedTables();
+
+ /**
+ * Return the type mapping's "associated" tables, which includes the
+ * primary table and the collection of secondary tables, as well as all
+ * inherited "associated" tables.
+ */
+ Iterator<ITable> associatedTablesIncludingInherited();
+
+ /**
+ * Return the names of the type mapping's "associated" tables,
+ * which includes the primary table and the collection of secondary
+ * tables, as well as the names of all the inherited "associated" tables.
+ */
+ Iterator<String> associatedTableNamesIncludingInherited();
+
+ /**
+ * return the resolved primary db table
+ */
+ Table primaryDbTable();
+
+ /**
+ * return the resolved associated db table with the passed in name
+ */
+ Table dbTable(String tableName);
+
+ /**
+ * Return whether the specified table is invalid for any annotations
+ * associated with the type mapping.
+ */
+ boolean tableNameIsInvalid(String tableName);
+
+ /**
+ * Return an Iterator of attribute names. The attributes must be BasicMappings or IdMappings
+ * found in any MappedSuperclass in the inheritance hierarchy
+ */
+ Iterator<String> overridableAttributeNames();
+
+ /**
+ * Return an Iterator of attribute names. The attributes must be OneToOneMappings or ManyToOneMappings
+ * found in any MappedSuperclass in the inheritance hierarchy
+ */
+ Iterator<String> overridableAssociationNames();
+
+ /**
+ * Return whether the given attribute mapping key is valid for this particular
+ * type mapping
+ * (for example, id's are not valid for an embeddable type mapping)
+ */
+ boolean attributeMappingKeyAllowed(String attributeMappingKey);
+} \ No newline at end of file

Back to the top