|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TableGeneratorAnnotation
Corresponds to the JPA annotation javax.persistence.TableGenerator 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.
| 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 |
ANNOTATION_NAME
|
static java.lang.String |
CATALOG_PROPERTY
|
static java.lang.String |
PK_COLUMN_NAME_PROPERTY
|
static java.lang.String |
PK_COLUMN_VALUE_PROPERTY
|
static java.lang.String |
SCHEMA_PROPERTY
|
static java.lang.String |
TABLE_PROPERTY
|
static java.lang.String |
UNIQUE_CONSTRAINTS_LIST
|
static java.lang.String |
VALUE_COLUMN_NAME_PROPERTY
|
| Fields inherited from interface org.eclipse.jpt.jpa.core.resource.java.GeneratorAnnotation |
|---|
ALLOCATION_SIZE_PROPERTY, INITIAL_VALUE_PROPERTY, NAME_PROPERTY |
| Method Summary | |
|---|---|
UniqueConstraintAnnotation |
addUniqueConstraint(int index)
Corresponds to the 'uniqueConstraints' element of the TableGenerator 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 TableGenerator annotation. |
TextRange |
getCatalogTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'catalog' element. |
java.lang.String |
getPkColumnName()
Corresponds to the 'pkColumnName' element of the TableGenerator annotation. |
TextRange |
getPkColumnNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'pkColumnName' element. |
java.lang.String |
getPkColumnValue()
Corresponds to the 'pkColumnValue' element of the TableGenerator annotation. |
TextRange |
getPkColumnValueTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'pkColumnValue' element. |
java.lang.String |
getSchema()
Corresponds to the 'schema' element of the TableGenerator annotation. |
TextRange |
getSchemaTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'schema' element. |
java.lang.String |
getTable()
Corresponds to the 'table' element of the TableGenerator annotation. |
TextRange |
getTableTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'table' element. |
java.lang.String |
getValueColumnName()
Corresponds to the 'valueColumnName' element of the TableGenerator annotation. |
TextRange |
getValueColumnNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the TextRange for the 'valueColumnName' element. |
int |
indexOfUniqueConstraint(UniqueConstraintAnnotation uniqueConstraint)
Corresponds to the 'uniqueConstraints' element of the TableGenerator annotation. |
void |
moveUniqueConstraint(int targetIndex,
int sourceIndex)
Corresponds to the 'uniqueConstraints' element of the TableGenerator annotation. |
boolean |
pkColumnNameTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the specified position touches the 'pkColumnName' element. |
boolean |
pkColumnValueTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the specified position touches the 'pkColumnValue' element. |
void |
removeUniqueConstraint(int index)
Corresponds to the 'uniqueConstraints' element of the TableGenerator 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 TableGenerator annotation. |
void |
setPkColumnName(java.lang.String pkColumnName)
Corresponds to the 'pkColumnName' element of the TableGenerator annotation. |
void |
setPkColumnValue(java.lang.String pkColumnValue)
Corresponds to the 'pkColumnValue' element of the TableGenerator annotation. |
void |
setSchema(java.lang.String schema)
Corresponds to the 'schema' element of the TableGenerator annotation. |
void |
setTable(java.lang.String table)
Corresponds to the 'table' element of the TableGenerator annotation. |
void |
setValueColumnName(java.lang.String valueColumnName)
Corresponds to the 'valueColumnName' element of the TableGenerator annotation. |
boolean |
tableTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the specified position touches the 'table' element. |
UniqueConstraintAnnotation |
uniqueConstraintAt(int index)
Corresponds to the 'uniqueConstraints' element of the TableGenerator annotation. |
java.util.ListIterator<UniqueConstraintAnnotation> |
uniqueConstraints()
Corresponds to the 'uniqueConstraints' element of the TableGenerator annotation. |
int |
uniqueConstraintsSize()
Corresponds to the 'uniqueConstraints' element of the TableGenerator annotation. |
boolean |
valueColumnNameTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the specified position touches the 'valueColumnName' element. |
| Methods inherited from interface org.eclipse.jpt.jpa.core.resource.java.GeneratorAnnotation |
|---|
getAllocationSize, getAllocationSizeTextRange, getInitialValue, getInitialValueTextRange, getName, getNameTextRange, setAllocationSize, setInitialValue, setName |
| 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 ANNOTATION_NAME
static final java.lang.String TABLE_PROPERTY
static final java.lang.String SCHEMA_PROPERTY
static final java.lang.String CATALOG_PROPERTY
static final java.lang.String PK_COLUMN_NAME_PROPERTY
static final java.lang.String VALUE_COLUMN_NAME_PROPERTY
static final java.lang.String PK_COLUMN_VALUE_PROPERTY
static final java.lang.String UNIQUE_CONSTRAINTS_LIST
| Method Detail |
|---|
java.lang.String getTable()
void setTable(java.lang.String table)
TextRange getTableTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'table' element. If the element
does not exist return the TextRange for the TableGenerator annotation.
boolean tableTouches(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 TableGenerator 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 TableGenerator annotation.
boolean catalogTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
java.lang.String getPkColumnName()
void setPkColumnName(java.lang.String pkColumnName)
TextRange getPkColumnNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'pkColumnName' element. If the element
does not exist return the TextRange for the TableGenerator annotation.
boolean pkColumnNameTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
java.lang.String getValueColumnName()
void setValueColumnName(java.lang.String valueColumnName)
TextRange getValueColumnNameTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'valueColumnName' element. If the element
does not exist return the TextRange for the TableGenerator annotation.
boolean valueColumnNameTouches(int pos,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
java.lang.String getPkColumnValue()
void setPkColumnValue(java.lang.String pkColumnValue)
TextRange getPkColumnValueTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
TextRange for the 'pkColumnValue' element. If the element
does not exist return the TextRange for the TableGenerator annotation.
boolean pkColumnValueTouches(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 | |||||||||