Codota Logo
LowerCase.getOperand
Code IndexAdd Codota to your IDE (free)

How to use
getOperand
method
in
javax.jcr.query.qom.LowerCase

Best Java code snippets using javax.jcr.query.qom.LowerCase.getOperand (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: ModeShape/modeshape

  @Override
  public Object apply(LowerCase op, Map<String, Object> variables) {
    return EsIndexColumn.LOWERCASE_PREFIX + 
        ((String)operand(op.getOperand()).apply(op.getOperand(), variables));
  }
};
origin: org.apache.jackrabbit/jackrabbit-core

  public Transform(DynamicOperand operand) {
    // Check the transformation type
    if (operand instanceof UpperCase) {
      this.transform = TRANSFORM_UPPER_CASE;
    } else if (operand instanceof LowerCase) {
      this.transform = TRANSFORM_LOWER_CASE;
    } else {
      this.transform = TRANSFORM_NONE;
    }
    // Unwrap any nested transformations
    while (true) {
      if (operand instanceof UpperCase) {
        operand = ((UpperCase) operand).getOperand();
      } else if (operand instanceof LowerCase) {
        operand = ((LowerCase) operand).getOperand();
      } else {
        break;
      }
    }
    this.operand = operand;
  }
}
origin: apache/jackrabbit

  public Transform(DynamicOperand operand) {
    // Check the transformation type
    if (operand instanceof UpperCase) {
      this.transform = TRANSFORM_UPPER_CASE;
    } else if (operand instanceof LowerCase) {
      this.transform = TRANSFORM_LOWER_CASE;
    } else {
      this.transform = TRANSFORM_NONE;
    }
    // Unwrap any nested transformations
    while (true) {
      if (operand instanceof UpperCase) {
        operand = ((UpperCase) operand).getOperand();
      } else if (operand instanceof LowerCase) {
        operand = ((LowerCase) operand).getOperand();
      } else {
        break;
      }
    }
    this.operand = operand;
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Returns the values of the given lower case operand for the given node.
 *
 * @param operand lower case operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Node node)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), node);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Returns the values of the given lower case operand for the given node.
 *
 * @param operand lower case operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Node node)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), node);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Returns the values of the given lower case operand at the given row.
 *
 * @param operand lower case operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Row row)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), row);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Returns the values of the given lower case operand at the given row.
 *
 * @param operand lower case operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Row row)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), row);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: apache/jackrabbit

/**
 * Returns the values of the given lower case operand for the given node.
 *
 * @param operand lower case operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Node node)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), node);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: apache/jackrabbit

/**
 * Returns the values of the given lower case operand at the given row.
 *
 * @param operand lower case operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLowerCaseValues(LowerCase operand, Row row)
    throws RepositoryException {
  Value[] values = getValues(operand.getOperand(), row);
  for (int i = 0; i < values.length; i++) {
    String value = values[i].getString();
    String lower = value.toLowerCase(locale);
    if (!value.equals(lower)) {
      values[i] = factory.createValue(lower);
    }
  }
  return values;
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

private void append(LowerCase operand) {
  append("LOWER(");
  append(operand.getOperand());
  append(")");
}
origin: apache/jackrabbit

/**
 * Test case for {@link QueryObjectModelFactory#lowerCase(DynamicOperand)}
 */
public void testLowerCase() throws RepositoryException {
  PropertyValue propValue = qf.propertyValue(SELECTOR_NAME1, propertyName1);
  LowerCase lower = qf.lowerCase(propValue);
  assertTrue("Not a property value operand", lower.getOperand() instanceof PropertyValue);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

private void append(LowerCase operand) {
  append("LOWER(");
  append(operand.getOperand());
  append(")");
}
origin: apache/jackrabbit

private void append(LowerCase operand) {
  append("LOWER(");
  append(operand.getOperand());
  append(")");
}
origin: apache/jackrabbit-oak

@Test
public void lowerCase() throws RepositoryException {
  PropertyValue p = f.propertyValue("selectorName", "propertyName");
  Length length = f.length(p);
  LowerCase l = f.lowerCase(length);
  assertEquals(length, l.getOperand());
  assertEquals("LOWER(LENGTH([selectorName].[propertyName]))", l.toString());
}
origin: org.apache.jackrabbit/jackrabbit-core

} else if (operand instanceof LowerCase) {
  LowerCase lower = (LowerCase) operand;
  return getSelectorName(lower.getOperand());
} else if (operand instanceof NodeLocalName) {
  NodeLocalName local = (NodeLocalName) operand;
origin: apache/jackrabbit

} else if (operand instanceof LowerCase) {
  LowerCase lower = (LowerCase) operand;
  return getSelectorName(lower.getOperand());
} else if (operand instanceof NodeLocalName) {
  NodeLocalName local = (NodeLocalName) operand;
javax.jcr.query.qomLowerCasegetOperand

Javadoc

Gets the operand whose value is converted to a lower-case string.

Popular methods of LowerCase

    Popular in Java

    • Reactive rest calls using spring rest template
    • compareTo (BigDecimal)
    • runOnUiThread (Activity)
    • setRequestProperty (URLConnection)
      Sets the general request property. If a property with the key already exists, overwrite its value wi
    • Pointer (com.sun.jna)
      An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
    • Component (java.awt)
      A component is an object having a graphical representation that can be displayed on the screen and t
    • FlowLayout (java.awt)
      A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • OutputStream (java.io)
      A writable sink for bytes.Most clients will use output streams that write data to the file system (
    • Timer (java.util)
      A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
    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