Codota Logo
org.eclipse.persistence.expressions.spatial
Code IndexAdd Codota to your IDE (free)

How to use org.eclipse.persistence.expressions.spatial

Best Java code snippets using org.eclipse.persistence.expressions.spatial (Showing top 18 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: com.haulmont.thirdparty/eclipselink

public SpatialParameters(String params) {
  setParams(params);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_WITHIN_DISTANCE Spatial Operator on the Oracle Database
 * Use of this expression requires the Java spatial classes
 *
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 *parameters.setDistance(10d);
 * Expression selectCriteria = SpatialExpressions.withinDistance(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 *
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression withinDistance(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_WITHIN_DISTANCE, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * build a String describing this set of parameters that can be used in conjunction with an Oracle Spatial function
 * @return
 */
public String getParameterString() {
  if (getParams() != null) {
    return getParams();
  }
  
  StringWriter writer = new StringWriter();
  boolean hasParams = false;
  hasParams = writeParam(writer, DISTANCE_PARAM, getDistance(), hasParams);
  hasParams = writeParam(writer, MAX_RES_PARAM, getMaxResolution(), hasParams);
  hasParams = writeParam(writer, MIN_RES_PARAM, getMinResolution(), hasParams);
  hasParams = writeParam(writer, UNIT_PARAM, getUnits(), hasParams);
  hasParams = writeParam(writer, MASK_PARAM, getMasks(), hasParams);
  hasParams = writeParam(writer, QUERYTYPE_PARAM, getQueryType(), hasParams);
  return hasParams ? writer.toString() : null;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * build a String describing this set of parameters that can be used in conjunction with an Oracle Spatial function
 * @return
 */
public String getParameterString() {
  if (getParams() != null) {
    return getParams();
  }
  
  StringWriter writer = new StringWriter();
  boolean hasParams = false;
  hasParams = writeParam(writer, DISTANCE_PARAM, getDistance(), hasParams);
  hasParams = writeParam(writer, MAX_RES_PARAM, getMaxResolution(), hasParams);
  hasParams = writeParam(writer, MIN_RES_PARAM, getMinResolution(), hasParams);
  hasParams = writeParam(writer, UNIT_PARAM, getUnits(), hasParams);
  hasParams = writeParam(writer, MASK_PARAM, getMasks(), hasParams);
  hasParams = writeParam(writer, QUERYTYPE_PARAM, getQueryType(), hasParams);
  return hasParams ? writer.toString() : null;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_WITHIN_DISTANCE Spatial Operator on the Oracle Database
 * Use of this expression requires the Java spatial classes
 * 
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 *parameters.setDistance(10d);
 * Expression selectCriteria = SpatialExpressions.withinDistance(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression withinDistance(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_WITHIN_DISTANCE, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public SpatialParameters(String params) {
  setParams(params);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * build a String describing this set of parameters that can be used in conjunction with an Oracle Spatial function
 * @return
 */
public String getParameterString() {
  if (getParams() != null) {
    return getParams();
  }
  StringWriter writer = new StringWriter();
  boolean hasParams = false;
  hasParams = writeParam(writer, DISTANCE_PARAM, getDistance(), hasParams);
  hasParams = writeParam(writer, MAX_RES_PARAM, getMaxResolution(), hasParams);
  hasParams = writeParam(writer, MIN_RES_PARAM, getMinResolution(), hasParams);
  hasParams = writeParam(writer, UNIT_PARAM, getUnits(), hasParams);
  hasParams = writeParam(writer, MASK_PARAM, getMasks(), hasParams);
  hasParams = writeParam(writer, QUERYTYPE_PARAM, getQueryType(), hasParams);
  return hasParams ? writer.toString() : null;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.MDSYS.SDO_RELATE Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 * 
 * <pre><blockquote>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters..setMask(Mask.ANYINTERACT).setQueryType(QueryType.WINDOW);
 * Expression selectCriteria = SpatialExpressions.relate(jGeometry1, jGeometry2, parameters);
 * </blockquote></pre>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression relate(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_RELATE, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public SpatialParameters(String params) {
  setParams(params);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_FILTER Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 * 
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters.setQueryType(QueryType.WINDOW);
 * Expression selectCriteria = SpatialExpressions.filter(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression filter(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_FILTER, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_NN Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 * 
 * <pre><blockquote>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters.setUnit(Units.M);
 * Expression selectCriteria = SpatialExpressions.nearestNeighbor(jGeometry1, jGeometry2, parameters);
 * </blockquote></pre>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression nearestNeighbor(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_NN, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_WITHIN_DISTANCE Spatial Operator on the Oracle Database
 * Use of this expression requires the Java spatial classes
 * 
 * <pre><blockquote>
 * SpatialParameters parameters = new SpatialParameters();
 *parameters.setDistance(10d);
 * Expression selectCriteria = SpatialExpressions.withinDistance(jGeometry1, jGeometry2, parameters);
 * </blockquote></pre>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression withinDistance(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_WITHIN_DISTANCE, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_NN Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 *
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters.setUnit(Units.M);
 * Expression selectCriteria = SpatialExpressions.nearestNeighbor(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 *
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression nearestNeighbor(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_NN, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_FILTER Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 *
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters.setQueryType(QueryType.WINDOW);
 * Expression selectCriteria = SpatialExpressions.filter(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 *
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression filter(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_FILTER, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.MDSYS.SDO_RELATE Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 *
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters..setMask(Mask.ANYINTERACT).setQueryType(QueryType.WINDOW);
 * Expression selectCriteria = SpatialExpressions.relate(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 *
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression relate(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_RELATE, geom1, geom2, stringParameters);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.MDSYS.SDO_RELATE Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 * 
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters..setMask(Mask.ANYINTERACT).setQueryType(QueryType.WINDOW);
 * Expression selectCriteria = SpatialExpressions.relate(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression relate(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_RELATE, geom1, geom2, stringParameters);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_NN Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 * 
 * <blockquote><pre>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters.setUnit(Units.M);
 * Expression selectCriteria = SpatialExpressions.nearestNeighbor(jGeometry1, jGeometry2, parameters);
 * </pre></blockquote>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression nearestNeighbor(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_NN, geom1, geom2, stringParameters);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Return an Expression for the MDSYS.SDO_FILTER Spatial Operator on the Oracle Database
 * Use of this operator requires the Java spatial classes
 * 
 * <pre><blockquote>
 * SpatialParameters parameters = new SpatialParameters();
 * parameters.setQueryType(QueryType.WINDOW);
 * Expression selectCriteria = SpatialExpressions.filter(jGeometry1, jGeometry2, parameters);
 * </blockquote></pre>
 * 
 * @param geom1 an Expression representing a JGeometryObject
 * @param geom2 a JGeometryObject or an Expression representing a JGeometryObject
 * @param params a SpatialParameters object configured with the parameters to the call
 * @return a TopLink Expression
 */
public static Expression filter(Expression geom1, Object geom2, SpatialParameters params) {
  String stringParameters = params == null ? null : params.getParameterString();
  return getSpatialExpression(SDO_FILTER, geom1, geom2, stringParameters);
}
org.eclipse.persistence.expressions.spatial

Most used classes

  • SpatialExpressionFactory
    This class is used to construct expressions that use Oracle Spatial operators> ExpressionBuilder b
  • SpatialParameters
    PUBLIC: A utility class used to set parameters on spatial operators within TopLink's expression fram
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now