org.eclipse.jpt.jpa.core.context
Interface Table

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model, ReadOnlyTable
All Known Subinterfaces:
CollectionTable2_0, JavaCollectionTable2_0, JavaJoinTable, JavaReferenceTable, JavaSecondaryTable, JavaTable, JoinTable, OrmCollectionTable2_0, OrmJoinTable, OrmReferenceTable, OrmSecondaryTable, OrmTable, ReferenceTable, SecondaryTable

public interface Table
extends ReadOnlyTable

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
Version:
2.2

Nested Class Summary
static interface Table.Owner
          interface allowing columns to be used in multiple places (e.g.
 
Field Summary
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyTable
DEFAULT_CATALOG_PROPERTY, DEFAULT_NAME_PROPERTY, DEFAULT_SCHEMA_PROPERTY, SPECIFIED_CATALOG_PROPERTY, SPECIFIED_NAME_PROPERTY, SPECIFIED_SCHEMA_PROPERTY, UNIQUE_CONSTRAINTS_LIST
 
Method Summary
 UniqueConstraint addUniqueConstraint()
           
 UniqueConstraint addUniqueConstraint(int index)
           
 boolean catalogIsResolved()
          Return whether the table has a catalog and it can be resolved to a catalog on the database.
 UniqueConstraint getUniqueConstraint(int index)
           
 boolean isResolved()
          Return whether the table can be resolved to a table on the database.
 boolean isSpecifiedInResource()
          Return whether the table is specified in the (Java or XML) resource.
 void moveUniqueConstraint(int targetIndex, int sourceIndex)
           
 void removeUniqueConstraint(int index)
           
 void removeUniqueConstraint(UniqueConstraint uniqueConstraint)
           
 boolean schemaIsResolved()
          Return whether the table's schema can be resolved to a schema on the database.
 void setSpecifiedCatalog(java.lang.String value)
           
 void setSpecifiedName(java.lang.String value)
           
 void setSpecifiedSchema(java.lang.String value)
           
 java.util.ListIterator<? extends UniqueConstraint> uniqueConstraints()
           
 boolean validatesAgainstDatabase()
          Return whether the table is validated against a live database connection.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyTable
getCatalog, getDbCatalog, getDbSchema, getDbSchemaContainer, getDbTable, getDefaultCatalog, getDefaultName, getDefaultSchema, getName, getSchema, getSpecifiedCatalog, getSpecifiedName, getSpecifiedSchema, uniqueConstraintsSize
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaProject, getParent, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.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.common.core.IResourcePart
getResource
 

Method Detail

setSpecifiedName

void setSpecifiedName(java.lang.String value)

setSpecifiedSchema

void setSpecifiedSchema(java.lang.String value)

setSpecifiedCatalog

void setSpecifiedCatalog(java.lang.String value)

uniqueConstraints

java.util.ListIterator<? extends UniqueConstraint> uniqueConstraints()
Specified by:
uniqueConstraints in interface ReadOnlyTable

getUniqueConstraint

UniqueConstraint getUniqueConstraint(int index)
Specified by:
getUniqueConstraint in interface ReadOnlyTable

addUniqueConstraint

UniqueConstraint addUniqueConstraint()

addUniqueConstraint

UniqueConstraint addUniqueConstraint(int index)

removeUniqueConstraint

void removeUniqueConstraint(int index)

removeUniqueConstraint

void removeUniqueConstraint(UniqueConstraint uniqueConstraint)

moveUniqueConstraint

void moveUniqueConstraint(int targetIndex,
                          int sourceIndex)

isSpecifiedInResource

boolean isSpecifiedInResource()
Return whether the table is specified in the (Java or XML) resource.


isResolved

boolean isResolved()
Return whether the table can be resolved to a table on the database.


schemaIsResolved

boolean schemaIsResolved()
Return whether the table's schema can be resolved to a schema on the database.


catalogIsResolved

boolean catalogIsResolved()
Return whether the table has a catalog and it can be resolved to a catalog on the database.


validatesAgainstDatabase

boolean validatesAgainstDatabase()
Return whether the table is validated against a live database connection.