Interface DestinationRepository


public interface DestinationRepository
  • Method Details

    • get

      Destination get(String destinationName)
      Get record
      Parameters:
      destinationName - the name string key of the destination to be retrieved from the datastore
      Returns:
      destination object or null if no matching record
    • save

      int save(Collection<StoredDestination> storedDestinations)
      Insert a collection of records
      Parameters:
      storedDestinations - a collection of records to be inserted
      Returns:
      count of records inserted
    • names

      List<String> names()
      get all display names
      Returns:
      List of all destination display name strings
    • delete

      Destination delete(String destinationName)
      Delete record
      Parameters:
      destinationName - the name key string of the destination record to be deleted
      Returns:
      the destination record that was deleted