Dali Provisional API
Release 3.2

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

All Superinterfaces:
IAdaptable, JpaContextModel, JpaModel, JptResourceTypeReference, Model
All Known Subinterfaces:
AssociationOverride, AssociationOverride2_0, AttributeOverride, JavaSpecifiedAssociationOverride, JavaSpecifiedAssociationOverride2_0, JavaSpecifiedAttributeOverride, JavaSpecifiedOverride, JavaVirtualAssociationOverride, JavaVirtualAttributeOverride, JavaVirtualOverride, OrmSpecifiedAssociationOverride, OrmSpecifiedAssociationOverride2_0, OrmSpecifiedAttributeOverride, OrmSpecifiedOverride, OrmVirtualAssociationOverride, OrmVirtualAttributeOverride, OrmVirtualOverride, SpecifiedAssociationOverride, SpecifiedAttributeOverride, SpecifiedOverride, VirtualAssociationOverride, VirtualAttributeOverride, VirtualOverride

public interface Override_
extends JpaContextModel

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 Override_.NameTransformer
           
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaModel
JpaModel.JpaVersionIsCompatibleWith
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
static String NAME_PROPERTY
           
static org.eclipse.jpt.common.utility.transformer.Transformer<Override_,String> NAME_TRANSFORMER
           
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Method Summary
 org.eclipse.jpt.jpa.core.internal.context.JpaValidator buildColumnValidator(BaseColumn column, TableColumn.ParentAdapter parentAdapter)
           
 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.JpaContextModel
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getParent, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel
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<Override_,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:
SpecifiedOverride.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.JpaValidator buildColumnValidator(BaseColumn column,
                                                                            TableColumn.ParentAdapter parentAdapter)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.