Package petclinic.owners
Class OwnerMaintenance
java.lang.Object
petclinic.owners.OwnerMaintenance
A domain service class for
Owner
-related business operations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createOrUpdate
(Owner newData) findById
(int ownerId) findByLastName
(String lastName) Finds the owners whose last name starts with the given name.
-
Constructor Details
-
OwnerMaintenance
public OwnerMaintenance()
-
-
Method Details
-
findById
-
findByLastName
Finds the owners whose last name starts with the given name.- Parameters:
lastName
- a prefix of the owner's last name to search for- Returns:
- list of matching owners (empty if none found)
-
createOrUpdate
-