Class OwnerMaintenance

java.lang.Object
petclinic.owners.OwnerMaintenance

public class OwnerMaintenance extends Object
A domain service class for Owner-related business operations.
  • Constructor Details

    • OwnerMaintenance

      public OwnerMaintenance()
  • Method Details

    • findById

      @Nullable public Owner findById(int ownerId)
    • findByLastName

      @NonNull public List<Owner> findByLastName(@NonNull String lastName)
      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

      public void createOrUpdate(@NonNull Owner newData)