Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JpaContextNode, JpaNode, JptResourceTypeReference, Model
All Known Subinterfaces:
AssociationOverride, AttributeOverride, JavaAssociationOverride, JavaAssociationOverride2_0, JavaAttributeOverride, JavaOverride, JavaVirtualAssociationOverride, JavaVirtualAttributeOverride, JavaVirtualOverride, OrmAssociationOverride, OrmAssociationOverride2_0, OrmAttributeOverride, OrmOverride, OrmVirtualAssociationOverride, OrmVirtualAttributeOverride, OrmVirtualOverride, Override_, ReadOnlyAssociationOverride, ReadOnlyAssociationOverride2_0, ReadOnlyAttributeOverride, VirtualAssociationOverride, VirtualAttributeOverride, VirtualOverride

public interface ReadOnlyOverride
extends JpaContextNode

Read-only (specified or virtual)

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 ReadOnlyOverride.NameTransformer
           
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static String NAME_PROPERTY
           
static org.eclipse.jpt.common.utility.transformer.Transformer<ReadOnlyOverride,String> NAME_TRANSFORMER
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Method Summary
 org.eclipse.jpt.jpa.core.internal.context.JptValidator buildColumnValidator(ReadOnlyBaseColumn column, ReadOnlyTableColumn.Owner owner)
           
 Iterable<String> getCandidateTableNames()
          Return the names of tables that are valid for the override's column or join column.
 String getDefaultTableName()
          Return the name of the default table for the override's column or join column.
 String getName()
           
 TextRange getNameTextRange()
          Return the (best guess) text location of the override's name.
 TypeMapping getTypeMapping()
           
 boolean isVirtual()
          Return true if the override is not explicitly specified on the override's parent (i.e. it occurs by default); return false if the override is explicitly specified on the override's parent.
 Table resolveDbTable(String tableName)
          Return the database table for the specified table name.
 boolean tableNameIsInvalid(String tableName)
          Return whether the specified table cannot be explicitly specified as the table for the override's column or join column.
 
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_PROPERTY

static final String NAME_PROPERTY
See Also:
Constant Field Values

NAME_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<ReadOnlyOverride,String> NAME_TRANSFORMER
Method Detail

getName

String getName()

isVirtual

boolean isVirtual()
Return true if the override is not explicitly specified on the override's parent (i.e. it occurs by default); return false if the override is explicitly specified on the override's parent.

See Also:
Override_.convertToVirtual(), VirtualOverride.convertToSpecified()

getTypeMapping

TypeMapping getTypeMapping()
See Also:
OverrideContainer.getTypeMapping()

tableNameIsInvalid

boolean tableNameIsInvalid(String tableName)
Return whether the specified table cannot be explicitly specified as the table for the override's column or join column.


getCandidateTableNames

Iterable<String> getCandidateTableNames()
Return the names of tables that are valid for the override's column or join column.


resolveDbTable

Table resolveDbTable(String tableName)
Return the database table for the specified table name.


getDefaultTableName

String getDefaultTableName()
Return the name of the default table for the override's column or join column.


getNameTextRange

TextRange getNameTextRange()
Return the (best guess) text location of the override's name.


buildColumnValidator

org.eclipse.jpt.jpa.core.internal.context.JptValidator buildColumnValidator(ReadOnlyBaseColumn column,
                                                                            ReadOnlyTableColumn.Owner owner)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.