Codota Logo
PropertyIsLike.getPattern
Code IndexAdd Codota to your IDE (free)

How to use
getPattern
method
in
org.deegree.filter.comparison.PropertyIsLike

Best Java code snippets using org.deegree.filter.comparison.PropertyIsLike.getPattern (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

private static void export( PropertyIsLike operator, XMLStreamWriter writer )
            throws XMLStreamException {
  writer.writeStartElement( FES_20_NS, "PropertyIsLike" );
  writer.writeAttribute( "wildCard", operator.getWildCard() );
  writer.writeAttribute( "singleChar", operator.getSingleChar() );
  writer.writeAttribute( "escapeChar", operator.getEscapeChar() );
  export( operator.getExpression(), writer );
  export( operator.getPattern(), writer );
  writer.writeEndElement();
}
origin: deegree/deegree3

/**
 * Translates the given {@link PropertyIsLike} into an {@link SQLOperation}.
 * <p>
 * NOTE: This method appends the generated argument inline, i.e. not using a <code>?</code>. This is because of a
 * problem that has been observed with PostgreSQL 8.0; the execution of the inline version is *much* faster.
 * </p>
 * 
 * @param op
 *            comparison operator to be translated, must not be <code>null</code>
 * @return corresponding SQL expression, never <code>null</code>
 * @throws UnmappableException
 *             if translation is not possible (usually due to unmappable property names)
 * @throws FilterEvaluationException
 *             if the expression contains invalid {@link ValueReference}s
 */
@Override
protected SQLOperation toProtoSQL( PropertyIsLike op )
            throws UnmappableException, FilterEvaluationException {
  Expression pattern = op.getPattern();
  if ( pattern instanceof Literal ) {
    String literal = ( (Literal<?>) pattern ).getValue().toString();
    return toProtoSql( op, literal );
  } else if ( pattern instanceof Function ) {
    String valueAsString = getStringValueFromFunction( pattern );
    return toProtoSql( op, valueAsString );
  }
  String msg = "Mapping of PropertyIsLike with non-literal or non-function comparisons to SQL is not implemented yet.";
  throw new UnsupportedOperationException( msg );
}
origin: deegree/deegree3

          throws UnmappableException, FilterEvaluationException {
if ( !( op.getPattern() instanceof Literal ) ) {
  String msg = "Mapping of PropertyIsLike with non-literal comparisons to SQL is not implemented yet.";
  throw new UnsupportedOperationException( msg );
String literal = ( (Literal) op.getPattern() ).getValue().toString();
String escape = "" + op.getEscapeChar();
String wildCard = "" + op.getWildCard();
origin: deegree/deegree3

  export( isLikeOperator.getPattern(), writer );
  break;
case PROPERTY_IS_NOT_EQUAL_TO:
origin: deegree/deegree3

          throws UnmappableException, FilterEvaluationException {
if ( !( op.getPattern() instanceof Literal ) ) {
  String msg = "Mapping of PropertyIsLike with non-literal comparisons to SQL is not implemented yet.";
  throw new UnsupportedOperationException( msg );
String literal = ( (Literal) op.getPattern() ).getValue().toString();
String escape = "" + op.getEscapeChar();
String wildCard = "" + op.getWildCard();
origin: deegree/deegree3

case PROPERTY_IS_LIKE:
  PropertyIsLike pil = (PropertyIsLike) op;
  return new PropertyIsLike( copy( pil.getExpression() ), copyExpression( pil.getPattern(), values ),
                pil.getWildCard(), pil.getSingleChar(), pil.getEscapeChar(),
                pil.isMatchCase(), pil.getMatchAction() );
org.deegree.filter.comparisonPropertyIsLikegetPattern

Popular methods of PropertyIsLike

  • getEscapeChar
  • getExpression
  • getSingleChar
  • getWildCard
  • isMatchCase
  • <init>
  • getMatchAction
  • getPrimitiveValues
  • matches
    Checks if a given String matches a pattern that is a sequence of: * standard characters * wildca

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • runOnUiThread (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ImageIO (javax.imageio)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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