***  This class is subject to change.  ***

com.sas.iquery.metadata.expr.relational
Class SimpleConditionalExpression_Contains

com.sas.iquery.metadata.expr.relational.SimpleConditionalExpression_Contains
All Implemented Interfaces:
Base, BusinessModelResourceReferencer, CascadableFilter, ModelItem, UsabilityInterface, ExpressionInterface, PropertyChangeListenee, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

public class SimpleConditionalExpression_Contains
implements BusinessModelResourceReferencer

Models the CONTAINS simple conditional expression, which has the following abstract form:
       <WhatToCompare> CONTAINS <WhatToContain>


Field Summary
static java.lang.String EVENT_WHAT_TO_COMPARE_CHANGED
           
static java.lang.String EVENT_WHAT_TO_CONTAIN_CHANGED
           
 
Fields inherited from class com.sas.iquery.metadata.expr.relational.RelationalConditionalExpression
EVENT_FF_OVERRIDE_STATUS_CHANGED, EVENT_FF_OVERRIDE_VALUE_CHANGED
 
Fields inherited from class com.sas.iquery.metadata.expr.ConditionalExpression
EVENT_NEGATION_CHANGED
 
Fields inherited from interface com.sas.iquery.metadata.business.Base
EVENT_OBJECT_DEFINITION_CHANGED
 
Fields inherited from interface com.sas.iquery.metadata.business.ModelItem
EVENT_OBJECT_PROPERTY_CHANGED
 
Constructor Summary
SimpleConditionalExpression_Contains()
           
SimpleConditionalExpression_Contains(BusinessModel businessModel)
          Creates a Contains conditional expression while testing to make sure that CONTAINS is supported on the server that the BusinessModel is connected to.
 
Method Summary
 ExpressionInterface getWhatToCompare()
          Gets the left expression for this conditional expression.
 ExpressionInterface getWhatToContain()
          Gets the right expression for this conditional expression.
 void setWhatToCompare(ExpressionInterface expr)
          Sets the left expression portion of the conditional expression.
 void setWhatToContain(ExpressionInterface expr)
          Sets the right expression portion of the conditional expression.
 
Methods inherited from class com.sas.iquery.metadata.expr.relational.RelationalConditionalExpression
getExpression
 
Methods inherited from class com.sas.iquery.metadata.expr.ConditionalExpression
getExpressionType, isNegated, setIsNegated
 
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer
getResources
 
Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee
addListener, getListeners, removeListener
 
Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface
getReasonsUnusable, isUsableInQuery
 

Field Detail

***  This field is subject to change.  ***

EVENT_WHAT_TO_COMPARE_CHANGED

public static final java.lang.String EVENT_WHAT_TO_COMPARE_CHANGED
See Also:
Constant Field Values

***  This field is subject to change.  ***

EVENT_WHAT_TO_CONTAIN_CHANGED

public static final java.lang.String EVENT_WHAT_TO_CONTAIN_CHANGED
See Also:
Constant Field Values
Constructor Detail
***  This constructor is subject to change.  ***

SimpleConditionalExpression_Contains

public SimpleConditionalExpression_Contains()

***  This constructor is subject to change.  ***

SimpleConditionalExpression_Contains

public SimpleConditionalExpression_Contains(BusinessModel businessModel)
                                     throws MetadataException
Creates a Contains conditional expression while testing to make sure that CONTAINS is supported on the server that the BusinessModel is connected to.

Parameters:
businessModel - the business model that is used to retrieve the operator contains.
Throws:
MetadataException - - if an error while getting information about the server
java.lang.UnsupportedOperationException - - if the function is not supported.
Method Detail
***  This method is subject to change.  ***

setWhatToCompare

public void setWhatToCompare(ExpressionInterface expr)
Sets the left expression portion of the conditional expression.

Property change events signalled:

Parameters:
expr - left side of conditional expression

***  This method is subject to change.  ***

getWhatToCompare

public ExpressionInterface getWhatToCompare()
Gets the left expression for this conditional expression.

Returns:
the left side expression.

***  This method is subject to change.  ***

setWhatToContain

public void setWhatToContain(ExpressionInterface expr)
Sets the right expression portion of the conditional expression.

Property change events signalled:

Parameters:
expr - right side of conditional expression

***  This method is subject to change.  ***

getWhatToContain

public ExpressionInterface getWhatToContain()
Gets the right expression for this conditional expression.

Returns:
the right side expression.

***  This class is subject to change.  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.