Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JpaContextNode, JpaNode, JptResourceTypeReference, Model
All Known Subinterfaces:
CollectionTable2_0, JavaCollectionTable2_0, JavaJoinTable, JavaReferenceTable, JavaSecondaryTable, JavaTable, JoinTable, OrmCollectionTable2_0, OrmJoinTable, OrmReferenceTable, OrmSecondaryTable, OrmTable, OrmVirtualSecondaryTable, ReadOnlyJoinTable, ReadOnlyReferenceTable, ReadOnlySecondaryTable, ReferenceTable, SecondaryTable, Table, VirtualJoinTable, VirtualReferenceTable, VirtualSecondaryTable, VirtualTable

public interface ReadOnlyTable
extends JpaContextNode

Read-only 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.


Nested Class Summary
static class ReadOnlyTable.DbTableTransformer
           
static class ReadOnlyTable.NameTransformer
           
static interface ReadOnlyTable.Owner
          interface allowing columns to be used in multiple places (e.g. basic mappings and attribute overrides)
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<ReadOnlyTable,Table> DB_TABLE_TRANSFORMER
           
static String DEFAULT_CATALOG_PROPERTY
           
static String DEFAULT_NAME_PROPERTY
           
static String DEFAULT_SCHEMA_PROPERTY
           
static org.eclipse.jpt.common.utility.transformer.Transformer<ReadOnlyTable,String> NAME_TRANSFORMER
           
static String SPECIFIED_CATALOG_PROPERTY
           
static String SPECIFIED_NAME_PROPERTY
           
static String SPECIFIED_SCHEMA_PROPERTY
           
static String UNIQUE_CONSTRAINTS_LIST
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Method Summary
 boolean catalogIsResolved()
          Return whether the table has a catalog and it can be resolved to a catalog on the database.
 String getCatalog()
          Return the specified catalog if present, otherwise return the default catalog.
 TextRange getCatalogValidationTextRange()
           
 Catalog getDbCatalog()
          Return the corresponding database catalog.
 Schema getDbSchema()
          Return the corresponding database schema.
 SchemaContainer getDbSchemaContainer()
          Return the corresponding database schema container (catalog or database).
 Table getDbTable()
          Return the corresponding database table.
 String getDefaultCatalog()
           
 String getDefaultName()
           
 String getDefaultSchema()
           
 String getName()
          Return the specified name if present, otherwise return the default name.
 TextRange getNameValidationTextRange()
           
 String getSchema()
          Return the specified schema if present, otherwise return the default schema.
 TextRange getSchemaValidationTextRange()
           
 String getSpecifiedCatalog()
           
 String getSpecifiedName()
           
 String getSpecifiedSchema()
           
 ReadOnlyUniqueConstraint getUniqueConstraint(int index)
           
 org.eclipse.jpt.common.utility.iterable.ListIterable<? extends ReadOnlyUniqueConstraint> getUniqueConstraints()
           
 int getUniqueConstraintsSize()
           
 boolean isResolved()
          Return whether the table can be resolved to a table on the database.
 boolean schemaIsResolved()
          Return whether the table's schema can be resolved to a schema on the database.
 boolean validatesAgainstDatabase()
          Return whether the table is validated against a live database connection.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Field Detail

NAME_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<ReadOnlyTable,String> NAME_TRANSFORMER

SPECIFIED_NAME_PROPERTY

static final String SPECIFIED_NAME_PROPERTY
See Also:
Constant Field Values

DEFAULT_NAME_PROPERTY

static final String DEFAULT_NAME_PROPERTY
See Also:
Constant Field Values

DB_TABLE_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<ReadOnlyTable,Table> DB_TABLE_TRANSFORMER

SPECIFIED_SCHEMA_PROPERTY

static final String SPECIFIED_SCHEMA_PROPERTY
See Also:
Constant Field Values

DEFAULT_SCHEMA_PROPERTY

static final String DEFAULT_SCHEMA_PROPERTY
See Also:
Constant Field Values

SPECIFIED_CATALOG_PROPERTY

static final String SPECIFIED_CATALOG_PROPERTY
See Also:
Constant Field Values

DEFAULT_CATALOG_PROPERTY

static final String DEFAULT_CATALOG_PROPERTY
See Also:
Constant Field Values

UNIQUE_CONSTRAINTS_LIST

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

getName

String getName()
Return the specified name if present, otherwise return the default name.


getSpecifiedName

String getSpecifiedName()

getDefaultName

String getDefaultName()

isResolved

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


getDbTable

Table getDbTable()
Return the corresponding database table.


getSchema

String getSchema()
Return the specified schema if present, otherwise return the default schema.


getSpecifiedSchema

String getSpecifiedSchema()

getDefaultSchema

String getDefaultSchema()

schemaIsResolved

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


getDbSchema

Schema getDbSchema()
Return the corresponding database schema.


getCatalog

String getCatalog()
Return the specified catalog if present, otherwise return the default catalog.


getSpecifiedCatalog

String getSpecifiedCatalog()

getDefaultCatalog

String getDefaultCatalog()

catalogIsResolved

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


getDbCatalog

Catalog getDbCatalog()
Return the corresponding database catalog.


getUniqueConstraints

org.eclipse.jpt.common.utility.iterable.ListIterable<? extends ReadOnlyUniqueConstraint> getUniqueConstraints()

getUniqueConstraintsSize

int getUniqueConstraintsSize()

getUniqueConstraint

ReadOnlyUniqueConstraint getUniqueConstraint(int index)

getDbSchemaContainer

SchemaContainer getDbSchemaContainer()
Return the corresponding database schema container (catalog or database).


validatesAgainstDatabase

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


getNameValidationTextRange

TextRange getNameValidationTextRange()

getSchemaValidationTextRange

TextRange getSchemaValidationTextRange()

getCatalogValidationTextRange

TextRange getCatalogValidationTextRange()

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.