Class VariableFieldsUpsert

java.lang.Object
com.northconcepts.datapipeline.jdbc.upsert.VariableFieldsUpsert
All Implemented Interfaces:
IUpsert, Cloneable

public class VariableFieldsUpsert extends Object implements IUpsert

A upsert strategy that wraps another strategy to support a variable set of fields. This allows you to upsert some records with just ID + FIRST_NAME, others with ID + LAST_NAME + ADDRESS, or any other sets of fields

  • Constructor Details

    • VariableFieldsUpsert

      public VariableFieldsUpsert(VariableFieldsUpsert.IUpsertFactory factory)
      Creates an upsert that asks the factory for a new strategy for each distinct sequence of field names.
    • VariableFieldsUpsert

      public VariableFieldsUpsert(Class<? extends IUpsert> upsertType)
      Creates an upsert that instantiates upsertType (via its no-arg constructor) for each distinct sequence of field names.
  • Method Details