com.mizar.addressing
Class Street

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.persistence.jpa.beans.GeometryBean
          extended by com.mizar.addressing.Street
All Implemented Interfaces:
JPAGeometryInterface, JPAInterface, java.io.Serializable, java.lang.Comparable

@Entity
public abstract class Street
extends GeometryBean

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GeometryBean
searchTolerance, sridPrecision, wktLocation, wktMBR, wktShape
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
Street()
           
 
Method Summary
 Site addSite(Site site)
           
 StreetNameJoin addStreetNameJoin(StreetNameJoin streetNameJoin)
           
 int compareTo(java.lang.Object comparableStreet)
          Compares two Streets.
 boolean equals(java.lang.Object other)
           
 java.lang.String getComments()
           
 java.lang.String getFirstCounty()
           
 java.lang.String getFirstState()
           
 java.lang.String getFirstTown()
           
 java.lang.String getFirstZip()
           
 java.lang.String getFullAddress()
           
 java.lang.String getFullAddressWithRange()
           
 oracle.spatial.geometry.JGeometry getGeom()
          Entity classes implementing GeometryBean should have at least one SDO_GEOMETRY column in their associated table.
 StreetSide getLeft()
           
 County getLeftCounty()
           
 java.lang.Long getLeftFromAddress()
           
 java.lang.String getLeftState()
           
 java.lang.Long getLeftToAddress()
           
 Town getLeftTown()
           
 java.lang.String getLeftZip()
           
 java.lang.Long getMaximumAddress()
           
 java.lang.Long getMinimumAddress()
           
 java.lang.Long getOneWay()
           
 java.lang.Long getPrimaryKeyValue()
          NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)
 StreetSide getRight()
           
 County getRightCounty()
           
 java.lang.Long getRightFromAddress()
           
 java.lang.String getRightState()
           
 java.lang.Long getRightToAddress()
           
 Town getRightTown()
           
 java.lang.String getRightZip()
           
 java.lang.String getRouteNumber()
           
 java.lang.String getRouteSubnumber()
           
 java.util.List getSiteList()
           
 java.lang.Long getStreetId()
           
 StreetName getStreetName()
          This is the StreetName associated with the default street name.
 java.util.List<StreetNameJoin> getStreetNameJoinList()
           
 java.util.Set<StreetName> getStreetNames()
           
 StreetType getStreetType()
           
 int hashCode()
           
 Site removeSite(Site site)
           
 StreetNameJoin removeStreetNameJoin(StreetNameJoin streetNameJoin)
           
 void setComments(java.lang.String comments)
           
 void setGeom(oracle.spatial.geometry.JGeometry geom)
           
 void setLeft(StreetSide left)
           
 void setLeftCounty(County leftCounty)
           
 void setLeftFromAddress(java.lang.Long leftFromAddress)
           
 void setLeftState(java.lang.String leftState)
           
 void setLeftToAddress(java.lang.Long leftToAddress)
           
 void setLeftTown(Town leftTown)
           
 void setLeftZip(java.lang.String leftZip)
           
 void setOneWay(java.lang.Long oneWay)
           
 void setRight(StreetSide right)
           
 void setRightCounty(County rightCounty)
           
 void setRightFromAddress(java.lang.Long rightFromAddress)
           
 void setRightState(java.lang.String rightState)
           
 void setRightToAddress(java.lang.Long rightToAddress)
           
 void setRightTown(Town rightTown)
           
 void setRightZip(java.lang.String rightZip)
           
 void setRouteNumber(java.lang.String routeNumber)
           
 void setRouteSubnumber(java.lang.String routeSubnumber)
           
 void setSiteList(java.util.List siteList)
           
 void setStreetId(java.lang.Long streetId)
           
 void setStreetName(StreetName streetName)
           
 void setStreetNameJoinList(java.util.List<StreetNameJoin> streetNameJoinList)
           
 void setStreetNames(java.util.Set<StreetName> streetNames)
           
 void setStreetType(StreetType streetType)
           
 
Methods inherited from class com.mizar.persistence.jpa.beans.GeometryBean
getArea, getBasicGeometryType, getGeomDimensions, getGeomNumPoints, getGeomType, getGType, getHeight, getLength, getRange, getSearchTolerance, getSrid, getSridPrecision, getWidth, getWktLocation, getWktMBR, getWktShape, isGeometryExtant, setArea, setSearchTolerance, setSridPrecision, setWktLocation, setWktShape
 
Methods inherited from class com.mizar.persistence.jpa.beans.GenericBean
getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getREAD, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Street

public Street()
Method Detail

getStreetId

public java.lang.Long getStreetId()

getPrimaryKeyValue

public java.lang.Long getPrimaryKeyValue()
Description copied from class: GenericBean

NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)

 public Object getPrimaryKeyValue(){
   return getProperty();
 }
 

In the absence of an overriding method, this method provides a generic method to get the value of the primary key. This is especially useful for calls to em.find(object) from within abstract classes

Overrides:
getPrimaryKeyValue in class GenericBean
Returns:
JPAUtils#getPrimaryKeyValue(this)
See Also:
RowInterface.getPrimaryKeyValue()

setStreetId

