blob: 68e160cf7dc2af5a91af2e976d057a661dc42456 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 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.resource.java;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jpt.core.resource.java.BaseColumnAnnotation;
import org.eclipse.jpt.core.resource.java.Annotation;
import org.eclipse.jpt.core.resource.java.JavaResourceNode;
import org.eclipse.jpt.core.utility.TextRange;
public abstract class NullBaseColumn extends NullNamedColumn implements BaseColumnAnnotation, Annotation
{
protected NullBaseColumn(JavaResourceNode parent) {
super(parent);
}
@Override
protected abstract BaseColumnAnnotation createResourceColumn();
public String getTable() {
return null;
}
public void setTable(String table) {
if (table != null) {
createResourceColumn().setTable(table);
}
}
public Boolean getUnique() {
return null;
}
public void setUnique(Boolean unique) {
if (unique != null) {
createResourceColumn().setUnique(unique);
}
}
public Boolean getUpdatable() {
return null;
}
public void setUpdatable(Boolean updatable) {
if (updatable != null) {
createResourceColumn().setUpdatable(updatable);
}
}
public Boolean getInsertable() {
return null;
}
public void setInsertable(Boolean insertable) {
if (insertable != null) {
createResourceColumn().setInsertable(insertable);
}
}
public Boolean getNullable() {
return null;
}
public void setNullable(Boolean nullable) {
if (nullable != null) {
createResourceColumn().setNullable(nullable);
}
}
public TextRange getTableTextRange(CompilationUnit astRoot) {
return null;
}
public TextRange getUniqueTextRange(CompilationUnit astRoot) {
return null;
}
public TextRange getUpdatableTextRange(CompilationUnit astRoot) {
return null;
}
public TextRange getInsertableTextRange(CompilationUnit astRoot) {
return null;
}
public TextRange getNullableTextRange(CompilationUnit astRoot) {
return null;
}
public boolean tableTouches(int pos, CompilationUnit astRoot) {
return false;
}
}