| /******************************************************************************* |
| * Copyright (c) 2009 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.jpa.core.resource.java.ColumnAnnotation; |
| import org.eclipse.jpt.jpa.core.resource.java.JPA; |
| import org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode; |
| |
| /** |
| * javax.persistence.Column |
| */ |
| 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; |
| } |
| } |