com.mizar.trinidad.components.routing
Class RoutingRow

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.persistence.jpa.beans.GeometryBean
          extended by com.mizar.trinidad.components.routing.RoutingRow
All Implemented Interfaces:
RowGeometryInterface, RowInterface, JPAGeometryInterface, JPAInterface, java.io.Serializable, java.lang.Comparable

public class RoutingRow
extends GeometryBean
implements RowGeometryInterface

See Also:
Serialized Form

Field Summary
static int INPUT_ADDRESS
           
static int INPUT_LOCATION
           
static int PRE_GEOCODED
           
 
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
RoutingRow()
           
RoutingRow(java.lang.String primaryKey, java.lang.Long edgeId, java.lang.Double percent, java.lang.String side)
           
RoutingRow(java.lang.String primaryKey, java.lang.String name, java.lang.String address, oracle.spatial.geometry.JGeometry geom)
           
RoutingRow(java.lang.String primaryKey, java.lang.String address, java.lang.String city, java.lang.String state)
           
RoutingRow(java.lang.String primaryKey, java.lang.String name, java.lang.String address, java.lang.String city, oracle.spatial.geometry.JGeometry geom)
           
 
Method Summary
 void decrementPosition(javax.faces.event.ActionEvent ae)
           
 java.lang.String getAddress()
           
 java.lang.String getCity()
           
 java.lang.String getCountry()
           
 java.lang.Long getEdgeId()
           
 oracle.spatial.geometry.JGeometry getGeom()
          Entity classes implementing GeometryBean should have at least one SDO_GEOMETRY column in their associated table.
 java.lang.Double getLatitude()
           
 java.lang.Double getLongitude()
           
 java.lang.String getName()
           
 int getNodeId()
           
 java.lang.Double getPercent()
           
 java.lang.String 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.String getState()
           
 int getType()
           
 void incrementPosition(javax.faces.event.ActionEvent ae)
           
 void remove(javax.faces.event.ActionEvent ae)
           
 void setAddress(java.lang.String address)
           
 void setCity(java.lang.String city)
           
 void setCountry(java.lang.String country)
           
 void setEdgeId(java.lang.Long edgeId)
           
 void setGeom(oracle.spatial.geometry.JGeometry geom)
           
 void setLatitude(java.lang.Double latitude)
           
 void setLongitude(java.lang.Double longitude)
           
 void setName(java.lang.String name)
           
 void setNodeId(int nodeId)
           
 void setPercent(java.lang.Double percent)
           
 void setPrimaryKeyValue(java.lang.String value)
           
 void setSide(java.lang.String side)
           
 void setState(java.lang.String state)
           
 void setType(int 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
 

Field Detail

PRE_GEOCODED

public static final int PRE_GEOCODED
See Also:
Constant Field Values

INPUT_LOCATION

public static final int INPUT_LOCATION
See Also:
Constant Field Values

INPUT_ADDRESS

public static final int INPUT_ADDRESS
See Also:
Constant Field Values
Constructor Detail

RoutingRow

public RoutingRow()

RoutingRow

public RoutingRow(java.lang.String primaryKey,
                  java.lang.String name,
                  java.lang.String address,
                  oracle.spatial.geometry.JGeometry geom)

RoutingRow

public RoutingRow(java.lang.String primaryKey,
                  java.lang.String name,
                  java.lang.String address,
                  java.lang.String city,
                  oracle.spatial.geometry.JGeometry geom)

RoutingRow

public RoutingRow(java.lang.String primaryKey,
                  java.lang.Long edgeId,
                  java.lang.Double percent,
                  java.lang.String side)

RoutingRow

public RoutingRow(java.lang.String primaryKey,
                  java.lang.String address,
                  java.lang.String city,
                  java.lang.String state)
Method Detail

decrementPosition

public void decrementPosition(javax.faces.event.ActionEvent ae)

incrementPosition

public void incrementPosition(javax.faces.event.ActionEvent ae)

remove

public void remove(javax.faces.event.ActionEvent ae)

setPrimaryKeyValue

public void setPrimaryKeyValue(java.lang.String value)

getPrimaryKeyValue

public java.lang.String 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(int type)

getType

public int getType()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setAddress

public void setAddress(java.lang.String address)

getAddress

public java.lang.String getAddress()

setCountry

public void setCountry(java.lang.String country)

getCountry

public java.lang.String getCountry()

setEdgeId

public void setEdgeId(java.lang.Long edgeId)

getEdgeId

public java.lang.Long getEdgeId()

setPercent

public void setPercent(java.lang.Double percent)

getPercent

public java.lang.Double getPercent()

setSide

public void setSide(java.lang.String side)

getSide

public java.lang.String getSide()

setLongitude

public void setLongitude(java.lang.Double longitude)

getLongitude

public java.lang.Double getLongitude()

setLatitude

public void setLatitude(java.lang.Double latitude)

getLatitude

public java.lang.Double getLatitude()

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

setCity

public void setCity(java.lang.String city)

getCity

public java.lang.String getCity()

setState

public void setState(java.lang.String state)

getState

public java.lang.String getState()

setNodeId

public void setNodeId(int nodeId)

getNodeId

public int getNodeId()