Class ValueMappingInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValueMappingInfo
    extends MappingInfo
    Information about the mapping from a field value 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

      • ValueMappingInfo

        public ValueMappingInfo()
    • Method Detail

      • getUseClassCriteria

        public boolean getUseClassCriteria()
        Whether to use class criteria when joining to related type.
      • setUseClassCriteria

        public void setUseClassCriteria​(boolean criteria)
        Whether to use class criteria when joining to related type.
      • canIndicateNull

        public boolean canIndicateNull()
        Whether user has explicitly turned null indicator column off.
      • setCanIndicateNull

        public void setCanIndicateNull​(boolean ind)
        Whether user has explicitly turned null indicator column off.
      • getTypeJoin

        @Deprecated
        public ForeignKey getTypeJoin​(ValueMapping val,
                                      java.lang.String name,
                                      boolean inversable,
                                      boolean adapt)
        Deprecated.
        Return the join from this value to its related type.
        Parameters:
        name - base name for value mapping
        inversable - whether an inverse join is allowed
      • getInverseTypeJoin

        @Deprecated
        public ForeignKey getInverseTypeJoin​(ValueMapping val,
                                             java.lang.String name,
                                             boolean adapt)
        Deprecated.
        Return the join from the related type to this value.
      • getColumns

        @Deprecated
        public Column[] getColumns​(ValueMapping val,
                                   java.lang.String name,
                                   Column[] tmplates,
                                   Table table,
                                   boolean adapt)
        Deprecated.
        Return the columns for this value, based on the given templates.
      • findTargetField

        public int findTargetField​(Column[] tmplates,
                                   java.lang.String target)
        Return the position of the template column with the given target field.
      • getUnique

        @Deprecated
        public Unique getUnique​(ValueMapping val,
                                java.lang.String name,
                                boolean adapt)
        Deprecated.
        Return a unique constraint for the given columns, or null if none.
      • getIndex

        @Deprecated
        public Index getIndex​(ValueMapping val,
                              java.lang.String name,
                              boolean adapt)
        Deprecated.
        Return an index for the given columns, or null if none.
      • getNullIndicatorColumn

        @Deprecated
        public Column getNullIndicatorColumn​(ValueMapping val,
                                             java.lang.String name,
                                             Table table,
                                             boolean adapt)
        Deprecated.
        Return the null indicator column for this value, or null if none.
      • syncWith

        public void syncWith​(ValueMapping val)
        Synchronize internal information with the mapping data for the given value.
      • 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
      • getMapsIdColumns

        public java.util.List<Column> getMapsIdColumns()
        Raw column data.
      • setMapsIdColumns

        public void setMapsIdColumns​(java.util.List<Column> cols)
        Raw column data.