|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BaseTableAnnotation
Corresponds to the JPA annotations:
javax.persistence.Table
javax.persistence.JoinTable
javax.persistence.SecondaryTable
javax.persistence.CollectionTable
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode |
|---|
JavaResourceNode.Root |
| Field Summary | |
|---|---|
static java.lang.String |
CATALOG_PROPERTY
|
static java.lang.String |
NAME_PROPERTY
|
static java.lang.String |
SCHEMA_PROPERTY
|
static java.lang.String |
UNIQUE_CONSTRAINTS_LIST
|
| Method Summary | |
|---|---|
UniqueConstraintAnnotation |
addUniqueConstraint(int index)
Corresponds to the 'uniqueConstraints' element of the *Table annotation. |
boolean |
catalogTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the specified position touches the 'catalog' element. |
java.lang.String |
getCatalog()
Corresponds to the 'catalog' element of the *Table annotation. |
TextRange |
getCatalogTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'catalog' element. |
java.lang.String |
getName()
Corresponds to the 'name' element of the *Table annotation. |
TextRange |
getNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'name' element. |
java.lang.String |
getSchema()
Corresponds to the 'schema' element of the *Table annotation. |
TextRange |
getSchemaTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'schema' element. |
int |
indexOfUniqueConstraint(UniqueConstraintAnnotation uniqueConstraint)
Corresponds to the 'uniqueConstraints' element of the *Table annotation. |
boolean |
isSpecified()
Return whether the annotation exists in Java. |
void |
moveUniqueConstraint(int targetIndex,
int sourceIndex)
Corresponds to the 'uniqueConstraints' element of the *Table annotation. |
boolean |
nameTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the specified position touches the 'name' element. |
void |
removeUniqueConstraint(int index)
Corresponds to the 'uniqueConstraints' element of the *Table annotation. |
boolean |
schemaTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the specified position touches the 'schema' element. |
void |
setCatalog(java.lang.String catalog)
Corresponds to the 'catalog' element of the *Table annotation. |
void |
setName(java.lang.String name)
Corresponds to the 'name' element of the *Table annotation. |
void |
setSchema(java.lang.String schema)
Corresponds to the 'schema' element of the *Table annotation. |
UniqueConstraintAnnotation |
uniqueConstraintAt(int index)
Corresponds to the 'uniqueConstraints' element of the *Table annotation. |
java.util.ListIterator<UniqueConstraintAnnotation> |
uniqueConstraints()
Corresponds to the 'uniqueConstraints' element of the *Table annotation. |
int |
uniqueConstraintsSize()
Corresponds to the 'uniqueConstraints' element of the *Table annotation. |
| Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.Annotation |
|---|
getAnnotationName, getAstAnnotation, isUnset, newAnnotation, removeAnnotation, restoreFrom, storeOn |
| Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.JavaResourceNode |
|---|
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange, initialize, synchronizeWith |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Field Detail |
|---|
static final java.lang.String NAME_PROPERTY
static final java.lang.String SCHEMA_PROPERTY
static final java.lang.String CATALOG_PROPERTY
static final java.lang.String UNIQUE_CONSTRAINTS_LIST
| Method Detail |
|---|
boolean isSpecified()
java.lang.String getName()
void setName(java.lang.String name)
TextRange getNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'name' element. If the element
does not exist return the TextRange for the *Table annotation.
boolean nameTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
java.lang.String getSchema()
void setSchema(java.lang.String schema)
TextRange getSchemaTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'schema' element. If the element
does not exist return the TextRange for the *Table annotation.
boolean schemaTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
java.lang.String getCatalog()
void setCatalog(java.lang.String catalog)
TextRange getCatalogTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'catalog' element. If the element
does not exist return the TextRange for the *Table annotation.
boolean catalogTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
java.util.ListIterator<UniqueConstraintAnnotation> uniqueConstraints()
int uniqueConstraintsSize()
UniqueConstraintAnnotation uniqueConstraintAt(int index)
int indexOfUniqueConstraint(UniqueConstraintAnnotation uniqueConstraint)
UniqueConstraintAnnotation addUniqueConstraint(int index)
void moveUniqueConstraint(int targetIndex,
int sourceIndex)
void removeUniqueConstraint(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||