Class Usage

java.lang.Object
cdc.impex.templates.Usage

public final class Usage extends Object
Definition for each ImportAction of the expected presence of data or column.

When a column is missing, actual data is necessarily undefined.
When a column is present, actual data can be defined, undefined, or declared as ERASE.

Author:
Damien Carbonne
  • Field Details

  • Method Details

    • getName

      public String getName()
    • getPresence

      public Presence getPresence(ImportAction action)
    • isErasable

      public boolean isErasable()
      Returns:
      true if the column can be erased during update.
    • getCount

      public int getCount(Presence presence)
    • getImportActions

      public ImportAction[] getImportActions(Presence presence)
    • isMandatoryFor

      public boolean isMandatoryFor(ImportAction action)
      Parameters:
      action - The action.
      Returns:
      true if this usage is mandatory for action.
    • isOptionalFor

      public boolean isOptionalFor(ImportAction action)
      Parameters:
      action - The action.
      Returns:
      true if this usage is optional for action.
    • isIgnoredFor

      public boolean isIgnoredFor(ImportAction action)
      Parameters:
      action - The action.
      Returns:
      true if this usage is ignored for action.
    • isMandatoryForFutureImport

      public boolean isMandatoryForFutureImport()
      Returns:
      true if this usage is mandatory for a future import.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Usage.Builder builder()