Tabnine Logo
Length.getPropertyValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getPropertyValue
method
in
javax.jcr.query.qom.Length

Best Java code snippets using javax.jcr.query.qom.Length.getPropertyValue (Showing top 13 results out of 315)

origin: apache/jackrabbit

private void append(Length operand) {
  append("LENGTH(");
  append(operand.getPropertyValue());
  append(")");
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

private void append(Length operand) {
  append("LENGTH(");
  append(operand.getPropertyValue());
  append(")");
}
origin: apache/jackrabbit

/**
 * Test case for {@link QueryObjectModelFactory#length(PropertyValue)}
 */
public void testLength() throws RepositoryException {
  PropertyValue propValue = qf.propertyValue(SELECTOR_NAME1, propertyName1);
  Length len = qf.length(propValue);
  assertNotNull("Property value must not be null", len.getPropertyValue());
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

private void append(Length operand) {
  append("LENGTH(");
  append(operand.getPropertyValue());
  append(")");
}
origin: apache/jackrabbit-oak

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

/**
 * Returns the values of the given value length operand at the given row.
 *
 * @see #getProperty(PropertyValue, Row)
 * @param operand value length operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLengthValues(Length operand, Row row)
    throws RepositoryException {
  Property property = getProperty(operand.getPropertyValue(), row);
  if (property == null) {
    return new Value[0];
  } else if (property.isMultiple()) {
    long[] lengths = property.getLengths();
    Value[] values = new Value[lengths.length];
    for (int i = 0; i < lengths.length; i++) {
      values[i] = factory.createValue(lengths[i]);
    }
    return values;
  } else {
    long length = property.getLength();
    return new Value[] { factory.createValue(length) };
  }
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Returns the values of the given value length operand at the given row.
 *
 * @see #getProperty(PropertyValue, Row)
 * @param operand value length operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLengthValues(Length operand, Row row)
    throws RepositoryException {
  Property property = getProperty(operand.getPropertyValue(), row);
  if (property == null) {
    return new Value[0];
  } else if (property.isMultiple()) {
    long[] lengths = property.getLengths();
    Value[] values = new Value[lengths.length];
    for (int i = 0; i < lengths.length; i++) {
      values[i] = factory.createValue(lengths[i]);
    }
    return values;
  } else {
    long length = property.getLength();
    return new Value[] { factory.createValue(length) };
  }
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Returns the values of the given value length operand for the given node.
 *
 * @see #getProperty(PropertyValue, Node)
 * @param operand value length operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLengthValues(Length operand, Node n)
    throws RepositoryException {
  Property property = getProperty(operand.getPropertyValue(), n);
  if (property == null) {
    return new Value[0];
  }
  if (property.isMultiple()) {
    long[] lengths = property.getLengths();
    Value[] values = new Value[lengths.length];
    for (int i = 0; i < lengths.length; i++) {
      values[i] = factory.createValue(lengths[i]);
    }
    return values;
  }
  long length = property.getLength();
  return new Value[] { factory.createValue(length) };
}
origin: apache/jackrabbit

/**
 * Returns the values of the given value length operand for the given node.
 *
 * @see #getProperty(PropertyValue, Node)
 * @param operand value length operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLengthValues(Length operand, Node n)
    throws RepositoryException {
  Property property = getProperty(operand.getPropertyValue(), n);
  if (property == null) {
    return new Value[0];
  }
  if (property.isMultiple()) {
    long[] lengths = property.getLengths();
    Value[] values = new Value[lengths.length];
    for (int i = 0; i < lengths.length; i++) {
      values[i] = factory.createValue(lengths[i]);
    }
    return values;
  }
  long length = property.getLength();
  return new Value[] { factory.createValue(length) };
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Returns the values of the given value length operand at the given row.
 *
 * @see #getProperty(PropertyValue, Row)
 * @param operand value length operand
 * @param row row
 * @return values of the operand at the given row
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLengthValues(Length operand, Row row)
    throws RepositoryException {
  Property property = getProperty(operand.getPropertyValue(), row);
  if (property == null) {
    return new Value[0];
  } else if (property.isMultiple()) {
    long[] lengths = property.getLengths();
    Value[] values = new Value[lengths.length];
    for (int i = 0; i < lengths.length; i++) {
      values[i] = factory.createValue(lengths[i]);
    }
    return values;
  } else {
    long length = property.getLength();
    return new Value[] { factory.createValue(length) };
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Returns the values of the given value length operand for the given node.
 *
 * @see #getProperty(PropertyValue, Node)
 * @param operand value length operand
 * @param node node
 * @return values of the operand for the given node
 * @throws RepositoryException if the operand can't be evaluated
 */
private Value[] getLengthValues(Length operand, Node n)
    throws RepositoryException {
  Property property = getProperty(operand.getPropertyValue(), n);
  if (property == null) {
    return new Value[0];
  }
  if (property.isMultiple()) {
    long[] lengths = property.getLengths();
    Value[] values = new Value[lengths.length];
    for (int i = 0; i < lengths.length; i++) {
      values[i] = factory.createValue(lengths[i]);
    }
    return values;
  }
  long length = property.getLength();
  return new Value[] { factory.createValue(length) };
}
origin: org.apache.jackrabbit/jackrabbit-core

} else if (operand instanceof Length) {
  Length length = (Length) operand;
  return getSelectorName(length.getPropertyValue());
} else if (operand instanceof LowerCase) {
  LowerCase lower = (LowerCase) operand;
origin: apache/jackrabbit

} else if (operand instanceof Length) {
  Length length = (Length) operand;
  return getSelectorName(length.getPropertyValue());
} else if (operand instanceof LowerCase) {
  LowerCase lower = (LowerCase) operand;
javax.jcr.query.qomLengthgetPropertyValue

Javadoc

Gets the property value for which to compute the length.

Popular methods of Length

    Popular in Java

    • Making http requests using okhttp
    • getSharedPreferences (Context)
    • onRequestPermissionsResult (Fragment)
    • getExternalFilesDir (Context)
    • Color (java.awt)
      The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
    • BufferedInputStream (java.io)
      A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
    • RandomAccessFile (java.io)
      Allows reading from and writing to a file in a random-access manner. This is different from the uni-
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • URI (java.net)
      A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
    • Path (java.nio.file)
    • From CI to AI: The AI layer in your organization
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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