public class SubstringFunction extends BasicFunctionExpression<String> implements Serializable
ParameterContainer.Helper
Constructor and Description |
---|
SubstringFunction(CriteriaBuilderImpl criteriaBuilder,
Expression<String> value,
Expression<Integer> start) |
SubstringFunction(CriteriaBuilderImpl criteriaBuilder,
Expression<String> value,
Expression<Integer> start,
Expression<Integer> length) |
SubstringFunction(CriteriaBuilderImpl criteriaBuilder,
Expression<String> value,
int start) |
SubstringFunction(CriteriaBuilderImpl criteriaBuilder,
Expression<String> value,
int start,
int length) |
Modifier and Type | Method and Description |
---|---|
Expression<Integer> |
getLength() |
Expression<Integer> |
getStart() |
Expression<String> |
getValue() |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
String |
render(CriteriaQueryCompiler.RenderingContext renderingContext) |
getFunctionName, isAggregation, properSize, renderProjection
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
getValueHandlers
getValueHandler
public static final String NAME
public SubstringFunction(CriteriaBuilderImpl criteriaBuilder, Expression<String> value, Expression<Integer> start, Expression<Integer> length)
public SubstringFunction(CriteriaBuilderImpl criteriaBuilder, Expression<String> value, Expression<Integer> start)
public SubstringFunction(CriteriaBuilderImpl criteriaBuilder, Expression<String> value, int start)
public SubstringFunction(CriteriaBuilderImpl criteriaBuilder, Expression<String> value, int start, int length)
public Expression<Integer> getLength()
public Expression<Integer> getStart()
public Expression<String> getValue()
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registerParameters
in class BasicFunctionExpression<String>
registry
- The parameter registry with which to register.public String render(CriteriaQueryCompiler.RenderingContext renderingContext)
render
in interface Renderable
render
in class BasicFunctionExpression<String>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.