|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.metadata.serverprop.ServerProperties
public class ServerProperties
Contains a set of function and operator definitions, along with attributes that describe a particular type of data server that is supported by SAS Query Services. This type of object is readily available to most API users by simply using the BusinessModel.getServerProperties() method on an instance of a business model.
Method Summary | |
---|---|
boolean |
containsAggregateFunction(java.lang.String expressionText)
Returns true if the expressionText has a aggregation in it. |
java.util.List<Function> |
getAggregationFunctions(ParameterType type)
Get a list of aggregate functions sorted by the function label. |
java.util.List<Category> |
getCategories()
Returns the list of categories that are defined. |
java.lang.String |
getDescription()
Returns the description of the Server. |
Function |
getFunctionByNameID(FunctionNameID fntID)
Returns the Function for the given FunctionNameID object. |
java.util.List<Function> |
getFunctions()
Returns only the functions supported by the Server |
java.util.List<Function> |
getFunctions(Category category)
Returns all the functions defined for the given category, including operators. |
java.util.List<Function> |
getFunctions(Category category,
ParameterType type)
Returns all the functions defined for the given category and parameter type, including operators. |
java.lang.String |
getName()
Returns the name of the Server. |
java.util.List<Operator> |
getOperators()
Returns only the operators supported by the Server. |
java.util.List<Operator> |
getOperators(Category category)
Returns all the operators defined for the given category. |
java.util.List<SASFormatDescription> |
getSASFormatDescriptions()
Returns a List of all SASFormatDescription objects. |
java.util.List<SASFormatDescription> |
getSASFormatDescriptions(java.util.Locale locale)
Returns a List of all SASFormatDescription objects for the specified locale. |
java.util.List<SASFormatDescription> |
getSASFormatDescriptions(SASFormatCategory type)
Returns a List of all SASFormatDescription objects for a specific SASFormatCategory object. |
java.util.List<SASFormatDescription> |
getSASFormatDescriptions(SASFormatCategory type,
java.util.Locale locale)
Returns a List of all SASFormatDescription objects for a specific SASFormatCategory and locale. |
java.util.Map<java.lang.String,java.lang.String> |
getServerAttributes()
Returns all the defined attributes on the Server |
java.lang.String |
getServerAttributeValue(ConnectionType type,
ServerAttribute attribute)
Returns the value for the specified connection-specific server attribute. |
java.lang.String |
getServerAttributeValue(ServerAttribute attribute)
Returns the value for the specified server attribute. |
static Function[] |
sortFunctionsListByLabel(java.util.List functions)
Deprecated. |
Reason |
validateByRules(java.lang.String value,
java.util.List<java.lang.String> rules)
Validates that the string obeys a list of rules (Strings) |
Method Detail |
---|
public java.util.List<Operator> getOperators()
public java.util.List<Function> getFunctions()
public java.util.Map<java.lang.String,java.lang.String> getServerAttributes()
public java.lang.String getServerAttributeValue(ServerAttribute attribute)
attribute
- the attribute that you are asking for its server-specific value.
public java.lang.String getServerAttributeValue(ConnectionType type, ServerAttribute attribute)
type
- specifies the type of connection for the server-specific attribute.attribute
- the attribute that you are asking for its server-specific value.
public java.lang.String getName()
public java.lang.String getDescription()
public java.util.List<Function> getFunctions(Category category)
category
- -- the category whose associated values are to be returned
public java.util.List<Function> getFunctions(Category category, ParameterType type)
category
- -- the category that the functions are associated withtype
- -- the single ParameterType of the functions to be returned
public java.util.List<Category> getCategories()
public java.util.List<Operator> getOperators(Category category)
category
- -- the category whose associated values are to be returned
public Function getFunctionByNameID(FunctionNameID fntID)
fntID
- -- The FunctionNameID of the function to be returned.
public java.util.List<SASFormatDescription> getSASFormatDescriptions() throws SASFormatException
SASFormatException
- if there are problems getting
format descriptionspublic java.util.List<SASFormatDescription> getSASFormatDescriptions(SASFormatCategory type) throws SASFormatException
type
- the SASFormatCategory to get descriptions for
SASFormatException
- if there are problems getting
format descriptionspublic java.util.List<SASFormatDescription> getSASFormatDescriptions(java.util.Locale locale) throws SASFormatException
locale
- to be used in retrieving format descriptions
SASFormatException
- if there are problems getting
format descriptionspublic java.util.List<SASFormatDescription> getSASFormatDescriptions(SASFormatCategory type, java.util.Locale locale) throws SASFormatException
type
- the SASFormatCategory to get descriptions forlocale
- of the format descriptions.
SASFormatException
- if there are problems getting
format descriptionspublic Reason validateByRules(java.lang.String value, java.util.List<java.lang.String> rules)
value
- - string to be validatedrules
- - List of Rules, strings with the rule name in each
public boolean containsAggregateFunction(java.lang.String expressionText) throws MetadataException
expressionText
- - string to be checked
MetadataException
public java.util.List<Function> getAggregationFunctions(ParameterType type)
type
- Determines the type of aggregate functions to return.
Must be ParameterType.PARM_NUMERIC or ParameterType.PARM_CHAR.
@Deprecated public static Function[] sortFunctionsListByLabel(java.util.List functions)
This method is deprecated, please use Collections.sort with FunctionLabelComparator instead.
functions
- List of Function
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |