public static class PeopleRepository.Mixin extends Object implements PeopleRepository
PeopleRepository.Mixin
Constructor and Description |
---|
Mixin() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Person parent,
Person child) |
Address |
createAddress(String street,
String zipCode,
City city,
Country country,
Rent rent) |
City |
createCity(String cityName) |
Country |
createCountry(String countryCode,
String countryName) |
Person |
createPerson(String name,
Country nationality,
Address address,
Person spouse,
PhoneNumber homeNumber) |
PhoneNumber |
createPhoneNumber(String phoneNumberString) |
Address |
findAddress(Identity addressId) |
City |
findCity(Identity cityId) |
Country |
findCountryByCountryCode(String countryCode) |
Country |
findCountryByIdentity(Identity countryId) |
Person |
findPersonByName(String name) |
PhoneNumber |
findPhoneNumberById(Identity phoneNumberId) |
public Person createPerson(String name, Country nationality, Address address, Person spouse, PhoneNumber homeNumber)
createPerson
in interface PeopleRepository
public void addChild(Person parent, Person child)
addChild
in interface PeopleRepository
public Person findPersonByName(String name)
findPersonByName
in interface PeopleRepository
public Country createCountry(String countryCode, String countryName)
createCountry
in interface PeopleRepository
public Country findCountryByCountryCode(String countryCode)
findCountryByCountryCode
in interface PeopleRepository
public Country findCountryByIdentity(Identity countryId)
findCountryByIdentity
in interface PeopleRepository
public Address createAddress(String street, String zipCode, City city, Country country, Rent rent)
createAddress
in interface PeopleRepository
public Address findAddress(Identity addressId)
findAddress
in interface PeopleRepository
public City createCity(String cityName)
createCity
in interface PeopleRepository
public City findCity(Identity cityId)
findCity
in interface PeopleRepository
public PhoneNumber createPhoneNumber(String phoneNumberString)
createPhoneNumber
in interface PeopleRepository
public PhoneNumber findPhoneNumberById(Identity phoneNumberId)
findPhoneNumberById
in interface PeopleRepository