diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/java/NullJavaMapKeyColumn2_0.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/java/NullJavaMapKeyColumn2_0.java | 276 |
1 files changed, 0 insertions, 276 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/java/NullJavaMapKeyColumn2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/java/NullJavaMapKeyColumn2_0.java deleted file mode 100644 index 67f4f8ffd6..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/java/NullJavaMapKeyColumn2_0.java +++ /dev/null @@ -1,276 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.jpa2.context.java; - -import java.util.Iterator; -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.common.core.utility.TextRange; -import org.eclipse.jpt.core.context.ReadOnlyColumn; -import org.eclipse.jpt.core.context.java.JavaColumn; -import org.eclipse.jpt.core.context.java.JavaMultiRelationshipMapping; -import org.eclipse.jpt.core.internal.context.java.AbstractJavaJpaContextNode; -import org.eclipse.jpt.core.resource.java.ColumnAnnotation; -import org.eclipse.jpt.db.Table; -import org.eclipse.jpt.utility.internal.iterators.EmptyIterator; - -/** - * - */ -public class NullJavaMapKeyColumn2_0 - extends AbstractJavaJpaContextNode - implements JavaColumn -{ - public NullJavaMapKeyColumn2_0(JavaMultiRelationshipMapping parent) { - super(parent); - } - - - // ********** column annotation ********** - - public ColumnAnnotation getColumnAnnotation() { - return (ColumnAnnotation) this.getParent().getPersistentAttribute().getResourcePersistentAttribute().getNonNullAnnotation(ColumnAnnotation.ANNOTATION_NAME); - } - - - // ********** name ********** - - public String getName() { - return null; - } - - public String getSpecifiedName() { - return null; - } - - public void setSpecifiedName(String name) { - throw new UnsupportedOperationException(); - } - - public String getDefaultName() { - return null; - } - - - // ********** column definition ********** - - public String getColumnDefinition() { - return null; - } - - public void setColumnDefinition(String columnDefinition) { - throw new UnsupportedOperationException(); - } - - - // ********** table ********** - - public String getTable() { - return null; - } - - public String getSpecifiedTable() { - return null; - } - - public void setSpecifiedTable(String table) { - throw new UnsupportedOperationException(); - } - - public String getDefaultTable() { - return null; - } - - - // ********** unique ********** - - public boolean isUnique() { - return false; - } - - public Boolean getSpecifiedUnique() { - return null; - } - - public void setSpecifiedUnique(Boolean unique) { - throw new UnsupportedOperationException(); - } - - public boolean isDefaultUnique() { - return false; - } - - - // ********** nullable ********** - - public boolean isNullable() { - return false; - } - - public Boolean getSpecifiedNullable() { - return null; - } - - public void setSpecifiedNullable(Boolean nullable) { - throw new UnsupportedOperationException(); - } - - public boolean isDefaultNullable() { - return false; - } - - - // ********** insertable ********** - - public boolean isInsertable() { - return false; - } - - public Boolean getSpecifiedInsertable() { - return null; - } - - public void setSpecifiedInsertable(Boolean insertable) { - throw new UnsupportedOperationException(); - } - - public boolean isDefaultInsertable() { - return false; - } - - - // ********** updatable ********** - - public boolean isUpdatable() { - return false; - } - - public Boolean getSpecifiedUpdatable() { - return null; - } - - public void setSpecifiedUpdatable(Boolean updatable) { - throw new UnsupportedOperationException(); - } - - public boolean isDefaultUpdatable() { - return false; - } - - - // ********** length ********** - - public int getLength() { - return 0; - } - - public Integer getSpecifiedLength() { - return null; - } - - public void setSpecifiedLength(Integer length) { - throw new UnsupportedOperationException(); - } - - public int getDefaultLength() { - return 0; - } - - - // ********** precision ********** - - public int getPrecision() { - return 0; - } - - public Integer getSpecifiedPrecision() { - return null; - } - - public void setSpecifiedPrecision(Integer precision) { - throw new UnsupportedOperationException(); - } - - public int getDefaultPrecision() { - return 0; - } - - - // ********** scale ********** - - public int getScale() { - return 0; - } - - public Integer getSpecifiedScale() { - return null; - } - - public void setSpecifiedScale(Integer scale) { - throw new UnsupportedOperationException(); - } - - public int getDefaultScale() { - return 0; - } - - - // ********** misc ********** - - @Override - public JavaMultiRelationshipMapping getParent() { - return (JavaMultiRelationshipMapping) super.getParent(); - } - - public void initializeFrom(ReadOnlyColumn oldColumn) { - // NOP - } - - public void initializeFromVirtual(ReadOnlyColumn virtualColumn) { - // NOP - } - - public Iterator<String> candidateTableNames() { - return EmptyIterator.instance(); - } - - - // ********** database stuff ********** - - public org.eclipse.jpt.db.Column getDbColumn() { - return null; - } - - public Table getDbTable() { - return null; - } - - public boolean isResolved() { - return false; - } - - - // ********** validation ********** - - public TextRange getValidationTextRange(CompilationUnit astRoot) { - return null; - } - - public TextRange getNameTextRange(CompilationUnit astRoot) { - return null; - } - - public TextRange getTableTextRange(CompilationUnit astRoot) { - return null; - } - - public boolean tableNameIsInvalid() { - return false; - } -} |