congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
LowerCase
Code IndexAdd Tabnine to your IDE (free)

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

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

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 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: 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.qomLowerCase

Javadoc

Evaluates to the lower-case string value (or values, if multi-valued) of #getOperand.

If #getOperand does not evaluate to a string value, its value is first converted to a string. The lower-case string value is computed as though the toLowerCase() method of java.lang.String were called.

If #getOperand evaluates to null, the LowerCase operand also evaluates to null.

Most used methods

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

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Table (org.hibernate.mapping)
    A relational table
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now