public abstract class EntityImpl extends java.lang.Object implements Entity
Entity
types.Entity
Constructor and Description |
---|
EntityImpl() |
EntityImpl(EntityId id) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Association> |
getAssociations()
A convenience method for getting the concatenation of
the association lists.
|
java.util.List<BusinessAssociation> |
getBusinessAssociations() |
java.util.List<Business> |
getBusinesses() |
java.util.List<Entity> |
getEntities()
A convenience method for getting the concatenation of
the entity lists.
|
EntityId |
getId() |
java.util.List<LocationAssociation> |
getLocationAssociations() |
java.util.List<Location> |
getLocations() |
abstract java.lang.String |
getName()
A standardized method for getting the primary, human readable,
formatted String version of this entity.
|
java.util.List<Person> |
getPeople() |
java.util.List<PersonAssociation> |
getPersonAssociations() |
java.util.List<PhoneAssociation> |
getPhoneAssociations() |
java.util.List<Phone> |
getPhones() |
boolean |
isLoaded()
If the called on a proxy, return true only
if the backing entity has been fetched.
|
boolean |
isProxy()
Returns true if this entity instance is a proxy instance.
|
void |
load()
Causes this instance to load its data by contacting
the remote service and requesting information.
|
void |
setBusinessAssociations(java.util.List<BusinessAssociation> businessAssociations) |
void |
setId(EntityId id) |
void |
setLocationAssociations(java.util.List<LocationAssociation> locationAssociations) |
void |
setPersonAssociations(java.util.List<PersonAssociation> personAssociations) |
void |
setPhoneAssociations(java.util.List<PhoneAssociation> phoneAssociations) |
public EntityImpl()
public EntityImpl(EntityId id)
public void setId(EntityId id)
public java.util.List<PersonAssociation> getPersonAssociations()
getPersonAssociations
in interface Entity
public void setPersonAssociations(java.util.List<PersonAssociation> personAssociations)
public java.util.List<BusinessAssociation> getBusinessAssociations()
getBusinessAssociations
in interface Entity
public void setBusinessAssociations(java.util.List<BusinessAssociation> businessAssociations)
public java.util.List<LocationAssociation> getLocationAssociations()
getLocationAssociations
in interface Entity
public void setLocationAssociations(java.util.List<LocationAssociation> locationAssociations)
public java.util.List<PhoneAssociation> getPhoneAssociations()
getPhoneAssociations
in interface Entity
public void setPhoneAssociations(java.util.List<PhoneAssociation> phoneAssociations)
public java.util.List<Association> getAssociations()
Entity
getAssociations
in interface Entity
public java.util.List<Business> getBusinesses()
getBusinesses
in interface Entity
public java.util.List<Location> getLocations()
getLocations
in interface Entity
public java.util.List<Entity> getEntities()
Entity
getEntities
in interface Entity
public abstract java.lang.String getName()
Entity
public boolean isProxy()
Entity
isProxy
in interface Entity
Entity.isLoaded()
,
Entity.load()
,
EntityProxy
public boolean isLoaded()
Entity
isLoaded
in interface Entity
Entity.isProxy()
,
Entity.load()
,
EntityProxy
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
FindException
- If the lookup fails before it is able to generate a Response
object.Entity.isProxy()
,
Entity.isLoaded()
,
EntityProxy