Package org.synchronoss.cpo.core
Class CpoNativeFunction
java.lang.Object
org.synchronoss.cpo.core.CpoNativeFunction
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 Summary
ConstructorsConstructorDescriptionCreates an empty native function with no marker or expression set.CpoNativeFunction(String marker, String text) Creates a native function with the given marker and expression text. -
Method Summary
Modifier and TypeMethodDescriptionGets the native expression text.Gets the bind marker this function is associated with.voidsetExpression(String expession) Sets the native expression text.voidSets the bind marker this function is associated with.
-
Constructor Details
-
CpoNativeFunction
public CpoNativeFunction()Creates an empty native function with no marker or expression set. -
CpoNativeFunction
Creates a native function with the given marker and expression text.- Parameters:
marker- the bind marker this function is associated withtext- the native expression text
-
-
Method Details
-
setMarker
Sets the bind marker this function is associated with.- Parameters:
marker- the bind marker
-
getMarker
Gets the bind marker this function is associated with.- Returns:
- the bind marker
-
setExpression
Sets the native expression text.- Parameters:
expession- the native expression text
-
getExpression
Gets the native expression text.- Returns:
- the native expression text
-