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

All Known Subinterfaces:
AssociationOverrideContainer.Owner, AttributeOverrideContainer.Owner, JavaAssociationOverrideContainer.Owner, JavaAttributeOverrideContainer.Owner, JavaOverrideContainer.Owner, OrmAssociationOverrideContainer.Owner, OrmAttributeOverrideContainer.Owner, OrmOverrideContainer.Owner
Enclosing interface:
OverrideContainer

public static interface OverrideContainer.Owner


Method Summary
 java.util.Iterator<java.lang.String> allOverridableNames()
          Return an iterator of all the names of the attributes/associations to be overridden.
 org.eclipse.wst.validation.internal.provisional.core.IMessage buildColumnTableNotValidMessage(BaseOverride override, BaseColumn column, TextRange textRange)
          Return a validation message for the column's table not being valid in the context.
 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 getOverridableTypeMapping()
          Return the type mapping that contains the attributes/associations to be overridden.
 TypeMapping getTypeMapping()
          Return the mapping of the persistent type where the container is defined.
 boolean tableNameIsInvalid(java.lang.String tableName)
          return whether the given table cannot be explicitly specified in the column's 'table' element
 

Method Detail

getTypeMapping

TypeMapping getTypeMapping()
Return the mapping of the persistent type where the container is defined. (For example, on an entity, this would be the entity. On an embedded, this would be the type mapping where the embedded is defined.)


getOverridableTypeMapping

TypeMapping getOverridableTypeMapping()
Return the type mapping that contains the attributes/associations to be overridden. (Though the type mapping may not *directly* own them. i.e. they may be on a supertype mapping.) (For example, on an entity, this would be the supertype mapping of that entity. On an embedded, this would be the target type mapping of the embedded.)


allOverridableNames

java.util.Iterator<java.lang.String> allOverridableNames()
Return an iterator of all the names of the attributes/associations to be overridden. This is usually just all of the overridable names of the overridable type mapping.

See Also:
getOverridableTypeMapping()

getDefaultTableName

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


tableNameIsInvalid

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


getDbTable

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


candidateTableNames

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


buildColumnTableNotValidMessage

org.eclipse.wst.validation.internal.provisional.core.IMessage buildColumnTableNotValidMessage(BaseOverride override,
                                                                                              BaseColumn column,
                                                                                              TextRange textRange)
Return a validation message for the column's table not being valid in the context. Use the given text range in the message


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