com.mizar.persistence.jpa.facade
Class ProximityQuery

java.lang.Object
  extended by com.mizar.persistence.jpa.facade.ProximityQuery

public class ProximityQuery
extends java.lang.Object

This is a very quesionable Class, do not extend or use with discussing with Mark Millman.


Field Summary
static java.lang.Long PROXIMITY_BEYOND
           
static java.lang.Long PROXIMITY_WITHIN
           
static java.lang.String[] unitName
           
static java.lang.Long UNITS_FEET
           
static java.lang.Long UNITS_KM
           
static java.lang.Long UNITS_METERS
           
static java.lang.Long UNITS_MILES
           
 
Constructor Summary
ProximityQuery()
           
ProximityQuery(java.lang.String name, java.lang.String label, boolean doQuery, java.lang.Long proximity, double distance, java.lang.Long units)
           
ProximityQuery(java.lang.String name, java.lang.String label, boolean doQuery, java.lang.Long proximity, double distance, java.lang.Long units, java.lang.String targetProperty)
           
ProximityQuery(java.lang.String name, java.lang.String label, java.lang.Long proximity, double distance, java.lang.Long units)
           
 
Method Summary
static java.lang.Double convertDistance(java.lang.Double askedDistance, java.lang.Long sridDistanceType, java.lang.Long askedDistanceType)
           
static java.lang.StringBuffer createSelectStatement(java.util.ArrayList<ProximityQuery> pqs, java.lang.Class targetClass, java.lang.String targetAlias, java.lang.Long targetUnitType)
           
static java.util.ArrayList<java.lang.String> createWhereFragment(java.util.ArrayList<ProximityQuery> pqs, java.lang.String targetAlias, java.lang.Long targetUnitType)
           
 java.lang.String getAlias()
           
 double getDistance()
           
 java.lang.String getGeomColumn()
           
 java.lang.String getLabel()
           
 double getMaxDistance()
           
 java.lang.String getName()
           
 java.lang.Long getProximity()
           
 java.lang.String getTable()
           
 java.lang.String getTargetProperty()
           
 java.lang.Long getUnits()
           
 boolean isDoQuery()
           
 void setAlias(java.lang.String alias)
           
 void setDistance(double distance)
           
 void setDoQuery(boolean doQuery)
           
 void setGeomColumn(java.lang.String geomColumn)
           
 void setLabel(java.lang.String label)
           
 void setMaxDistance(double maxDistance)
           
 void setName(java.lang.String name)
           
 void setProximity(java.lang.Long proximity)
           
 void setTable(java.lang.String table)
           
 void setTargetProperty(java.lang.String targetProperty)
           
 void setUnits(java.lang.Long units)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROXIMITY_WITHIN

public static final java.lang.Long PROXIMITY_WITHIN

PROXIMITY_BEYOND

public static final java.lang.Long PROXIMITY_BEYOND

UNITS_MILES

public static final java.lang.Long UNITS_MILES

UNITS_FEET

public static final java.lang.Long UNITS_FEET

UNITS_METERS

public static final java.lang.Long UNITS_METERS

UNITS_KM

public static final java.lang.Long UNITS_KM

unitName

public static java.lang.String[] unitName
Constructor Detail

ProximityQuery

public ProximityQuery()

ProximityQuery

public ProximityQuery(java.lang.String name,
                      java.lang.String label,
                      java.lang.Long proximity,
                      double distance,
                      java.lang.Long units)

ProximityQuery

public ProximityQuery(java.lang.String name,
                      java.lang.String label,
                      boolean doQuery,
                      java.lang.Long proximity,
                      double distance,
                      java.lang.Long units)

ProximityQuery

public ProximityQuery(java.lang.String name,
                      java.lang.String label,
                      boolean doQuery,
                      java.lang.Long proximity,
                      double distance,
                      java.lang.Long units,
                      java.lang.String targetProperty)
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setLabel

public void setLabel(java.lang.String label)

getLabel

public java.lang.String getLabel()

setDoQuery

public void setDoQuery(boolean doQuery)

isDoQuery

public boolean isDoQuery()

setProximity

public void setProximity(java.lang.Long proximity)

getProximity

public java.lang.Long getProximity()

setDistance

public void setDistance(double distance)

getDistance

public double getDistance()

setMaxDistance

public void setMaxDistance(double maxDistance)

getMaxDistance

public double getMaxDistance()

setUnits

public void setUnits(java.lang.Long units)

getUnits

public java.lang.Long getUnits()

setTargetProperty

public void setTargetProperty(java.lang.String targetProperty)

getTargetProperty

public java.lang.String getTargetProperty()

setTable

public void setTable(java.lang.String table)

getTable

public java.lang.String getTable()

setAlias

public void setAlias(java.lang.String alias)

getAlias

public java.lang.String getAlias()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setGeomColumn

public void setGeomColumn(java.lang.String geomColumn)

getGeomColumn

public java.lang.String getGeomColumn()

createWhereFragment

public static java.util.ArrayList<java.lang.String> createWhereFragment(java.util.ArrayList<ProximityQuery> pqs,
                                                                        java.lang.String targetAlias,
                                                                        java.lang.Long targetUnitType)

convertDistance

public static java.lang.Double convertDistance(java.lang.Double askedDistance,
                                               java.lang.Long sridDistanceType,
                                               java.lang.Long askedDistanceType)

createSelectStatement

public static java.lang.StringBuffer createSelectStatement(java.util.ArrayList<ProximityQuery> pqs,
                                                           java.lang.Class targetClass,
                                                           java.lang.String targetAlias,
                                                           java.lang.Long targetUnitType)