public class PersonProxy extends EntityProxy implements Person
EntityProxy
for Person
entities.EntityProxy
,
Person
,
Entity
Person.AgeRange, Person.Gender, Person.Name, Person.PersonType
Constructor and Description |
---|
PersonProxy(EntityId entityId,
Client client) |
Modifier and Type | Method and Description |
---|---|
Person.AgeRange |
getAgeRange() |
Location |
getBestLocation() |
LocationAssociation |
getBestLocationAssociation() |
java.lang.String |
getBestName() |
Person.Gender |
getGender() |
java.util.List<Person.Name> |
getNames() |
Person.PersonType |
getType() |
void |
load()
Causes this instance to load its data by contacting
the remote service and requesting information.
|
getAssociations, getBusinessAssociations, getBusinesses, getEntities, getId, getLocationAssociations, getLocations, getName, getPeople, getPersonAssociations, getPhoneAssociations, getPhones, isLoaded, isProxy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssociations, getBusinessAssociations, getBusinesses, getEntities, getId, getLocationAssociations, getLocations, getName, getPeople, getPersonAssociations, getPhoneAssociations, getPhones, isLoaded, isProxy
public void load() throws FindException
Entity
Causes this instance to load its data by contacting the remote service and requesting information. Once loaded, subsequent calls to this method have no effect.
This method is useful for proxy entities found at the edge of the graph.
load
in interface Entity
load
in class EntityProxy
FindException
- If the lookup fails before it is able to generate a Response
object.Entity.isProxy()
,
Entity.isLoaded()
,
EntityProxy
public Person.PersonType getType()
public java.util.List<Person.Name> getNames()
public Person.AgeRange getAgeRange()
getAgeRange
in interface Person
public Person.Gender getGender()
public java.lang.String getBestName()
getBestName
in interface Person
public LocationAssociation getBestLocationAssociation()
getBestLocationAssociation
in interface Person
public Location getBestLocation()
getBestLocation
in interface Person