public void setStreetId(java.lang.Long streetId)

getComments

public java.lang.String getComments()

setComments

public void setComments(java.lang.String comments)

getGeom

public oracle.spatial.geometry.JGeometry getGeom()
Description copied from class: GeometryBean
Entity classes implementing GeometryBean should have at least one SDO_GEOMETRY column in their associated table. It is entirely possible for an Entity to support more than one SDO_GEOMETRY column but one must be designated and the default or nominal object and a getter method called getGeom() must be mapped to it.

Specified by:
getGeom in class GeometryBean
Returns:
the principal SDO_GEOMETRY column

setGeom

public void setGeom(oracle.spatial.geometry.JGeometry geom)
Specified by:
setGeom in class GeometryBean

getOneWay

public java.lang.Long getOneWay()

setOneWay

public void setOneWay(java.lang.Long oneWay)

getStreetNameJoinList

public java.util.List<StreetNameJoin> getStreetNameJoinList()
Returns:
See Also:
getStreetNames()

setStreetNameJoinList

public void setStreetNameJoinList(java.util.List<StreetNameJoin> streetNameJoinList)

addStreetNameJoin

public StreetNameJoin addStreetNameJoin(StreetNameJoin streetNameJoin)

removeStreetNameJoin

public StreetNameJoin removeStreetNameJoin(StreetNameJoin streetNameJoin)

getStreetType

public StreetType getStreetType()

setStreetType

public void setStreetType(StreetType streetType)

getStreetName

public StreetName getStreetName()
This is the StreetName associated with the default street name.

Returns:

setStreetName

public void setStreetName(StreetName streetName)

getStreetNames

public java.util.Set<StreetName> getStreetNames()
Returns:
a List of street names
See Also:
getStreetNameJoinList()

setStreetNames

public void setStreetNames(java.util.Set<StreetName> streetNames)

getSiteList

public java.util.List getSiteList()

setSiteList

public void setSiteList(java.util.List siteList)

addSite

public Site addSite(Site site)

removeSite

public Site removeSite(Site site)

getRouteNumber

public java.lang.String getRouteNumber()

setRouteNumber

public void setRouteNumber(java.lang.String routeNumber)

getRouteSubnumber

public java.lang.String getRouteSubnumber()

setRouteSubnumber

public void setRouteSubnumber(java.lang.String routeSubnumber)

getMinimumAddress

public java.lang.Long getMinimumAddress()
Returns:
the minimum address, omitting 0 values which indicate non-addressability. Returns 0 if the ranges are 0-* and 0-*

getMaximumAddress

public java.lang.Long getMaximumAddress()

getFullAddressWithRange

public java.lang.String getFullAddressWithRange()

getFullAddress

public java.lang.String getFullAddress()

getFirstState

public java.lang.String getFirstState()

getFirstZip

public java.lang.String getFirstZip()

getFirstCounty

public java.lang.String getFirstCounty()

getFirstTown

public java.lang.String getFirstTown()

setRightFromAddress

public void setRightFromAddress(java.lang.Long rightFromAddress)

getRightFromAddress

public java.lang.Long getRightFromAddress()

setRightToAddress

public void setRightToAddress(java.lang.Long rightToAddress)

getRightToAddress

public java.lang.Long getRightToAddress()

setRightTown

public void setRightTown(Town rightTown)

getRightTown

public Town getRightTown()

setRightCounty

public void setRightCounty(County rightCounty)

getRightCounty

public County getRightCounty()

setRightState

public void setRightState(java.lang.String rightState)

getRightState

public java.lang.String getRightState()

setRightZip

public void setRightZip(java.lang.String rightZip)

getRightZip

public java.lang.String getRightZip()

setLeftFromAddress

public void setLeftFromAddress(java.lang.Long leftFromAddress)

getLeftFromAddress

public java.lang.Long getLeftFromAddress()

setLeftToAddress

public void setLeftToAddress(java.lang.Long leftToAddress)

getLeftToAddress

public java.lang.Long getLeftToAddress()

setLeftTown

public void setLeftTown(Town leftTown)

getLeftTown

public Town getLeftTown()

setLeftCounty

public void setLeftCounty(County leftCounty)

getLeftCounty

public County getLeftCounty()

setLeftState

public void setLeftState(java.lang.String leftState)

getLeftState

public java.lang.String getLeftState()

setLeftZip

public void setLeftZip(java.lang.String leftZip)

getLeftZip

public java.lang.String getLeftZip()

setRight

public void setRight(StreetSide right)

getRight

public StreetSide getRight()

setLeft

public void setLeft(StreetSide left)

getLeft

public StreetSide getLeft()

compareTo

public int compareTo(java.lang.Object comparableStreet)
              throws java.lang.ClassCastException
Compares two Streets.

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class GenericBean
Parameters:
comparableStreet -
Returns:
Returns standard compareTo int. If this Street's StreetID is null, returns negative Integer.MAX_VALUE. If comparableStreet's StreetID is null, returns Integer.MAX_VALUE.
Throws:
java.lang.ClassCastException

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class GenericBean
Parameters:
other -
Returns:
true or false if reference values are all equal
See Also:
compareTo(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class GenericBean