/**
  * ExpressionOperator for the MDSYS.SDO_WITHIN_DISTANCE Spatial Operator on the Oracle Database
  * Use of this operator requires the Java spatial classes
  *
  * @return
  */
 public static ExpressionOperator withinDistance() {
   ExpressionOperator operator =
       ExpressionOperator.simpleThreeArgumentFunction(
           SDO_WITHIN_DISTANCE, "MDSYS.SDO_WITHIN_DISTANCE");
   operator.bePrefix();
   return operator;
 }
Exemplo n.º 2
0
 /**
  * INTERNAL: Build locate operator with 3 params i.e. LOCATE("coffee", t0.DESCRIP, 4). Last
  * parameter is a start at.
  */
 public static ExpressionOperator createLocate2Operator() {
   ExpressionOperator expOperator =
       ExpressionOperator.simpleThreeArgumentFunction(ExpressionOperator.Locate2, "INSTR");
   int[] argumentIndices = new int[3];
   argumentIndices[0] = 0;
   argumentIndices[1] = 1;
   argumentIndices[2] = 2;
   expOperator.setArgumentIndices(argumentIndices);
   expOperator.setIsBindingSupported(false);
   return expOperator;
 }
 /**
  * ExpressionOperator for the MDSYS.SDO_NN Spatial Operator on the Oracle Database Use of this
  * operator requires the Java spatial classes
  *
  * @return
  */
 public static ExpressionOperator nearestNeighbor() {
   ExpressionOperator operator =
       ExpressionOperator.simpleThreeArgumentFunction(SDO_NN, "MDSYS.SDO_NN");
   operator.bePrefix();
   return operator;
 }
 /**
  * ExpressionOperator for the MDSYS.SDO_FILTER Spatial Operator on the Oracle Database Use of this
  * operator requires the Java spatial classes
  *
  * @return
  */
 public static ExpressionOperator filter() {
   ExpressionOperator operator =
       ExpressionOperator.simpleThreeArgumentFunction(SDO_FILTER, "MDSYS.SDO_FILTER");
   operator.bePrefix();
   return operator;
 }
 /**
  * ExpressionOperator for the MDSYS.MDSYS.SDO_RELATE Spatial Operator on the Oracle Database Use
  * of this operator requires the Java spatial classes
  *
  * @return
  */
 public static ExpressionOperator relate() {
   ExpressionOperator operator =
       ExpressionOperator.simpleThreeArgumentFunction(SDO_RELATE, "MDSYS.SDO_RELATE");
   operator.bePrefix();
   return operator;
 }