|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.expressions.ExpressionOperator
public class ExpressionOperator
Purpose: ADVANCED: The expression operator is used internally to define SQL operations and functions. It is possible for an advanced user to define their own operators.
Field Summary | |
---|---|
static int |
Abs
|
static int |
Acos
|
static int |
Add
|
static int |
AddDate
|
static int |
AddMonths
|
static int |
AggregateOperator
|
static int |
All
|
protected static java.util.Map |
allOperators
|
static int |
And
Logical operators |
static int |
Any
|
protected int[] |
argumentIndices
|
static int |
Ascending
Ordering operators |
static int |
Ascii
|
static int |
Asin
|
static int |
Atan
|
static int |
Atan2
|
static int |
Average
|
static int |
Between
|
static int |
Case
|
static int |
CaseCondition
|
static int |
Ceil
|
static int |
CharIndex
|
static int |
CharLength
|
static int |
Chr
|
static int |
Coalesce
|
static int |
ComparisonOperator
|
static int |
Concat
|
static int |
Cos
|
static int |
Cosh
|
static int |
Cot
|
static int |
Count
Aggregate operators |
static int |
CurrentDate
Function to obtain the current date on the database with date components only but without time components. |
static int |
CurrentTime
Function to obtain the current time on the database with time components only but without date components. |
protected java.lang.String[] |
databaseStrings
|
static int |
DateDifference
|
static int |
DateName
|
static int |
DatePart
|
static int |
DateToString
|
static int |
Decode
|
static int |
Deref
|
static int |
Descending
|
static int |
Difference
|
static int |
Distinct
|
static int |
Divide
|
static int |
Equal
Comparison operators |
static int |
EqualOuterJoin
|
static int |
Exists
|
static int |
ExistsNode
|
static int |
Exp
|
static int |
Extract
|
static int |
ExtractValue
|
static int |
Floor
|
static int |
FunctionOperator
|
static int |
GetNumberVal
|
static int |
GetStringVal
|
static int |
GreaterThan
|
static int |
GreaterThanEqual
|
static int |
Greatest
|
static int |
HexToRaw
|
static int |
In
|
static int |
Initcap
|
static int |
Instring
|
static int |
InSubQuery
|
protected boolean |
isBindingSupported
Allow operator to disable binding. |
static int |
IsFragment
|
static int |
IsNull
|
protected boolean |
isPrefix
|
protected boolean |
isRepeating
|
protected java.lang.String[] |
javaStrings
|
static int |
LastDay
|
static int |
Least
|
static int |
LeftPad
|
static int |
LeftTrim
|
static int |
LeftTrim2
|
static int |
Length
|
static int |
LessThan
|
static int |
LessThanEqual
|
static int |
Like
|
static int |
LikeEscape
|
static int |
Ln
|
static int |
Locate
|
static int |
Locate2
|
static int |
Log
|
static int |
LogicalOperator
Operator types |
static int |
Maximum
|
static int |
Minimum
|
static int |
Mod
|
static int |
MonthsBetween
|
static int |
Multiply
|
static int |
Negate
|
static int |
NewTime
|
static int |
NextDay
|
protected java.lang.Class |
nodeClass
|
static int |
Not
|
static int |
NotBetween
|
static int |
NotEqual
|
static int |
NotExists
|
static int |
NotIn
|
static int |
NotInSubQuery
|
static int |
NotLike
|
static int |
NotLikeEscape
|
static int |
NotNull
|
static int |
NullIf
|
static int |
Nvl
|
static int |
Or
|
static int |
OrderOperator
|
protected static java.util.Map |
platformOperatorNames
|
static int |
Power
|
static int |
Ref
|
static int |
RefToHex
|
static int |
Replace
|
static int |
Replicate
|
static int |
Reverse
|
static int |
Right
|
static int |
RightPad
|
static int |
RightTrim
|
static int |
RightTrim2
|
static int |
Round
|
static int |
RoundDate
|
static int |
SDO_FILTER
|
static int |
SDO_NN
|
static int |
SDO_RELATE
|
static int |
SDO_WITHIN_DISTANCE
|
protected int |
selector
|
static int |
Sign
|
static int |
Sin
|
static int |
Sinh
|
static int |
Some
|
static int |
Soundex
|
static int |
Sqrt
|
static int |
StandardDeviation
|
static int |
Substring
|
static int |
SubstringSingleArg
|
static int |
Subtract
|
static int |
Sum
|
static int |
Tan
|
static int |
Tanh
|
static int |
ToChar
|
static int |
ToCharWithFormat
|
static int |
ToDate
|
static int |
Today
Function to obtain the current timestamp on the database including date and time components. |
static int |
ToLowerCase
|
static int |
ToNumber
|
static int |
ToUpperCase
Function operators |
static int |
Translate
|
static int |
Trim
|
static int |
Trim2
|
static int |
Trunc
|
static int |
TruncateDate
|
protected int |
type
|
static int |
Value
|
static int |
Variance
|
Constructor Summary | |
---|---|
ExpressionOperator()
ADVANCED: Create a new operator. |
|
ExpressionOperator(int selector,
java.util.Vector newDatabaseStrings)
ADVANCED: Create a new operator with the given name(s) and strings to print. |
Method Summary | |
---|---|
static ExpressionOperator |
abs()
INTERNAL: Build operator. |
static ExpressionOperator |
acos()
INTERNAL: Build operator. |
static ExpressionOperator |
addDate()
INTERNAL: Build operator. |
static ExpressionOperator |
addMonths()
INTERNAL: Build operator. |
static void |
addOperator(ExpressionOperator exOperator)
ADVANCED: Add an operator to the global list of operators. |
static ExpressionOperator |
all()
INTERNAL: Create the ALL operator. |
static ExpressionOperator |
and()
INTERNAL: Create the AND operator. |
static ExpressionOperator |
any()
INTERNAL: Create the ANY operator. |
java.lang.Object |
applyFunction(java.lang.Object source,
java.util.Vector arguments)
INTERNAL: Apply this to an object in memory. |
static ExpressionOperator |
ascending()
INTERNAL: Create the ASCENDING operator. |
static ExpressionOperator |
ascii()
INTERNAL: Build operator. |
static ExpressionOperator |
asin()
INTERNAL: Build operator. |
static ExpressionOperator |
atan()
INTERNAL: Build operator. |
static ExpressionOperator |
average()
INTERNAL: Create the AVERAGE operator. |
void |
bePostfix()
ADVANCED: Tell the operator to be postfix, i.e. its strings start printing after those of its first argument. |
void |
bePrefix()
ADVANCED: Tell the operator to be pretfix, i.e. its strings start printing before those of its first argument. |
void |
beRepeating()
INTERNAL: Make this a repeating argument. |
static ExpressionOperator |
between()
INTERNAL: Create the BETWEEN Operator |
static ExpressionOperator |
caseConditionStatement()
INTERNAL: Build operator. |
static ExpressionOperator |
caseStatement()
INTERNAL: Build operator. |
static ExpressionOperator |
ceil()
INTERNAL: Build operator. |
static ExpressionOperator |
charIndex()
INTERNAL: Build operator. |
static ExpressionOperator |
charLength()
INTERNAL: Build operator. |
static ExpressionOperator |
chr()
INTERNAL: Build operator. |
static ExpressionOperator |
coalesce()
INTERNAL: Build operator. |
static ExpressionOperator |
concat()
INTERNAL: Build operator. |
boolean |
conformBetween(java.lang.Object left,
java.lang.Object right)
INTERNAL: Compare between in memory. |
boolean |
conformLike(java.lang.Object left,
java.lang.Object right)
INTERNAL: Compare like in memory. |
void |
copyTo(ExpressionOperator operator)
|
static ExpressionOperator |
cos()
INTERNAL: Build operator. |
static ExpressionOperator |
cosh()
INTERNAL: Build operator. |
static ExpressionOperator |
cot()
INTERNAL: Build operator. |
static ExpressionOperator |
count()
INTERNAL: Create the COUNT operator. |
protected Expression |
createNode()
INTERNAL: Instantiate an instance of the operator's node class. |
static ExpressionOperator |
currentDate()
INTERNAL: Build operator. |
static ExpressionOperator |
currentTime()
INTERNAL: Build operator. |
static ExpressionOperator |
currentTimeStamp()
INTERNAL: Build operator. |
static ExpressionOperator |
dateDifference()
INTERNAL: Build operator. |
static ExpressionOperator |
dateName()
INTERNAL: Build operator. |
static ExpressionOperator |
datePart()
INTERNAL: Build operator. |
static ExpressionOperator |
dateToString()
INTERNAL: Build operator. |
static ExpressionOperator |
decode()
INTERNAL: Build operator. |
static ExpressionOperator |
deref()
INTERNAL: Build operator. |
static ExpressionOperator |
descending()
INTERNAL: Create the DESCENDING operator. |
static ExpressionOperator |
difference()
INTERNAL: Build operator. |
static ExpressionOperator |
distinct()
INTERNAL: Create the DISTINCT operator. |
boolean |
doesRelationConform(java.lang.Object left,
java.lang.Object right)
INTERNAL: Compare the values in memory. |
static ExpressionOperator |
equalOuterJoin()
INTERNAL: Initialize the outer join operator Note: This is merely a shell which is incomplete, and so will be replaced by the platform's operator when we go to print. |
boolean |
equals(java.lang.Object object)
INTERNAL: Return if the operator is equal to the other. |
static ExpressionOperator |
exists()
INTERNAL: Create the EXISTS operator. |
static ExpressionOperator |
existsNode()
INTERNAL: Create the existsNode expression operator |
static ExpressionOperator |
exp()
INTERNAL: Build operator. |
Expression |
expressionFor(Expression base)
INTERNAL: Create an expression for this operator, using the given base. |
Expression |
expressionFor(Expression base,
java.lang.Object value)
INTERNAL: Create an expression for this operator, using the given base and a single argument. |
Expression |
expressionForArguments(Expression base,
java.util.Vector arguments)
INTERNAL: Create an expression for this operator, using the given base and arguments. |
Expression |
expressionForWithBaseLast(Expression base,
java.lang.Object value)
INTERNAL: Create an expression for this operator, using the given base and a single argument. |
static ExpressionOperator |
extract()
INTERNAL: Create the extract expression operator |
static ExpressionOperator |
extractValue()
INTERNAL: Create the extractValue expression operator |
static ExpressionOperator |
floor()
INTERNAL: Build operator. |
static java.util.Map |
getAllOperators()
ADVANCED: Return the hashtable of all operators. |
java.lang.String[] |
getDatabaseStrings()
INTERNAL: |
java.lang.String[] |
getJavaStrings()
INTERNAL: |
java.lang.Class |
getNodeClass()
INTERNAL: |
static ExpressionOperator |
getNumberVal()
|
static ExpressionOperator |
getOperator(java.lang.Integer selector)
INTERNAL: Lookup the operator with the given name. |
static java.lang.String |
getPlatformOperatorName(int operator)
INTERNAL: Initialize a mapping to the platform operator names for usage with exceptions. |
static java.util.Map |
getPlatformOperatorNames()
INTERNAL: Initialize a mapping to the platform operator names for usage with exceptions. |
int |
getSelector()
INTERNAL: Return the selector id. |
static ExpressionOperator |
getStringVal()
|
int |
getType()
ADVANCED: Return the type of function. |
static ExpressionOperator |
greatest()
INTERNAL: Build operator. |
int |
hashCode()
INTERNAL: Return the hash-code based on the unique selector. |
static ExpressionOperator |
hexToRaw()
INTERNAL: Build operator. |
static ExpressionOperator |
ifNull()
INTERNAL: Build operator. |
static ExpressionOperator |
in()
INTERNAL: Create the IN operator. |
static ExpressionOperator |
initcap()
INTERNAL: Build operator. |
protected static void |
initializeAggregateFunctionOperators()
INTERNAL: |
protected static void |
initializeFunctionOperators()
INTERNAL: |
protected static void |
initializeLogicalOperators()
INTERNAL: |
static java.util.Map |
initializeOperators()
INTERNAL: |
static java.util.Map |
initializePlatformOperatorNames()
INTERNAL: Initialize a mapping to the platform operator names for usage with exceptions. |
protected static void |
initializeRelationOperators()
INTERNAL: |
static ExpressionOperator |
instring()
INTERNAL: Build operator. |
static ExpressionOperator |
inSubQuery()
INTERNAL: Create the IN operator taking a subquery. |
boolean |
isAggregateOperator()
Aggregate functions are function in the select such as COUNT. |
boolean |
isAll()
INTERNAL: Indicates whether operator has selector All |
boolean |
isAny()
INTERNAL: Indicates whether operator has selector Any or Some |
boolean |
isAnyOrAll()
INTERNAL: Indicates whether operator has selector Any, Some or All |
boolean |
isBindingSupported()
PUBLIC: Return if binding is compatible with this operator. |
boolean |
isComparisonOperator()
Comparison functions are functions such as = and >. |
boolean |
isComplete()
INTERNAL: If we have all the required information, this operator is complete and can be used as is. |
static ExpressionOperator |
isFragment()
|
boolean |
isFunctionOperator()
General functions are any normal function such as UPPER. |
boolean |
isLogicalOperator()
Logical functions are functions such as and and or. |
static ExpressionOperator |
isNull()
INTERNAL: Create the ISNULL operator. |
boolean |
isOrderOperator()
Order functions are used in the order by such as ASC. |
boolean |
isPrefix()
ADVANCED: Return true if this is a prefix operator. |
static ExpressionOperator |
lastDay()
INTERNAL: Build operator. |
static ExpressionOperator |
least()
INTERNAL: Build operator. |
static ExpressionOperator |
leftPad()
INTERNAL: Build operator. |
static ExpressionOperator |
leftTrim()
INTERNAL: Build operator. |
static ExpressionOperator |
leftTrim2()
INTERNAL: Build leftTrim operator that takes one parameter. |
static ExpressionOperator |
length()
INTERNAL: Build operator. |
static ExpressionOperator |
like()
INTERNAL: Create the LIKE operator. |
static ExpressionOperator |
likeEscape()
INTERNAL: Create the LIKE operator with ESCAPE. |
static ExpressionOperator |
ln()
INTERNAL: Build operator. |
static ExpressionOperator |
locate()
INTERNAL: Build locate operator i.e. |
static ExpressionOperator |
locate2()
INTERNAL: Build locate operator with 3 params i.e. |
static ExpressionOperator |
log()
INTERNAL: Build operator. |
static ExpressionOperator |
maximum()
INTERNAL: Create the MAXIMUM operator. |
static ExpressionOperator |
minimum()
INTERNAL: Create the MINIMUM operator. |
static ExpressionOperator |
mod()
INTERNAL: Build operator. |
static ExpressionOperator |
monthsBetween()
INTERNAL: Build operator. |
static ExpressionOperator |
negate()
INTERNAL: Build operator. |
Expression |
newExpressionForArgument(Expression base,
java.lang.Object singleArgument)
INTERNAL: Create a new expression. |
Expression |
newExpressionForArguments(Expression base,
java.util.Vector arguments)
INTERNAL: The general case. |
Expression |
newExpressionForArgumentWithBaseLast(Expression base,
java.lang.Object singleArgument)
INTERNAL: Create a new expression. |
static ExpressionOperator |
newTime()
INTERNAL: Build operator. |
static ExpressionOperator |
nextDay()
INTERNAL: Build operator. |
static ExpressionOperator |
notExists()
INTERNAL: Create the NOT EXISTS operator. |
static ExpressionOperator |
notIn()
INTERNAL: Create the NOTIN operator. |
static ExpressionOperator |
notInSubQuery()
INTERNAL: Create the NOTIN operator taking a subQuery. |
static ExpressionOperator |
notLike()
INTERNAL: Create the NOTLIKE operator. |
static ExpressionOperator |
notLikeEscape()
INTERNAL: Create the LIKE operator with ESCAPE. |
static ExpressionOperator |
notNull()
INTERNAL: Create the NOTNULL operator. |
static ExpressionOperator |
notOperator()
INTERNAL: Create the NOT operator. |
static ExpressionOperator |
nullIf()
INTERNAL: Build operator. |
static ExpressionOperator |
or()
INTERNAL: Create the OR operator. |
static ExpressionOperator |
oracleDateName()
INTERNAL: Oracle equivalent to DATENAME is TO_CHAR. |
static ExpressionOperator |
power()
INTERNAL: Build operator. |
void |
printCollection(java.util.Vector items,
org.eclipse.persistence.internal.expressions.ExpressionSQLPrinter printer)
INTERNAL: Print the collection onto the SQL stream. |
void |
printDuo(Expression first,
Expression second,
org.eclipse.persistence.internal.expressions.ExpressionSQLPrinter printer)
INTERNAL: For performance, special case printing two children, since it's by far the most common |
void |
printJavaCollection(java.util.Vector items,
org.eclipse.persistence.internal.expressions.ExpressionJavaPrinter printer)
INTERNAL: Print the collection onto the SQL stream. |
void |
printJavaDuo(Expression first,
Expression second,
org.eclipse.persistence.internal.expressions.ExpressionJavaPrinter printer)
INTERNAL: For performance, special case printing two children, since it's by far the most common |
void |
printsAs(java.lang.String s)
ADVANCED: Set the single string for this operator. |
void |
printsAs(java.util.Vector dbStrings)
ADVANCED: Set the strings for this operator. |
void |
printsJavaAs(java.lang.String s)
ADVANCED: Set the single string for this operator. |
void |
printsJavaAs(java.util.Vector dbStrings)
ADVANCED: Set the strings for this operator. |
static ExpressionOperator |
ref()
INTERNAL: Build operator. |
static ExpressionOperator |
refToHex()
INTERNAL: Build operator. |
static ExpressionOperator |
replace()
INTERNAL: Build operator. |
static ExpressionOperator |
replicate()
INTERNAL: Build operator. |
static void |
resetOperators()
INTERNAL: Reset all the operators. |
static ExpressionOperator |
reverse()
INTERNAL: Build operator. |
static ExpressionOperator |
right()
INTERNAL: Build operator. |
static ExpressionOperator |
rightPad()
INTERNAL: Build operator. |
static ExpressionOperator |
rightTrim()
INTERNAL: Build operator. |
static ExpressionOperator |
rightTrim2()
INTERNAL: Build rightTrim operator that takes one parameter. |
static ExpressionOperator |
round()
INTERNAL: Build operator. |
static ExpressionOperator |
roundDate()
INTERNAL: Build operator. |
void |
setArgumentIndices(int[] indices)
ADVANCED: Set the array of indexes to use when building the SQL function. |
void |
setIsBindingSupported(boolean isBindingSupported)
PUBLIC: Set if binding is compatible with this operator. |
void |
setNodeClass(java.lang.Class nodeClass)
ADVANCED: Set the node class for this operator. |
void |
setSelector(int selector)
INTERNAL: Set the selector id. |
void |
setType(int type)
ADVANCED: Set the type of function. |
static ExpressionOperator |
sign()
INTERNAL: Build operator. |
static ExpressionOperator |
simpleAggregate(int selector,
java.lang.String databaseName,
java.lang.String javaName)
INTERNAL: Create an operator for a simple aggregate given a Java name and a single String for the database (parentheses will be added automatically). |
static ExpressionOperator |
simpleFunction(int selector,
java.lang.String databaseName)
INTERNAL: Create an operator for a simple function given a Java name and a single String for the database (parentheses will be added automatically). |
static ExpressionOperator |
simpleFunction(int selector,
java.lang.String databaseName,
java.lang.String javaName)
INTERNAL: Create an operator for a simple function given a Java name and a single String for the database (parentheses will be added automatically). |
static ExpressionOperator |
simpleFunctionNoParentheses(int selector,
java.lang.String databaseName)
INTERNAL: Create an operator for a simple function call without parentheses |
static ExpressionOperator |
simpleLogical(int selector,
java.lang.String databaseName,
java.lang.String javaName)
INTERNAL: Create an operator for a simple logical given a Java name and a single String for the database (parentheses will be added automatically). |
static ExpressionOperator |
simpleLogicalNoParens(int selector,
java.lang.String dbString)
INTERNAL: e.g.: ... |
static ExpressionOperator |
simpleMath(int selector,
java.lang.String databaseName)
INTERNAL: Create an operator for a simple math operatin, i.e. +, -, *, / |
static ExpressionOperator |
simpleOrdering(int selector,
java.lang.String databaseName,
java.lang.String javaName)
INTERNAL: Create an operator for a simple ordering given a Java name and a single String for the database (parentheses will be added automatically). |
static ExpressionOperator |
simpleRelation(int selector,
java.lang.String databaseName)
INTERNAL: Create an operator for a simple relation given a Java name and a single String for the database (parentheses will be added automatically). |
static ExpressionOperator |
simpleRelation(int selector,
java.lang.String databaseName,
java.lang.String javaName)
INTERNAL: Create an operator for a simple relation given a Java name and a single String for the database (parentheses will be added automatically). |
static ExpressionOperator |
simpleThreeArgumentFunction(int selector,
java.lang.String dbString)
INTERNAL: Build operator. |
static ExpressionOperator |
simpleTwoArgumentFunction(int selector,
java.lang.String dbString)
INTERNAL: Build operator. |
static ExpressionOperator |
sin()
INTERNAL: Build operator. |
static ExpressionOperator |
sinh()
INTERNAL: Build operator. |
static ExpressionOperator |
some()
INTERNAL: Create the SOME operator. |
static ExpressionOperator |
soundex()
INTERNAL: Build operator. |
static ExpressionOperator |
sqrt()
INTERNAL: Build operator. |
static ExpressionOperator |
standardDeviation()
INTERNAL: Build operator. |
static ExpressionOperator |
substring()
INTERNAL: Build operator. |
static ExpressionOperator |
substringSingleArg()
INTERNAL: Build operator. |
static ExpressionOperator |
sum()
INTERNAL: Create the SUM operator. |
static ExpressionOperator |
sybaseAddMonthsOperator()
INTERNAL: Function, to add months to a date. |
static ExpressionOperator |
sybaseAtan2Operator()
INTERNAL: Build operator. |
static ExpressionOperator |
sybaseInStringOperator()
INTERNAL: Build instring operator |
static ExpressionOperator |
sybaseLocateOperator()
INTERNAL: Build the Sybase equivalent to Locate |
static ExpressionOperator |
sybaseToCharOperator()
INTERNAL: Build Sybase equivalent to TO_CHAR. |
static ExpressionOperator |
sybaseToCharWithFormatOperator()
INTERNAL: Build Sybase equivalent to TO_CHAR. |
static ExpressionOperator |
sybaseToDateOperator()
INTERNAL: Build Sybase equivalent to TO_DATE. |
static ExpressionOperator |
sybaseToDateToStringOperator()
INTERNAL: Build Sybase equivalent to TO_CHAR. |
static ExpressionOperator |
sybaseToNumberOperator()
INTERNAL: Build Sybase equivalent to TO_NUMBER. |
static ExpressionOperator |
tan()
INTERNAL: Build operator. |
static ExpressionOperator |
tanh()
INTERNAL: Build operator. |
static ExpressionOperator |
toChar()
INTERNAL: Build operator. |
static ExpressionOperator |
toCharWithFormat()
INTERNAL: Build operator. |
static ExpressionOperator |
toDate()
INTERNAL: Build operator. |
static ExpressionOperator |
today()
INTERNAL: Build operator. |
static ExpressionOperator |
toLowerCase()
INTERNAL: Create the toLowerCase operator. |
static ExpressionOperator |
toNumber()
INTERNAL: Build operator. |
java.lang.String |
toString()
Print a debug representation of this operator. |
static ExpressionOperator |
toUpperCase()
INTERNAL: Create the TOUPPERCASE operator. |
static ExpressionOperator |
translate()
INTERNAL: Build operator. |
static ExpressionOperator |
trim()
INTERNAL: Build operator. |
static ExpressionOperator |
trim2()
INTERNAL: Build Trim operator. |
static ExpressionOperator |
trunc()
INTERNAL: Build operator. |
static ExpressionOperator |
truncateDate()
INTERNAL: Build operator. |
static ExpressionOperator |
value()
INTERNAL: Build operator. |
static ExpressionOperator |
variance()
INTERNAL: Build operator. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int selector
protected java.lang.String[] databaseStrings
protected boolean isPrefix
protected boolean isRepeating
protected java.lang.Class nodeClass
protected int type
protected int[] argumentIndices
protected static java.util.Map allOperators
protected static java.util.Map platformOperatorNames
protected java.lang.String[] javaStrings
protected boolean isBindingSupported
public static final int LogicalOperator
public static final int ComparisonOperator
public static final int AggregateOperator
public static final int OrderOperator
public static final int FunctionOperator
public static final int And
public static final int Or
public static final int Not
public static final int Equal
public static final int NotEqual
public static final int EqualOuterJoin
public static final int LessThan
public static final int LessThanEqual
public static final int GreaterThan
public static final int GreaterThanEqual
public static final int Like
public static final int NotLike
public static final int In
public static final int InSubQuery
public static final int NotIn
public static final int NotInSubQuery
public static final int Between
public static final int NotBetween
public static final int IsNull
public static final int NotNull
public static final int Exists
public static final int NotExists
public static final int LikeEscape
public static final int NotLikeEscape
public static final int Decode
public static final int Case
public static final int NullIf
public static final int Coalesce
public static final int CaseCondition
public static final int Count
public static final int Sum
public static final int Average
public static final int Maximum
public static final int Minimum
public static final int StandardDeviation
public static final int Variance
public static final int Distinct
public static final int Ascending
public static final int Descending
public static final int ToUpperCase
public static final int ToLowerCase
public static final int Chr
public static final int Concat
public static final int HexToRaw
public static final int Initcap
public static final int Instring
public static final int Soundex
public static final int LeftPad
public static final int LeftTrim
public static final int Replace
public static final int RightPad
public static final int RightTrim
public static final int Substring
public static final int ToNumber
public static final int Translate
public static final int Trim
public static final int Ascii
public static final int Length
public static final int CharIndex
public static final int CharLength
public static final int Difference
public static final int Reverse
public static final int Replicate
public static final int Right
public static final int Locate
public static final int Locate2
public static final int ToChar
public static final int ToCharWithFormat
public static final int RightTrim2
public static final int Any
public static final int Some
public static final int All
public static final int Trim2
public static final int LeftTrim2
public static final int SubstringSingleArg
public static final int AddMonths
public static final int DateToString
public static final int LastDay
public static final int MonthsBetween
public static final int NextDay
public static final int RoundDate
public static final int ToDate
public static final int Today
public static final int AddDate
public static final int DateName
public static final int DatePart
public static final int DateDifference
public static final int TruncateDate
public static final int NewTime
public static final int Nvl
public static final int CurrentDate
public static final int CurrentTime
public static final int Ceil
public static final int Cos
public static final int Cosh
public static final int Abs
public static final int Acos
public static final int Asin
public static final int Atan
public static final int Exp
public static final int Sqrt
public static final int Floor
public static final int Ln
public static final int Log
public static final int Mod
public static final int Power
public static final int Round
public static final int Sign
public static final int Sin
public static final int Sinh
public static final int Tan
public static final int Tanh
public static final int Trunc
public static final int Greatest
public static final int Least
public static final int Add
public static final int Subtract
public static final int Divide
public static final int Multiply
public static final int Atan2
public static final int Cot
public static final int Negate
public static final int Deref
public static final int Ref
public static final int RefToHex
public static final int Value
public static final int Extract
public static final int ExtractValue
public static final int ExistsNode
public static final int GetStringVal
public static final int GetNumberVal
public static final int IsFragment
public static final int SDO_WITHIN_DISTANCE
public static final int SDO_RELATE
public static final int SDO_FILTER
public static final int SDO_NN
Constructor Detail |
---|
public ExpressionOperator()
public ExpressionOperator(int selector, java.util.Vector newDatabaseStrings)
Method Detail |
---|
public boolean isBindingSupported()
public void setIsBindingSupported(boolean isBindingSupported)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static ExpressionOperator abs()
public static ExpressionOperator acos()
public static ExpressionOperator addDate()
public static ExpressionOperator addMonths()
public static void addOperator(ExpressionOperator exOperator)
public static ExpressionOperator and()
public java.lang.Object applyFunction(java.lang.Object source, java.util.Vector arguments)
public static ExpressionOperator ascending()
public static ExpressionOperator ascii()
public static ExpressionOperator asin()
public static ExpressionOperator atan()
public static ExpressionOperator average()
public void bePostfix()
public void bePrefix()
public void beRepeating()
public static ExpressionOperator between()
public static ExpressionOperator caseStatement()
Expression#caseStatement(Map, String)
public static ExpressionOperator caseConditionStatement()
Expression#caseStatement(Map, String)
public static ExpressionOperator ceil()
public static ExpressionOperator charIndex()
public static ExpressionOperator charLength()
public static ExpressionOperator chr()
public static ExpressionOperator coalesce()
Expression#caseStatement(Map, String)
public static ExpressionOperator concat()
public boolean conformBetween(java.lang.Object left, java.lang.Object right)
public boolean conformLike(java.lang.Object left, java.lang.Object right)
public void copyTo(ExpressionOperator operator)
public static ExpressionOperator cos()
public static ExpressionOperator cosh()
public static ExpressionOperator cot()
public static ExpressionOperator count()
public static ExpressionOperator dateDifference()
public static ExpressionOperator dateName()
public static ExpressionOperator oracleDateName()
public static ExpressionOperator datePart()
public static ExpressionOperator dateToString()
public static ExpressionOperator toChar()
public static ExpressionOperator toCharWithFormat()
public static ExpressionOperator decode()
Expression.decode(Map, String)
public static ExpressionOperator deref()
public static ExpressionOperator descending()
public static ExpressionOperator difference()
public static ExpressionOperator distinct()
public boolean doesRelationConform(java.lang.Object left, java.lang.Object right)
public static ExpressionOperator equalOuterJoin()
public static ExpressionOperator exists()
public static ExpressionOperator exp()
public Expression expressionFor(Expression base)
public Expression expressionFor(Expression base, java.lang.Object value)
public Expression expressionForWithBaseLast(Expression base, java.lang.Object value)
public Expression expressionForArguments(Expression base, java.util.Vector arguments)
public static ExpressionOperator extract()
public static ExpressionOperator extractValue()
public static ExpressionOperator existsNode()
public static ExpressionOperator getStringVal()
public static ExpressionOperator getNumberVal()
public static ExpressionOperator isFragment()
public static ExpressionOperator floor()
public static java.util.Map getAllOperators()
public java.lang.String[] getDatabaseStrings()
public java.lang.String[] getJavaStrings()
public java.lang.Class getNodeClass()
public static ExpressionOperator getOperator(java.lang.Integer selector)
public int getSelector()
public int getType()
public static ExpressionOperator greatest()
public static ExpressionOperator hexToRaw()
public static ExpressionOperator ifNull()
public static ExpressionOperator in()
public static ExpressionOperator inSubQuery()
public static ExpressionOperator initcap()
protected static void initializeAggregateFunctionOperators()
protected static void initializeFunctionOperators()
protected static void initializeLogicalOperators()
public static java.util.Map initializeOperators()
public static java.lang.String getPlatformOperatorName(int operator)
public static java.util.Map getPlatformOperatorNames()
public static java.util.Map initializePlatformOperatorNames()
protected static void initializeRelationOperators()
public static ExpressionOperator instring()
public boolean isAggregateOperator()
public boolean isComparisonOperator()
public boolean isComplete()
public boolean isFunctionOperator()
public boolean isLogicalOperator()
public static ExpressionOperator isNull()
public boolean isOrderOperator()
public boolean isPrefix()
public static ExpressionOperator lastDay()
public static ExpressionOperator least()
public static ExpressionOperator leftPad()
public static ExpressionOperator leftTrim()
public static ExpressionOperator leftTrim2()
public static ExpressionOperator length()
public static ExpressionOperator like()
public static ExpressionOperator likeEscape()
public static ExpressionOperator notLikeEscape()
public static ExpressionOperator ln()
public static ExpressionOperator locate()
public static ExpressionOperator locate2()
public static ExpressionOperator log()
public static ExpressionOperator maximum()
public static ExpressionOperator minimum()
public static ExpressionOperator mod()
public static ExpressionOperator monthsBetween()
public Expression newExpressionForArgument(Expression base, java.lang.Object singleArgument)
protected Expression createNode()
public Expression newExpressionForArgumentWithBaseLast(Expression base, java.lang.Object singleArgument)
public Expression newExpressionForArguments(Expression base, java.util.Vector arguments)
public static ExpressionOperator negate()
public static ExpressionOperator newTime()
public static ExpressionOperator nextDay()
public static ExpressionOperator notExists()
public static ExpressionOperator notIn()
public static ExpressionOperator notInSubQuery()
public static ExpressionOperator notLike()
public static ExpressionOperator notNull()
public static ExpressionOperator notOperator()
public static ExpressionOperator nullIf()
public static ExpressionOperator or()
public static ExpressionOperator power()
public void printCollection(java.util.Vector items, org.eclipse.persistence.internal.expressions.ExpressionSQLPrinter printer)
public void printJavaCollection(java.util.Vector items, org.eclipse.persistence.internal.expressions.ExpressionJavaPrinter printer)
public void printDuo(Expression first, Expression second, org.eclipse.persistence.internal.expressions.ExpressionSQLPrinter printer)
public void printJavaDuo(Expression first, Expression second, org.eclipse.persistence.internal.expressions.ExpressionJavaPrinter printer)
public void printsAs(java.lang.String s)
public void printsAs(java.util.Vector dbStrings)
public void printsJavaAs(java.lang.String s)
public void printsJavaAs(java.util.Vector dbStrings)
public static ExpressionOperator ref()
public static ExpressionOperator refToHex()
public static ExpressionOperator replace()
public static ExpressionOperator replicate()
public static void resetOperators()
public static ExpressionOperator reverse()
public static ExpressionOperator right()
public static ExpressionOperator rightPad()
public static ExpressionOperator rightTrim()
public static ExpressionOperator rightTrim2()
public static ExpressionOperator round()
public static ExpressionOperator roundDate()
public void setArgumentIndices(int[] indices)
public void setNodeClass(java.lang.Class nodeClass)
A list of Operator types, an example, and the node class used follows.
LogicalOperator AND LogicalExpression
ComparisonOperator <> RelationExpression
AggregateOperator COUNT FunctionExpression
OrderOperator ASCENDING "
FunctionOperator RTRIM "
Node classes given belong to org.eclipse.persistence.internal.expressions.
public void setSelector(int selector)
public void setType(int type)
public static ExpressionOperator sign()
public static ExpressionOperator simpleAggregate(int selector, java.lang.String databaseName, java.lang.String javaName)
public static ExpressionOperator simpleFunction(int selector, java.lang.String databaseName)
public static ExpressionOperator simpleFunctionNoParentheses(int selector, java.lang.String databaseName)
public static ExpressionOperator simpleFunction(int selector, java.lang.String databaseName, java.lang.String javaName)
public static ExpressionOperator simpleLogical(int selector, java.lang.String databaseName, java.lang.String javaName)
public static ExpressionOperator simpleMath(int selector, java.lang.String databaseName)
public static ExpressionOperator simpleOrdering(int selector, java.lang.String databaseName, java.lang.String javaName)
public static ExpressionOperator simpleRelation(int selector, java.lang.String databaseName)
public static ExpressionOperator simpleRelation(int selector, java.lang.String databaseName, java.lang.String javaName)
public static ExpressionOperator simpleThreeArgumentFunction(int selector, java.lang.String dbString)
public static ExpressionOperator simpleTwoArgumentFunction(int selector, java.lang.String dbString)
public static ExpressionOperator simpleLogicalNoParens(int selector, java.lang.String dbString)
public static ExpressionOperator sin()
public static ExpressionOperator sinh()
public static ExpressionOperator soundex()
public static ExpressionOperator sqrt()
public static ExpressionOperator standardDeviation()
public static ExpressionOperator substring()
public static ExpressionOperator substringSingleArg()
public static ExpressionOperator sum()
public static ExpressionOperator sybaseAddMonthsOperator()
public static ExpressionOperator sybaseAtan2Operator()
public static ExpressionOperator sybaseInStringOperator()
public static ExpressionOperator sybaseToNumberOperator()
public static ExpressionOperator sybaseToDateToStringOperator()
public static ExpressionOperator sybaseToDateOperator()
public static ExpressionOperator sybaseToCharOperator()
public static ExpressionOperator sybaseToCharWithFormatOperator()
public static ExpressionOperator sybaseLocateOperator()
public static ExpressionOperator tan()
public static ExpressionOperator tanh()
public static ExpressionOperator toDate()
public static ExpressionOperator today()
public static ExpressionOperator currentTimeStamp()
public static ExpressionOperator currentDate()
public static ExpressionOperator currentTime()
public static ExpressionOperator toLowerCase()
public static ExpressionOperator toNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public static ExpressionOperator toUpperCase()
public static ExpressionOperator translate()
public static ExpressionOperator trim()
public static ExpressionOperator trim2()
public static ExpressionOperator trunc()
public static ExpressionOperator truncateDate()
public static ExpressionOperator value()
public static ExpressionOperator variance()
public static ExpressionOperator any()
public static ExpressionOperator some()
public static ExpressionOperator all()
public boolean isAny()
public boolean isAll()
public boolean isAnyOrAll()
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |