com.mizar.trinidad.components.location
Class LocationRow

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.persistence.jpa.beans.GeometryBean
          extended by com.mizar.persistence.jpa.beans.LocationBean
              extended by com.mizar.trinidad.components.location.LocationRow
All Implemented Interfaces:
RowGeometryInterface, RowHeterogeneousInterface, RowInterface, RowLocationInterface, JPAGeometryInterface, JPAInterface, java.io.Serializable, java.lang.Comparable

public class LocationRow
extends LocationBean
implements RowLocationInterface, RowHeterogeneousInterface

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
LocationRow()
           
LocationRow(RowLocationInterface locationBean)
           
 
Method Summary
 void addToRouteTable(javax.faces.event.ActionEvent ignore)
           
 java.lang.String getAddress()
           
 java.lang.String getCity()
           
 java.lang.Double getDistance()
           
 oracle.spatial.geometry.JGeometry getGeom()
          Entity classes implementing GeometryBean should have at least one SDO_GEOMETRY column in their associated table.
 java.lang.Long getLocationId()
          In the implementing @Entity class this getter must be associated with the @Id annotation representing the primary key.
 int getMaxFractionDigits()
           
 java.lang.String getName()
           
 java.lang.String getNameMC()
           
 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.util.HashMap<java.lang.String,java.lang.String> getProperties()
           
 java.lang.String getState()
           
 java.lang.Long getType()
           
 void setAddress(java.lang.String address)
           
 void setCity(java.lang.String city)
           
 void setCurrentRow(javax.faces.event.ActionEvent ae)
           
 void setDistance(java.lang.Double distance)
           
 void setGeom(oracle.spatial.geometry.JGeometry geom)
           
 void setLocationId(java.lang.Long locationId)
           
 void setMaxFractionDigits(int maxFractionDigits)
           
 void setName(java.lang.String name)
           
 void setState(java.lang.String state)
           
 void setType(java.lang.Long type)
           
 
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
compareTo, equals, getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getREAD, hashCode, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mizar.faces.javax.components.RowGeometryInterface
getHeight, getRange, getSrid, getWidth, getWktLocation, getWktShape, isGeometryExtant
 
Methods inherited from interface com.mizar.faces.javax.components.RowInterface
getEntityState, getEntityStateLabel
 

Constructor Detail

LocationRow

public LocationRow()

LocationRow

public LocationRow(RowLocationInterface locationBean)
Method Detail

getProperties

public java.util.HashMap<java.lang.String,java.lang.String> getProperties()

addToRouteTable

public void addToRouteTable(javax.faces.event.ActionEvent ignore)

setLocationId

public void setLocationId(java.lang.Long locationId)
Specified by:
setLocationId in interface RowLocationInterface
Specified by:
setLocationId in class LocationBean

getLocationId

public java.lang.Long getLocationId()
Description copied from class: LocationBean
In the implementing @Entity class this getter must be associated with the @Id annotation representing the primary key. In other words, any JPA implementing class must use the property Long locationId; as the primary key property. This protocol enables the generic query capability based on primary key, name, and name.

Specified by:
getLocationId in interface RowLocationInterface
Specified by:
getLocationId in class LocationBean
Returns:
the primary key of the implementing bean

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

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

setType

public void setType(java.lang.Long type)
Specified by:
setType in interface RowLocationInterface
Specified by:
setType in class LocationBean

getType

public java.lang.Long getType()
Specified by:
getType in interface RowLocationInterface
Specified by:
getType in class LocationBean

setName

public void setName(java.lang.String name)
Specified by:
setName in interface RowLocationInterface
Specified by:
setName in class LocationBean

getName

public java.lang.String getName()
Specified by:
getName in interface RowLocationInterface
Specified by:
getName in class LocationBean

getNameMC

public java.lang.String getNameMC()

setGeom

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

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 interface RowGeometryInterface
Specified by:
getGeom in class GeometryBean
Returns:
the principal SDO_GEOMETRY column

setDistance

public void setDistance(java.lang.Double distance)
Specified by:
setDistance in interface RowLocationInterface

getDistance

public java.lang.Double getDistance()
Specified by:
getDistance in interface RowLocationInterface

setCurrentRow

public void setCurrentRow(javax.faces.event.ActionEvent ae)
Specified by:
setCurrentRow in interface RowHeterogeneousInterface

setMaxFractionDigits

public void setMaxFractionDigits(int maxFractionDigits)

getMaxFractionDigits

public int getMaxFractionDigits()

setAddress

public void setAddress(java.lang.String address)
Specified by:
setAddress in interface RowLocationInterface

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface RowLocationInterface

setCity

public void setCity(java.lang.String city)
Specified by:
setCity in interface RowLocationInterface

getCity

public java.lang.String getCity()
Specified by:
getCity in interface RowLocationInterface

setState

public void setState(java.lang.String state)
Specified by:
setState in interface RowLocationInterface

getState

public java.lang.String getState()
Specified by:
getState in interface RowLocationInterface