blob: b0de5009150fa978d33325d48876e01ada1b836e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2012 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.jpa.core.internal.resource.java.binary;
import org.eclipse.jdt.core.IAnnotation;
import org.eclipse.jpt.common.core.resource.java.JavaResourceNode;
import org.eclipse.jpt.jpa.core.resource.java.ColumnAnnotation;
import org.eclipse.jpt.jpa.core.resource.java.JPA;
/**
* <code>javax.persistence.Column</code>
*/
public final class BinaryColumnAnnotation
extends BinaryCompleteColumnAnnotation
implements ColumnAnnotation
{
public BinaryColumnAnnotation(JavaResourceNode parent, IAnnotation jdtAnnotation) {
super(parent, jdtAnnotation);
}
public String getAnnotationName() {
return ANNOTATION_NAME;
}
// ********** BinaryNamedColumnAnnotation implementation **********
@Override
protected String getNameElementName() {
return JPA.COLUMN__NAME;
}
@Override
protected String getColumnDefinitionElementName() {
return JPA.COLUMN__COLUMN_DEFINITION;
}
// ********** BinaryBaseColumnAnnotation implementation **********
@Override
protected String getTableElementName() {
return JPA.COLUMN__TABLE;
}
@Override
protected String getUniqueElementName() {
return JPA.COLUMN__UNIQUE;
}
@Override
protected String getNullableElementName() {
return JPA.COLUMN__NULLABLE;
}
@Override
protected String getInsertableElementName() {
return JPA.COLUMN__INSERTABLE;
}
@Override
protected String getUpdatableElementName() {
return JPA.COLUMN__UPDATABLE;
}
// ********** BinaryCompleteColumnAnnotation implementation **********
@Override
protected String getLengthElementName() {
return JPA.COLUMN__LENGTH;
}
@Override
protected String getPrecisionElementName() {
return JPA.COLUMN__PRECISION;
}
@Override
protected String getScaleElementName() {
return JPA.COLUMN__SCALE;
}
}