Class CpoNativeFunction

java.lang.Object
org.synchronoss.cpo.core.CpoNativeFunction

public class CpoNativeFunction extends Object
Represents a native (datastore-specific) function expression bound to a marker, for embedding SQL/CQL functions like UPPER(?) into a CPO where/order-by clause.
Author:
david berry
  • Constructor Details

    • CpoNativeFunction

      public CpoNativeFunction()
      Creates an empty native function with no marker or expression set.
    • CpoNativeFunction

      public CpoNativeFunction(String marker, String text)
      Creates a native function with the given marker and expression text.
      Parameters:
      marker - the bind marker this function is associated with
      text - the native expression text
  • Method Details

    • setMarker

      public void setMarker(String marker)
      Sets the bind marker this function is associated with.
      Parameters:
      marker - the bind marker
    • getMarker

      public String getMarker()
      Gets the bind marker this function is associated with.
      Returns:
      the bind marker
    • setExpression

      public void setExpression(String expession)
      Sets the native expression text.
      Parameters:
      expession - the native expression text
    • getExpression

      public String getExpression()
      Gets the native expression text.
      Returns:
      the native expression text