|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.domain.geoloc.entity.OpenStreetMap
public class OpenStreetMap
Represents a street in OpenStreetMap. it is different from Street
that represent a street in Geonames.
Field Summary | |
---|---|
static String |
FULLTEXTSEARCH_COLUMN_NAME
Name of the column that is equals to store a string that is used for fulltext search. it deffer form the @ FULLTEXTSEARCH_COLUMN_NAME
because Hibernate, by default, lowercase the property to get the column
name This value should be change if the getter and the setter of the
getTextsearchVector() change |
static String |
FULLTEXTSEARCH_PROPERTY_NAME
Name of the field property in hibernate. |
static String |
FULLTEXTSEARCH_VECTOR_PROPERTY_NAME
Name of the column that is equals to to_tsvector( FULLTEXTSEARCH_COLUMN_NAME It is used to do Fulltext search with
the postgres text search module (to use the index). |
static String |
LOCATION_COLUMN_NAME
|
static String |
PARTIALSEARCH_COLUMN_NAME
Name of the column that is used to store a string used for partial search with postgres fulltext engine This value should be change if the getter and the setter of the getPartialsearchVector() change |
static String |
PARTIALSEARCH_VECTOR_PROPERTY_NAME
(Experimental) Name of the column that is equals to to_tsvector( PARTIALSEARCH_COLUMN_NAME It is used to do Fulltext search with
the postgres text search module (to use the index) This value should be
change if the getter and the setter of the partialSearchName
change |
static String |
SHAPE_COLUMN_NAME
|
Constructor Summary | |
---|---|
OpenStreetMap()
Needed by CGLib |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCountryCode()
|
Long |
getGid()
|
Long |
getId()
|
String |
getIsIn()
|
Double |
getLatitude()
|
Double |
getLength()
|
com.vividsolutions.jts.geom.Point |
getLocation()
Returns The JTS location point of the current street : The Geometry representation for the latitude, longitude. |
Double |
getLongitude()
|
String |
getName()
|
Long |
getOpenstreetmapId()
|
String |
getPartialSearchName()
(Experimental) This String is used to search for a part of a street name |
String |
getPartialsearchVector()
IT DOES NOTHING. |
com.vividsolutions.jts.geom.LineString |
getShape()
|
com.gisgraphy.street.StreetType |
getStreetType()
|
String |
getTextSearchName()
This value is use to do a Fulltext search for a street name with index |
String |
getTextsearchVector()
IT DOES NOTHING. |
int |
hashCode()
|
boolean |
isOneWay()
|
void |
setCountryCode(String countryCode)
|
void |
setGid(Long gid)
|
void |
setId(Long id)
|
void |
setIsIn(String isIn)
|
void |
setLength(Double length)
|
void |
setLocation(com.vividsolutions.jts.geom.Point location)
|
void |
setName(String name)
|
void |
setOneWay(boolean oneWay)
|
void |
setOpenstreetmapId(Long openstreetmapId)
|
void |
setPartialSearchName(String partialSearchName)
|
void |
setPartialsearchVector(String partialsearchVector)
IT DOES NOTHING. |
void |
setShape(com.vividsolutions.jts.geom.LineString shape)
|
void |
setStreetType(com.gisgraphy.street.StreetType streetType)
|
void |
setTextSearchName(String textSearchName)
|
void |
setTextsearchVector(String textsearchVector)
IT DOES NOTHING. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SHAPE_COLUMN_NAME
public static final String FULLTEXTSEARCH_VECTOR_PROPERTY_NAME
FULLTEXTSEARCH_COLUMN_NAME
It is used to do Fulltext search with
the postgres text search module (to use the index). This value should be
change if the getter and the setter of the textSearchName
change
public static final String PARTIALSEARCH_VECTOR_PROPERTY_NAME
PARTIALSEARCH_COLUMN_NAME
It is used to do Fulltext search with
the postgres text search module (to use the index) This value should be
change if the getter and the setter of the partialSearchName
change
GisgraphyConfig.PARTIAL_SEARH_EXPERIMENTAL
,
Constant Field Valuespublic static final String FULLTEXTSEARCH_PROPERTY_NAME
getTextsearchVector()
change
StreetSearchMode.FULLTEXT
,
Constant Field Valuespublic static final String FULLTEXTSEARCH_COLUMN_NAME
FULLTEXTSEARCH_COLUMN_NAME
because Hibernate, by default, lowercase the property to get the column
name This value should be change if the getter and the setter of the
getTextsearchVector()
change
StreetSearchMode.FULLTEXT
public static final String PARTIALSEARCH_COLUMN_NAME
getPartialsearchVector()
change
GisgraphyConfig.PARTIAL_SEARH_EXPERIMENTAL
,
StreetSearchMode.CONTAINS
,
Constant Field Valuespublic static final String LOCATION_COLUMN_NAME
Constructor Detail |
---|
public OpenStreetMap()
Method Detail |
---|
public String getPartialSearchName()
StreetSearchMode.CONTAINS
,
GisgraphyConfig.PARTIAL_SEARH_EXPERIMENTAL
public void setPartialSearchName(String partialSearchName)
partialSearchName
- the partialSearchName to setpublic String getTextSearchName()
public void setTextSearchName(String textSearchName)
textSearchName
- the textSearchName to setpublic String getTextsearchVector()
public void setTextsearchVector(String textsearchVector)
textsearchVector
- the textsearchVector to setpublic String getPartialsearchVector()
public void setPartialsearchVector(String partialsearchVector)
partialsearchVector
- the ilikesearch to setpublic Long getId()
public void setId(Long id)
id
- the id to setpublic Long getGid()
openstreetmapId
because the value can not be in conflict between geonames and openstreetmappublic void setGid(Long gid)
gid
- the gid to setpublic Long getOpenstreetmapId()
public void setOpenstreetmapId(Long openstreetmapId)
openstreetmapId
- the openstreetmap internal idpublic String getName()
public void setName(String name)
name
- the name to setpublic com.gisgraphy.street.StreetType getStreetType()
public void setStreetType(com.gisgraphy.street.StreetType streetType)
streetType
- the streetType to setpublic boolean isOneWay()
public void setOneWay(boolean oneWay)
oneWay
- the oneWay to setpublic com.vividsolutions.jts.geom.Point getLocation()
SRID
SRID
public Double getLatitude()
getLocation()
.getLongitude()
,
getLocation()
public Double getLongitude()
getLocation()
.getLongitude()
,
getLocation()
public void setLocation(com.vividsolutions.jts.geom.Point location)
location
- the location to setpublic com.vividsolutions.jts.geom.LineString getShape()
public void setShape(com.vividsolutions.jts.geom.LineString shape)
shape
- the shape to setpublic String getCountryCode()
public void setCountryCode(String countryCode)
countryCode
- the countryCode to setpublic Double getLength()
public void setLength(Double length)
length
- the length to setpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String getIsIn()
public void setIsIn(String isIn)
isIn
- The city or state or any information where the street is
located
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |