Class DiscriminatorMappingInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class DiscriminatorMappingInfo
    extends MappingInfo
    Information about the mapping from a discriminator to the schema, in raw form. The columns and tables used in mapping info will not be part of the SchemaGroup used at runtime. Rather, they will be structs with the relevant pieces of information filled in.
    Author:
    Abe White
    See Also:
    Serialized Form
    • Constructor Detail

      • DiscriminatorMappingInfo

        public DiscriminatorMappingInfo()
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Raw discriminator value string.
      • setValue

        public void setValue​(java.lang.String value)
        Raw discriminator value string.
      • getValue

        public java.lang.Object getValue​(Discriminator discrim,
                                         boolean adapt)
        Return the discriminator value as an object of the right type.
      • getColumns

        public Column[] getColumns​(Discriminator discrim,
                                   Column[] tmplates,
                                   boolean adapt)
        Return the columns set for this discriminator, based on the given templates.
      • getIndex

        public Index getIndex​(Discriminator discrim,
                              Column[] cols,
                              boolean adapt)
        Return the index to set on the discriminator columns, or null if none.
      • syncWith

        public void syncWith​(Discriminator disc)
        Synchronize internal information with the mapping data for the given discriminator.
      • clear

        protected void clear​(boolean canFlags)
        Description copied from class: MappingInfo
        Clear mapping information.
        Overrides:
        clear in class MappingInfo
        Parameters:
        canFlags - whether to clear information about whether we can place indexed, foreign keys, etc on this mapping