com.sas.dataselectors.filters
Class BusinessQueryToSimpleFilterDefinitionModelAdapter

com.sas.dataselectors.filters.BusinessQueryToSimpleFilterDefinitionModelAdapter
All Implemented Interfaces:
SimpleFilterDefinitionModelInterface

public class BusinessQueryToSimpleFilterDefinitionModelAdapter
implements SimpleFilterDefinitionModelInterface

Simple adapter to wrap the given data source and initial selection into a selector model.


Field Summary
protected  com.sas.iquery.metadata.business.BusinessQuery _businessQuery
           
 
Fields inherited from class com.sas.dataselectors.filters.SimpleFilterDefinitionModelBase
RB_KEY
 
Constructor Summary
BusinessQueryToSimpleFilterDefinitionModelAdapter(com.sas.storage.iquery.BusinessQueryAdapter businessQueryAdapter, FilterBaseModelData baseModel)
          Creates a new adapter from the given BusinessQueryAdapter.
BusinessQueryToSimpleFilterDefinitionModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery, FilterBaseModelData baseModel)
          Creates a new adapter from the given BusinessQuery.
BusinessQueryToSimpleFilterDefinitionModelAdapter(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface bqProvider, FilterBaseModelData baseModel)
          Creates a new adapter from the given OLAPQueryInterface.
 
Method Summary
 boolean commitChanges()
          Commit Changes will either update or create (as needed) the LogicTestNode to the BusinessQuery
 com.sas.iquery.metadata.business.FilterItem getFilterItemCommitted()
           
 
Methods inherited from class com.sas.dataselectors.filters.SimpleFilterDefinitionModelBase
getApplicationData, getDataSource, getRootFilterObject, getSelection, setApplicationData, setSelection
 
Methods inherited from interface com.sas.dataselectors.filters.SimpleFilterDefinitionModelInterface
getApplicationData, getDataSource, getRootFilterObject, getSelection, setApplicationData, setSelection
 

Field Detail

_businessQuery

protected com.sas.iquery.metadata.business.BusinessQuery _businessQuery
Constructor Detail

BusinessQueryToSimpleFilterDefinitionModelAdapter

public BusinessQueryToSimpleFilterDefinitionModelAdapter(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
                                                         FilterBaseModelData baseModel)
Creates a new adapter from the given BusinessQuery. The Items are based on the data selection. The initial selection is empty.

Parameters:
dataSource - the primary model

BusinessQueryToSimpleFilterDefinitionModelAdapter

public BusinessQueryToSimpleFilterDefinitionModelAdapter(com.sas.storage.iquery.BusinessQueryAdapter businessQueryAdapter,
                                                         FilterBaseModelData baseModel)
Creates a new adapter from the given BusinessQueryAdapter. The Items are based on the data selection. The initial selection is empty.

Parameters:
dataSource - the primary model

BusinessQueryToSimpleFilterDefinitionModelAdapter

public BusinessQueryToSimpleFilterDefinitionModelAdapter(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface bqProvider,
                                                         FilterBaseModelData baseModel)
Creates a new adapter from the given OLAPQueryInterface. The Items are based on the data selection. The initial selection is empty.

Parameters:
dataSource - the primary model
Method Detail

getFilterItemCommitted

public com.sas.iquery.metadata.business.FilterItem getFilterItemCommitted()

commitChanges

public boolean commitChanges()
Commit Changes will either update or create (as needed) the LogicTestNode to the BusinessQuery

Specified by:
commitChanges in interface SimpleFilterDefinitionModelInterface
Overrides:
commitChanges in class SimpleFilterDefinitionModelBase
Returns:
false if no place to commit to, true if commit succeeded



Copyright © 2009 SAS Institute Inc. All Rights Reserved.