@Entity public class Venue extends DomainObject implements Attributes<Venue,String>, Displayable
Venues.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,VenueAttribute> |
attributes
Any attribute that is not common for most of the entities belongs to be an Attribute rather than a field.
|
protected String |
displayName |
protected Long |
id |
protected String |
name
Unique Name to refer to the record
Id is an Auto generated number used by the system,
but is difficult for the outside world to get a handle on it.
|
| Constructor and Description |
|---|
Venue() |
Venue(PlaceRef location,
Organization ownerOrganization) |
Venue(String json) |
Venue(String name,
Organization ownerOrganization) |
Venue(Venue venue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
VenueAttribute |
getAttribute(String name)
Any attribute that is not common for most of the entities belongs to be an Attribute rather than a field.
|
Map<String,VenueAttribute> |
getAttributes() |
String |
getAttributeValue(String name)
Accessor to get the value and encapsulate how the value comes from the
Attributes.Attribute |
String |
getDisplayName() |
GeoLocation |
getGeoLocation()
|
Long |
getId() |
<P extends PlaceRef> |
getLocation()
|
String |
getName() |
Organization |
getOwnerOrganization() |
List<? extends PlaceRef> |
getPlaces()
The
PlaceRefs within a venue with multiple entry points. |
int |
hashCode() |
boolean |
liberalEquals(Venue obj)
Id or name matches
|
Venue |
setAttribute(String name,
String value)
This method encapsulates the responsibility of ensuring the @link Attribute} can be set into the entity,
including null checks, initializations, any relations between
Attributes and Attribute. |
void |
setAttributes(Map<String,VenueAttribute> attributes) |
void |
setDisplayName(String displayName) |
void |
setGeoLocation(GeoLocation geoLocation)
|
void |
setId(Long id) |
void |
setLocation(PlaceRef location)
|
void |
setName(String name) |
void |
setOwnerOrganization(Organization ownerOrganization) |
void |
setPlaces(List<? extends PlaceRef> places)
The
PlaceRefs within a venue with multiple entry points. |
String |
toString() |
@Type(value="HIDDEN") protected String name
protected Map<String,VenueAttribute> attributes
public Venue()
public Venue(String json)
public Venue(Venue venue)
public Venue(String name, Organization ownerOrganization)
public Venue(PlaceRef location, Organization ownerOrganization)
public <P extends PlaceRef> P getLocation()
geoLocation,
placespublic void setLocation(PlaceRef location)
geoLocation,
placespublic Long getId()
public void setId(Long id)
id - the id to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getDisplayName()
getDisplayName in interface Displayablepublic void setDisplayName(String displayName)
displayName - the displayName to setpublic GeoLocation getGeoLocation()
location was intended to be PointRef type.
However some complications (Location has to be relation, but PlaceRef
type does not guarantee a GeoLocation hence the relation was not possible) prevented it.location + its geoLocation.locationpublic void setGeoLocation(GeoLocation geoLocation)
location was intended to be PointRef type.
However some complications (Location has to be relation, but PlaceRef
type does not guarantee a GeoLocation hence the relation was not possible) prevented it.location + its geoLocation.locationpublic Organization getOwnerOrganization()
Organizationpublic void setOwnerOrganization(Organization ownerOrganization)
ownerOrganization - as Organizationpublic Map<String,VenueAttribute> getAttributes()
public void setAttributes(Map<String,VenueAttribute> attributes)
public VenueAttribute getAttribute(String name)
public String getAttributeValue(String name)
AttributesAttributes.AttributegetAttributeValue in interface Attributes<Venue,String>name - as Stringpublic Venue setAttribute(String name, String value)
AttributesAttributes and Attribute.setAttribute in interface Attributes<Venue,String>name - as Stringvalue - as public boolean liberalEquals(Venue obj)
Copyright © 2018. All rights reserved.