Class RestrictionDefinition

java.lang.Object
net.sf.jailer.datamodel.RestrictionDefinition

public class RestrictionDefinition extends Object
Defines a restriction on an association.
Author:
Ralf Wisser
  • Field Details

    • from

      public final Table from
      Source table.
    • to

      public final Table to
      Destination table.
    • name

      public final String name
      Name of restriction or null.
    • condition

      public final String condition
      Restriction condition.
    • isIgnored

      public final boolean isIgnored
      Is ignored?
  • Constructor Details

    • RestrictionDefinition

      public RestrictionDefinition(Table from, Table to, String name, String condition, boolean isIgnored)
      Constructor.
      Parameters:
      from - source table
      to - destination table
      name - name of restriction or null
      condition - restriction condition
      isIgnored - true if the association is ignored
  • Method Details

    • fromRestrictionModel

      public static List<RestrictionDefinition> fromRestrictionModel(ExtractionModel extractionModel)
      Gets list of all restriction definition from ExtractionModel.
      Parameters:
      extractionModel - the extraction model
      Returns:
      all restriction definition from extractionModel