Class PropertyIdMethod

java.lang.Object
net.sf.basedb.plugins.batchimport.PropertyIdMethod
All Implemented Interfaces:
IdMethod

public class PropertyIdMethod extends Object implements IdMethod
Identification method implementation that can use a single property (eg, name, id, externalId, etc.) for identifying items.
Version:
2.8
Author:
nicklas
Last modified
$Date: 2011-03-16 12:48:47 +0100 (on, 16 mar 2011) $
  • Field Details

    • NAME

      public static final PropertyIdMethod NAME
      Use the name for finding items.
    • EXTERNAL_ID

      public static final PropertyIdMethod EXTERNAL_ID
      Use the external ID for finding items.
    • BARCODE

      public static final PropertyIdMethod BARCODE
      Use the barcode for finding items.
    • method

      private final String method
    • property

      private final String property
    • columnMappingParameterName

      private final String columnMappingParameterName
    • title

      private final String title
    • unique

      private final boolean unique
    • valueType

      private final Type valueType
  • Constructor Details

    • PropertyIdMethod

      public PropertyIdMethod(String method, String title, String property, String columnMappingParameterName, boolean unique, Type valueType)
      Create a new id method.
      Parameters:
      method - The method name, which should be unique among all methods
      title - The title to use for display purposes
      property - The name of the property to filter on when using this id method
      unique - If this property is guaranteed to be unique or not
      valueType - The type of values
  • Method Details