|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.metadata.serverprop.Function
@ThreadSafe public class Function
Models a function definition that can be used within expressions to perform more complex queries.
To model an expression using a function definition use the FunctionCall class.
FunctionCall
,
Operator
Method Summary | |
---|---|
int |
getArgumentCount()
Returns -1 when the function has signatures with varying argument counts |
Category |
getCategory()
Returns the category this function is "contained" within. |
FunctionSignature |
getCompatibleSignature(java.util.List<ExpressionInterface> args)
Returns a compatible function signature from the list of function signatures defined for this function that is compatible with the types of arguments given in the input list. |
java.lang.String |
getDescription()
Returns a localized description of this function. |
java.lang.String |
getDescription(java.util.Locale locale)
Returns a description for this object for a specific locale, typically for display purposes. |
com.sas.util.LocalizableString |
getDescriptions()
Returns the entire set of descriptions for this object for all locales, typically for display purposes. |
FunctionNameID |
getFunctionNameID()
Return the associated FunctionNameID class for this function. |
java.lang.String |
getID()
Returns the fully qualified id of this function. |
java.lang.String |
getLabel()
Returns a localized label of this function. |
java.lang.String |
getLabel(java.util.Locale locale)
Returns a label for this object for a specific locale, typically for display purposes. |
com.sas.util.LocalizableString |
getLabels()
Returns the entire set of labels for this object for all locales, typically for display purposes. |
java.lang.String |
getNameID()
Returns the name id of the function. |
java.util.List<FunctionSignature> |
getSignatures()
Returns the list of FunctionSignature objects associated with this Function. |
java.lang.String |
getSyntaxTemplateFor(int numberOfArguments)
Returns the syntax template for this Function with the specified number of arguments. |
java.lang.String |
getSyntaxToken()
Returns the syntax token for this function when used in a SQL or MDX-generated query. |
java.lang.String |
getToolTip()
Returns a localized string usable as a tooltip for this function. |
java.lang.String |
getToolTip(java.util.Locale locale)
|
boolean |
isDistinct()
Returns whether this function performs a "distinct" operation, such as in the sql COUNT DISTINCT function. |
boolean |
isInCategory(Category cat)
Returns whether this function is within the given category. |
Method Detail |
---|
public java.lang.String getSyntaxToken()
public boolean isDistinct()
public Category getCategory()
Category
public java.lang.String getLabel()
getLabel
in interface NamedObjectInterface
public java.lang.String getLabel(java.util.Locale locale)
LocalizableNamedObjectInterface
getLabel
in interface LocalizableNamedObjectInterface
locale
- the Locale of the label, null will use Locale.getDefault()
LocalizableNamedObjectInterface.getLabel(java.util.Locale)
public java.lang.String getToolTip()
public java.lang.String getToolTip(java.util.Locale locale)
public java.lang.String getDescription()
getDescription
in interface NamedObjectInterface
public java.lang.String getDescription(java.util.Locale locale)
LocalizableNamedObjectInterface
getDescription
in interface LocalizableNamedObjectInterface
locale
- the Locale of the description, null will use Locale.getDefault()
LocalizableNamedObjectInterface.getDescription(java.util.Locale)
public java.util.List<FunctionSignature> getSignatures()
public int getArgumentCount()
public java.lang.String getID()
public java.lang.String getNameID()
public FunctionNameID getFunctionNameID()
public boolean isInCategory(Category cat)
cat
- the category to test for
public java.lang.String getSyntaxTemplateFor(int numberOfArguments)
public FunctionSignature getCompatibleSignature(java.util.List<ExpressionInterface> args)
args
- a list of arguments used in determining a compatible function signature to return
public com.sas.util.LocalizableString getLabels()
LocalizableNamedObjectInterface
getLabels
in interface LocalizableNamedObjectInterface
LocalizableNamedObjectInterface.getLabels()
public com.sas.util.LocalizableString getDescriptions()
LocalizableNamedObjectInterface
getDescriptions
in interface LocalizableNamedObjectInterface
LocalizableNamedObjectInterface.getDescriptions()
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |