The
LOCATE
function returns the position of a given string within a string, starting the search at a specified position. It returns the first position at which the string was found as an integer. The first argument is the string to be located; the second argument is the string to be searched; the optional third argument is an integer that represents the string position at which the search is started (by default, the beginning of the string to be searched). The first position in a string is denoted by 1. If the string is not found, 0 is returned. The
LENGTH
function returns the length of the string in characters as an integer.
BNF: expression ::= LOCATE(string_primary, string_primary [, simple_arithmetic_expression])
@see LocateExpression
@version 2.4
@since 2.4
@author Pascal Filion
| StateObject secondStateObject = stateObject;
expression.getThirdExpression().accept(this);
StateObject thirdStateObject = stateObject;
LocateExpressionStateObject stateObject = new LocateExpressionStateObject(
parent,
firstStateObject,
secondStateObject,
thirdStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
|
StateObject thirdStateObject = (parameter3 != null) ? pop() : null;
StateObject secondStateObject = pop();
StateObject firstStateObject = pop();
StateObject stateObject = new LocateExpressionStateObject(
parent,
firstStateObject,
secondStateObject,
thirdStateObject
);
|
| StateObject secondStateObject = stateObject;
expression.getThirdExpression().accept(this);
StateObject thirdStateObject = stateObject;
LocateExpressionStateObject stateObject = new LocateExpressionStateObject(
parent,
firstStateObject,
secondStateObject,
thirdStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| StateObject secondStateObject = stateObject;
expression.getThirdExpression().accept(this);
StateObject thirdStateObject = stateObject;
LocateExpressionStateObject stateObject = new LocateExpressionStateObject(
parent,
firstStateObject,
secondStateObject,
thirdStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
|
StateObject thirdStateObject = (parameter3 != null) ? pop() : null;
StateObject secondStateObject = pop();
StateObject firstStateObject = pop();
StateObject stateObject = new LocateExpressionStateObject(
parent,
firstStateObject,
secondStateObject,
thirdStateObject
);
|
Related Classes of org.eclipse.persistence.jpa.jpql.model.query.LocateExpressionStateObject
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact
coftware#gmail.com.