Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.resource.java
Interface BaseColumnAnnotation

All Superinterfaces:
Annotation, JavaResourceModel, Model, NamedColumnAnnotation
All Known Subinterfaces:
ColumnAnnotation, CompleteColumnAnnotation, CompleteJoinColumnAnnotation, JoinColumnAnnotation, MapKeyColumnAnnotation2_0, MapKeyJoinColumnAnnotation2_0

public interface BaseColumnAnnotation
extends NamedColumnAnnotation

Corresponds to the JPA annotations:

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
JavaResourceModel.FileTransformer, JavaResourceModel.Root
 
Field Summary
static String INSERTABLE_PROPERTY
           
static String NULLABLE_PROPERTY
           
static String TABLE_PROPERTY
           
static String UNIQUE_PROPERTY
           
static String UPDATABLE_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.jpa.core.resource.java.NamedColumnAnnotation
COLUMN_DEFINITION_PROPERTY, NAME_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
FILE_TRANSFORMER
 
Method Summary
 Boolean getInsertable()
          Corresponds to the 'insertable' element of the *Column annotation.
 TextRange getInsertableTextRange()
          Return the TextRange for the 'insertable' element.
 Boolean getNullable()
          Corresponds to the 'nullable' element of the *Column annotation.
 TextRange getNullableTextRange()
          Return the TextRange for the 'nullable' element.
 String getTable()
          Corresponds to the 'table' element of the *Column annotation.
 TextRange getTableTextRange()
          Return the TextRange for the 'table' element.
 Boolean getUnique()
          Corresponds to the 'unique' element of the *Column annotation.
 TextRange getUniqueTextRange()
          Return the TextRange for the 'unique' element.
 Boolean getUpdatable()
          Corresponds to the 'updatable' element of the *Column annotation.
 TextRange getUpdatableTextRange()
          Return the TextRange for the 'updatable' element.
 void setInsertable(Boolean insertable)
          Corresponds to the 'insertable' element of the *Column annotation.
 void setNullable(Boolean nullable)
          Corresponds to the 'nullable' element of the *Column annotation.
 void setTable(String table)
          Corresponds to the 'table' element of the *Column annotation.
 void setUnique(Boolean unique)
          Corresponds to the 'unique' element of the *Column annotation.
 void setUpdatable(Boolean updatable)
          Corresponds to the 'updatable' element of the *Column annotation.
 boolean tableTouches(int pos)
          Return whether the specified position touches the 'table' element.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.NamedColumnAnnotation
getColumnDefinition, getColumnDefinitionTextRange, getName, getNameTextRange, getNameValidationTextRange, isSpecified, nameTouches, nameValidationTouches, setColumnDefinition, setName
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.Annotation
getAnnotationName, getAstAnnotation, initialize, initialize, isUnset, newAnnotation, removeAnnotation, synchronizeWith, synchronizeWith
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 

Field Detail

UNIQUE_PROPERTY

static final String UNIQUE_PROPERTY
See Also:
Constant Field Values

NULLABLE_PROPERTY

static final String NULLABLE_PROPERTY
See Also:
Constant Field Values

INSERTABLE_PROPERTY

static final String INSERTABLE_PROPERTY
See Also:
Constant Field Values

UPDATABLE_PROPERTY

static final String UPDATABLE_PROPERTY
See Also:
Constant Field Values

TABLE_PROPERTY

static final String TABLE_PROPERTY
See Also:
Constant Field Values
Method Detail

getUnique

Boolean getUnique()
Corresponds to the 'unique' element of the *Column annotation. Return null if the element does not exist in Java.


setUnique

void setUnique(Boolean unique)
Corresponds to the 'unique' element of the *Column annotation. Set to null to remove the element.


getUniqueTextRange

TextRange getUniqueTextRange()
Return the TextRange for the 'unique' element. If the element does not exist return the TextRange for the *Column annotation.


getNullable

Boolean getNullable()
Corresponds to the 'nullable' element of the *Column annotation. Return null if the element does not exist in Java.


setNullable

void setNullable(Boolean nullable)
Corresponds to the 'nullable' element of the *Column annotation. Set to null to remove the element.


getNullableTextRange

TextRange getNullableTextRange()
Return the TextRange for the 'nullable' element. If the element does not exist return the TextRange for the *Column annotation.


getInsertable

Boolean getInsertable()
Corresponds to the 'insertable' element of the *Column annotation. Return null if the element does not exist in Java.


setInsertable

void setInsertable(Boolean insertable)
Corresponds to the 'insertable' element of the *Column annotation. Set to null to remove the element.


getInsertableTextRange

TextRange getInsertableTextRange()
Return the TextRange for the 'insertable' element. If the element does not exist return the TextRange for the *Column annotation.


getUpdatable

Boolean getUpdatable()
Corresponds to the 'updatable' element of the *Column annotation. Return null if the element does not exist in Java.


setUpdatable

void setUpdatable(Boolean updatable)
Corresponds to the 'updatable' element of the *Column annotation. Set to null to remove the element.


getUpdatableTextRange

TextRange getUpdatableTextRange()
Return the TextRange for the 'updatable' element. If the element does not exist return the TextRange for the *Column annotation.


getTable

String getTable()
Corresponds to the 'table' element of the *Column annotation. Return null if the element does not exist in Java.


setTable

void setTable(String table)
Corresponds to the 'table' element of the *Column annotation. Set to null to remove the element.


getTableTextRange

TextRange getTableTextRange()
Return the TextRange for the 'table' element. If the element does not exist return the TextRange for the *Column annotation.


tableTouches

boolean tableTouches(int pos)
Return whether the specified position touches the 'table' element. Return false if the element does not exist.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.