com.mizar.addressing
Class Site

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

@Entity
public abstract class Site
extends GeometryBean
implements java.io.Serializable, JPAInterface, JPAGeometryInterface

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
Site()
           
 
Method Summary
 int compareTo(java.lang.Object comparableSite)
          This method compares Sites and return the standard compareTo result int.
 boolean equals(java.lang.Object other)
           
 java.lang.Long getAddressable()
           
 java.lang.Long getAddressNumber()
           
 java.lang.String getComments()
           
 County getCounty()
           
 java.lang.Long getDistanceAlong()
           
 oracle.spatial.geometry.JGeometry getDropLine()
           
 java.lang.String getFullAddress()
           
 oracle.spatial.geometry.JGeometry getGeom()
          Entity classes implementing GeometryBean should have at least one SDO_GEOMETRY column in their associated table.
 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)
 java.lang.String getSide()
           
 java.lang.Long getSiteId()
           
 SiteType getSiteType()
           
 java.lang.String getState()
           
 Street getStreet()
           
 Town getTown()
           
 java.lang.String getZip()
           
 int hashCode()
           
 void setAddressable(java.lang.Long addressable)
           
 void setAddressNumber(java.lang.Long addressNumber)
           
 void setComments(java.lang.String comments)
           
 void setCounty(County county)
           
 void setDistanceAlong(java.lang.Long distanceAlong)
           
 void setDropLine(oracle.spatial.geometry.JGeometry dropLine)
           
 void setGeom(oracle.spatial.geometry.JGeometry geom)
           
 void setSide(java.lang.String side)
           
 void setSiteId(java.lang.Long siteId)
           
 void setSiteType(SiteType siteType)
           
 void setState(java.lang.String state)
           
 void setStreet(Street street)
           
 void setTown(Town town)
           
 void setZip(java.lang.String zip)
           
 
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

Site

public Site()
Method Detail

getSiteId

public java.lang.Long getSiteId()

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()

setSiteId

public void setSiteId(java.lang.Long siteId)

getAddressable

public java.lang.Long getAddressable()

setAddressable

public void setAddressable(java.lang.Long addressable)

getAddressNumber

public java.lang.Long getAddressNumber()

setAddressNumber

public void setAddressNumber(java.lang.Long addressNumber)

getComments

public java.lang.String getComments()

setComments

public void setComments(java.lang.String comments)

getDistanceAlong

public java.lang.Long getDistanceAlong()

setDistanceAlong

public void setDistanceAlong(java.lang.Long distanceAlong)

getDropLine

public oracle.spatial.geometry.JGeometry getDropLine()

setDropLine

public void setDropLine(oracle.spatial.geometry.JGeometry dropLine)

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

getSide

public java.lang.String getSide()

setSide

public void setSide(java.lang.String side)

getState

public java.lang.String getState()

setState

public void setState(java.lang.String state)

getZip

public java.lang.String getZip()

setZip

public void setZip(java.lang.String zip)

getStreet

public Street getStreet()

setStreet

public void setStreet(Street street)

getSiteType

public SiteType getSiteType()

setSiteType

public void setSiteType(SiteType siteType)

getTown

public Town getTown()

setTown

public void setTown(Town town)

getCounty

public County getCounty()

setCounty

public void setCounty(County county)

getFullAddress

public java.lang.String getFullAddress()
Returns:
Full address String of Site.

compareTo

public int compareTo(java.lang.Object comparableSite)
              throws java.lang.ClassCastException
This method compares Sites and return the standard compareTo result int.

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class GenericBean
Parameters:
comparableSite - Site object to compare
Returns:
Standard compareTo value result. Negative Integer.MAX_VALUE if this SITE's siteId is null. Integer.MAX_VALUE if comparableSite's siteId is null or comparableSite is null.
Throws:
java.lang.ClassCastException - If comparableSite is not a Site object.

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