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 PeopleRepositorypublic void addChild(Person parent, Person child)
addChild in interface PeopleRepositorypublic Person findPersonByName(String name)
findPersonByName in interface PeopleRepositorypublic Country createCountry(String countryCode, String countryName)
createCountry in interface PeopleRepositorypublic Country findCountryByCountryCode(String countryCode)
findCountryByCountryCode in interface PeopleRepositorypublic Country findCountryByIdentity(Identity countryId)
findCountryByIdentity in interface PeopleRepositorypublic Address createAddress(String street, String zipCode, City city, Country country, Rent rent)
createAddress in interface PeopleRepositorypublic Address findAddress(Identity addressId)
findAddress in interface PeopleRepositorypublic City createCity(String cityName)
createCity in interface PeopleRepositorypublic City findCity(Identity cityId)
findCity in interface PeopleRepositorypublic PhoneNumber createPhoneNumber(String phoneNumberString)
createPhoneNumber in interface PeopleRepositorypublic PhoneNumber findPhoneNumberById(Identity phoneNumberId)
findPhoneNumberById in interface PeopleRepository