Interface DestinationRepository
public interface DestinationRepository
-
Method Summary
Modifier and TypeMethodDescriptionDelete recordGet recordnames()get all display namesintsave(Collection<StoredDestination> storedDestinations) Insert a collection of records
-
Method Details
-
get
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
Insert a collection of records- Parameters:
storedDestinations- a collection of records to be inserted- Returns:
- count of records inserted
-
names
get all display names- Returns:
- List of all destination display name strings
-
delete
Delete record- Parameters:
destinationName- the name key string of the destination record to be deleted- Returns:
- the destination record that was deleted
-