org.eclipse.jpt.core.jpa2.context.java
Interface JavaCollectionTable2_0

All Superinterfaces:
CollectionTable2_0, org.eclipse.core.runtime.IAdaptable, IResourcePart, JavaJpaContextNode, JavaReferenceTable, JpaContextNode, JpaNode, Model, ReferenceTable, Table

public interface JavaCollectionTable2_0
extends CollectionTable2_0, JavaReferenceTable

Java collection table 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.3
Version:
2.3

Field Summary
 
Fields inherited from interface org.eclipse.jpt.core.context.ReferenceTable
DEFAULT_JOIN_COLUMN, SPECIFIED_JOIN_COLUMNS_LIST
 
Fields inherited from interface org.eclipse.jpt.core.context.Table
DEFAULT_CATALOG_PROPERTY, DEFAULT_NAME_PROPERTY, DEFAULT_SCHEMA_PROPERTY, SPECIFIED_CATALOG_PROPERTY, SPECIFIED_NAME_PROPERTY, SPECIFIED_SCHEMA_PROPERTY, UNIQUE_CONSTRAINTS_LIST
 
Fields inherited from interface org.eclipse.jpt.core.context.ReferenceTable
DEFAULT_JOIN_COLUMN, SPECIFIED_JOIN_COLUMNS_LIST
 
Fields inherited from interface org.eclipse.jpt.core.context.Table
DEFAULT_CATALOG_PROPERTY, DEFAULT_NAME_PROPERTY, DEFAULT_SCHEMA_PROPERTY, SPECIFIED_CATALOG_PROPERTY, SPECIFIED_NAME_PROPERTY, SPECIFIED_SCHEMA_PROPERTY, UNIQUE_CONSTRAINTS_LIST
 
Method Summary
 JavaJoinColumn addSpecifiedJoinColumn(int index)
          Add a specified join column to the join table.
 JavaUniqueConstraint addUniqueConstraint(int index)
           
 JavaJoinColumn getDefaultJoinColumn()
          Return the default join column or null.
 void initialize(CollectionTable2_0Annotation collectionTableAnnotation)
           
 java.util.ListIterator<JavaJoinColumn> joinColumns()
          Return the join table's join columns, whether specified or default.
 java.util.ListIterator<JavaJoinColumn> specifiedJoinColumns()
          Return the specified join columns.
 java.util.ListIterator<JavaUniqueConstraint> uniqueConstraints()
           
 void update(CollectionTable2_0Annotation collectionTableAnnotation)
           
 
Methods inherited from interface org.eclipse.jpt.core.jpa2.context.CollectionTable2_0
getParent
 
Methods inherited from interface org.eclipse.jpt.core.context.ReferenceTable
clearSpecifiedJoinColumns, convertDefaultToSpecifiedJoinColumn, getPersistentAttribute, hasSpecifiedJoinColumns, joinColumnsSize, moveSpecifiedJoinColumn, removeSpecifiedJoinColumn, removeSpecifiedJoinColumn, specifiedJoinColumnsSize
 
Methods inherited from interface org.eclipse.jpt.core.context.Table
getCatalog, getDbCatalog, getDbSchema, getDbSchemaContainer, getDbTable, getDefaultCatalog, getDefaultName, getDefaultSchema, getName, getSchema, getSpecifiedCatalog, getSpecifiedName, getSpecifiedSchema, hasResolvedCatalog, hasResolvedSchema, isResolved, isResourceSpecified, moveUniqueConstraint, removeUniqueConstraint, removeUniqueConstraint, setSpecifiedCatalog, setSpecifiedName, setSpecifiedSchema, uniqueConstraintsSize
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.context.ReferenceTable
clearSpecifiedJoinColumns, convertDefaultToSpecifiedJoinColumn, getPersistentAttribute, hasSpecifiedJoinColumns, joinColumnsSize, moveSpecifiedJoinColumn, removeSpecifiedJoinColumn, removeSpecifiedJoinColumn, specifiedJoinColumnsSize
 
Methods inherited from interface org.eclipse.jpt.core.context.Table
getCatalog, getDbCatalog, getDbSchema, getDbSchemaContainer, getDbTable, getDefaultCatalog, getDefaultName, getDefaultSchema, getName, getSchema, getSpecifiedCatalog, getSpecifiedName, getSpecifiedSchema, hasResolvedCatalog, hasResolvedSchema, isResolved, isResourceSpecified, moveUniqueConstraint, removeUniqueConstraint, removeUniqueConstraint, setSpecifiedCatalog, setSpecifiedName, setSpecifiedSchema, uniqueConstraintsSize
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.context.java.JavaJpaContextNode
getValidationTextRange, javaCompletionProposals, validate
 

Method Detail

initialize

void initialize(CollectionTable2_0Annotation collectionTableAnnotation)

update

void update(CollectionTable2_0Annotation collectionTableAnnotation)

joinColumns

java.util.ListIterator<JavaJoinColumn> joinColumns()
Description copied from interface: ReferenceTable
Return the join table's join columns, whether specified or default.

Specified by:
joinColumns in interface JavaReferenceTable
Specified by:
joinColumns in interface ReferenceTable

getDefaultJoinColumn

JavaJoinColumn getDefaultJoinColumn()
Description copied from interface: ReferenceTable
Return the default join column or null. A default join column only exists if there are no specified join columns.

Specified by:
getDefaultJoinColumn in interface JavaReferenceTable
Specified by:
getDefaultJoinColumn in interface ReferenceTable

specifiedJoinColumns

java.util.ListIterator<JavaJoinColumn> specifiedJoinColumns()
Description copied from interface: ReferenceTable
Return the specified join columns.

Specified by:
specifiedJoinColumns in interface JavaReferenceTable
Specified by:
specifiedJoinColumns in interface ReferenceTable

addSpecifiedJoinColumn

JavaJoinColumn addSpecifiedJoinColumn(int index)
Description copied from interface: ReferenceTable
Add a specified join column to the join table. Return the newly-created join column.

Specified by:
addSpecifiedJoinColumn in interface JavaReferenceTable
Specified by:
addSpecifiedJoinColumn in interface ReferenceTable

uniqueConstraints

java.util.ListIterator<JavaUniqueConstraint> uniqueConstraints()
Specified by:
uniqueConstraints in interface JavaReferenceTable
Specified by:
uniqueConstraints in interface Table

addUniqueConstraint

JavaUniqueConstraint addUniqueConstraint(int index)
Specified by:
addUniqueConstraint in interface JavaReferenceTable
Specified by:
addUniqueConstraint in interface Table