org.eclipse.jpt.core.context
Interface BaseOverride.Owner

All Known Subinterfaces:
AssociationOverride.Owner, AttributeOverride.Owner, JavaAssociationOverride.Owner, JavaAttributeOverride.Owner, JavaOverride.Owner
Enclosing interface:
BaseOverride

public static interface BaseOverride.Owner


Method Summary
 java.util.Iterator<java.lang.String> allOverridableAttributeNames()
          Return an Iterator of all attribute names that can be overridden
 org.eclipse.wst.validation.internal.provisional.core.IMessage buildColumnTableNotValidMessage(BaseOverride override, BaseColumn column, TextRange textRange)
           
 org.eclipse.wst.validation.internal.provisional.core.IMessage buildColumnUnresolvedNameMessage(BaseOverride override, NamedColumn column, TextRange textRange)
          Return a validation message for the column's name not resolving on the table either specified or default.
 java.util.Iterator<java.lang.String> candidateTableNames()
          Return a list of table names that are valid for the overrides column or join columns
 Table getDbTable(java.lang.String tableName)
          Return the database table for the specified table name
 java.lang.String getDefaultTableName()
          Return the name of the table which the column belongs to by default
 TypeMapping getTypeMapping()
          Return the type mapping that this override is contained in
 boolean isVirtual(BaseOverride override)
          Return whether the given override is virtual.
 BaseOverride setVirtual(boolean virtual, BaseOverride override)
          If false, add the given override as a specified override and remove it from the list of virtual overrides.
 boolean tableNameIsInvalid(java.lang.String tableName)
          return whether the given table cannot be explicitly specified in the column or join column's 'table' element
 

Method Detail

getTypeMapping

TypeMapping getTypeMapping()
Return the type mapping that this override is contained in

Returns:

allOverridableAttributeNames

java.util.Iterator<java.lang.String> allOverridableAttributeNames()
Return an Iterator of all attribute names that can be overridden


isVirtual

boolean isVirtual(BaseOverride override)
Return whether the given override is virtual. Virtual means that it is not specified, but defaulted in from the mapped superclass or embeddable.


setVirtual

BaseOverride setVirtual(boolean virtual,
                        BaseOverride override)
If false, add the given override as a specified override and remove it from the list of virtual overrides. If true, then remove it from the specified overrides and add it to the virtual overrides as applicable. Return the new override (whether virtual or specified)


tableNameIsInvalid

boolean tableNameIsInvalid(java.lang.String tableName)
return whether the given table cannot be explicitly specified in the column or join column's 'table' element


candidateTableNames

java.util.Iterator<java.lang.String> candidateTableNames()
Return a list of table names that are valid for the overrides column or join columns


getDbTable

Table getDbTable(java.lang.String tableName)
Return the database table for the specified table name


getDefaultTableName

java.lang.String getDefaultTableName()
Return the name of the table which the column belongs to by default


buildColumnTableNotValidMessage

org.eclipse.wst.validation.internal.provisional.core.IMessage buildColumnTableNotValidMessage(BaseOverride override,
                                                                                              BaseColumn column,
                                                                                              TextRange textRange)

buildColumnUnresolvedNameMessage

org.eclipse.wst.validation.internal.provisional.core.IMessage buildColumnUnresolvedNameMessage(BaseOverride override,
                                                                                               NamedColumn column,
                                                                                               TextRange textRange)
Return a validation message for the column's name not resolving on the table either specified or default. Use the given text range in the message