Package wt.query
Class SQLFunction
java.lang.Object
wt.query.SQLFunction
- All Implemented Interfaces:
Externalizable,Serializable,ColumnExpression,wt.query.Expression,OrderByExpression,RelationalExpression
- Direct Known Subclasses:
AnalyticFunction
This class represents a SQL function within a SQL statement. Zero or
more function arguments are supported.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: truestatic final String
Supported API: trueFields inherited from interface wt.query.ColumnExpression
COLUMN_ALIAS -
Method Summary
Modifier and TypeMethodDescriptiongetArgumentAt(int a_position) Returns the argument at the specfied position.Gets the object for the association that plays role: arguments.Gets the value of the attribute: columnAlias; Alias for the column expression.static SQLFunctionnewSQLFunction(String a_functionName) Constructs a new SQLFunction.static SQLFunctionnewSQLFunction(String a_functionName, ColumnExpression a_argument) Constructs a new SQLFunction.static SQLFunctionnewSQLFunction(String a_functionName, ColumnExpression[] a_arguments) Constructs a new SQLFunction.static SQLFunctionnewSQLFunction(String a_functionName, ColumnExpression a_argument_1, ColumnExpression a_argument_2) Constructs a new SQLFunction.static SQLFunctionnewSQLFunction(String a_functionName, ColumnExpression a_argument_1, ColumnExpression a_argument_2, ColumnExpression a_argument_3) Deprecated.As of 9.1, use newSQLFunction(String, ColumnExpression[])voidsetArgumentAt(ColumnExpression a_argument, int a_position) Sets the argument at the specfied position.voidsetArguments(Vector a_Arguments) Sets the object for the association that plays role: arguments.voidsetColumnAlias(String a_ColumnAlias) Sets the value of the attribute: columnAlias; Alias for the column expression.
-
Field Details
-
ABS
Supported API: true- See Also:
-
UPPER
Supported API: true- See Also:
-
LOWER
Supported API: true- See Also:
-
TO_CHAR
Supported API: true- See Also:
-
AVERAGE
Supported API: true- See Also:
-
MAXIMUM
Supported API: true- See Also:
-
MINIMUM
Supported API: true- See Also:
-
SUM
Supported API: true- See Also:
-
COUNT
Supported API: true- See Also:
-
TRUNCATE
Supported API: true- See Also:
-
CEIL
Supported API: true- See Also:
-
FLOOR
Supported API: true- See Also:
-
LOG
Supported API: true- See Also:
-
MOD
Supported API: true- See Also:
-
ROUND
Supported API: true- See Also:
-
SIGN
Supported API: true- See Also:
-
LTRIM
Supported API: true- See Also:
-
RTRIM
Supported API: true- See Also:
-
SOUNDEX
Supported API: true- See Also:
-
TO_NUMBER
Supported API: true- See Also:
-
NLSSORT
Supported API: true- See Also:
-
ADD
Supported API: true- See Also:
-
SUBTRACT
Supported API: true- See Also:
-
DIVIDE
Supported API: true- See Also:
-
MULTIPLY
Supported API: true- See Also:
-
GET_SECONDS
Supported API: true- See Also:
-
GET_MINUTES
Supported API: true- See Also:
-
GET_HOURS
Supported API: true- See Also:
-
GET_DAY
Supported API: true- See Also:
-
GET_MONTH
Supported API: true- See Also:
-
GET_YEAR
Supported API: true- See Also:
-
CONCAT
Supported API: true- See Also:
-
SUB_STRING
Supported API: true- See Also:
-
STDDEV
Supported API: true- See Also:
-
IN_STRING
Supported API: true- See Also:
-
NULL_VALUE
Supported API: true- See Also:
-
DECODE
Supported API: true- See Also:
-
BITAND
Supported API: true- See Also:
-
-
Method Details
-
getArguments
Gets the object for the association that plays role: arguments.
Supported API: true- Returns:
- Vector
-
setArguments
Sets the object for the association that plays role: arguments.
Supported API: true- Parameters:
a_Arguments-- Throws:
WTPropertyVetoException
-
newSQLFunction
Constructs a new SQLFunction.
Supported API: true- Parameters:
a_functionName-- Returns:
- SQLFunction
- Throws:
QueryException
-
getArgumentAt
Returns the argument at the specfied position.
Supported API: true- Parameters:
a_position- Position (0 based) to set the argument- Returns:
- ColumnExpression
-
newSQLFunction
public static SQLFunction newSQLFunction(String a_functionName, ColumnExpression a_argument) throws QueryException Constructs a new SQLFunction.
Supported API: true- Parameters:
a_functionName-a_argument-- Returns:
- SQLFunction
- Throws:
QueryException
-
newSQLFunction
public static SQLFunction newSQLFunction(String a_functionName, ColumnExpression a_argument_1, ColumnExpression a_argument_2) throws QueryException Constructs a new SQLFunction.
Supported API: true- Parameters:
a_functionName-a_argument_1-a_argument_2-- Returns:
- SQLFunction
- Throws:
QueryException
-
newSQLFunction
public static SQLFunction newSQLFunction(String a_functionName, ColumnExpression a_argument_1, ColumnExpression a_argument_2, ColumnExpression a_argument_3) throws QueryException Deprecated.As of 9.1, use newSQLFunction(String, ColumnExpression[])Constructs a new SQLFunction.
Supported API: true- Parameters:
a_functionName-a_argument_1-a_argument_2-a_argument_3-- Returns:
- SQLFunction
- Throws:
QueryException
-
newSQLFunction
public static SQLFunction newSQLFunction(String a_functionName, ColumnExpression[] a_arguments) throws QueryException Constructs a new SQLFunction.
Supported API: true- Parameters:
a_functionName-a_arguments-- Returns:
- SQLFunction
- Throws:
QueryException
-
setArgumentAt
public void setArgumentAt(ColumnExpression a_argument, int a_position) throws WTPropertyVetoException Sets the argument at the specfied position.
Supported API: true- Parameters:
a_argument- Argument to set.a_position- Position (0 based) to set the argument- Throws:
WTPropertyVetoException
-
getColumnAlias
Gets the value of the attribute: columnAlias; Alias for the column expression.
Supported API: true- Specified by:
getColumnAliasin interfaceColumnExpression- Specified by:
getColumnAliasin interfaceOrderByExpression- Returns:
- String
-
setColumnAlias
Sets the value of the attribute: columnAlias; Alias for the column expression.
Supported API: true- Specified by:
setColumnAliasin interfaceColumnExpression- Parameters:
a_ColumnAlias-- Throws:
WTPropertyVetoException
-