|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.calculations.percent.BasePercentCalculationsSelectorAdapter
public class BasePercentCalculationsSelectorAdapter
Base class that contains attributes and methods common to the different Percent Of Totals Calculation Selector adapters.
Field Summary | |
---|---|
protected PercentCalculationsSelectorDataSourceInterface |
dataSource
The data model used by the adapter. |
protected java.util.List |
fractionalItems
The data model used by the adapter. |
Fields inherited from interface com.sas.dataselectors.SelectorCommitInterface |
---|
EXCEPTION_OCCURRED |
Constructor Summary | |
---|---|
BasePercentCalculationsSelectorAdapter()
Default constructor. |
|
BasePercentCalculationsSelectorAdapter(PercentCalculationsSelectorDataSourceInterface dataSource)
PercentCalculationsSelectorDataSourceInterface constructor. |
Method Summary | |
---|---|
java.util.Map |
commit()
Commits the current set of fractional items to this adapter's associated model. |
protected PercentCalculationsSelectorDataSourceInterface |
getDataSource()
Returns the dataSource object that performs model-specific operations for this adapter. |
java.util.Map |
getDenominators()
Returns a map where the keys are the denominator ids and the the values are the denominator labels. |
java.util.List |
getFractionalItems()
Returns a list of items representing the current set of fractional items. |
java.util.Locale |
getLocale()
Returns the locale |
java.util.Map |
getNumerators()
Returns a map where the keys are the numerator ids and the the values are the numerator labels. |
java.lang.Object |
getPropertiesBean()
Required to satisfy the SelectorCommitInterface but not used in this implementation. |
boolean |
isOLAP()
Returns true if the data source for this adapter is OLAP based. |
protected void |
setDataSource(PercentCalculationsSelectorDataSourceInterface dataSource)
Sets the dataSource object that performs model-specific operations for this adapter. |
void |
setFractionalItems(java.util.List items)
Sets the list of items that represent the new set of fractional items. |
void |
setLocale(java.util.Locale locale)
Sets the locale |
Field Detail |
---|
protected PercentCalculationsSelectorDataSourceInterface dataSource
protected java.util.List fractionalItems
Constructor Detail |
---|
public BasePercentCalculationsSelectorAdapter()
public BasePercentCalculationsSelectorAdapter(PercentCalculationsSelectorDataSourceInterface dataSource)
dataSource
- the object that performs model-specific operations for this adapter.Method Detail |
---|
protected void setDataSource(PercentCalculationsSelectorDataSourceInterface dataSource)
dataSource
- the object that performs model-specific operations.protected PercentCalculationsSelectorDataSourceInterface getDataSource()
public java.util.Map getNumerators()
getNumerators
in interface PercentCalculationsSelectorInterface
{@link
- java.lang.IllegalStateException} if dataSource is null.public java.util.Map getDenominators()
getDenominators
in interface PercentCalculationsSelectorInterface
{@link
- java.lang.IllegalStateException} if dataSource is null.public boolean isOLAP()
isOLAP
in interface PercentCalculationsSelectorInterface
public java.util.List getFractionalItems()
Returns a list of items representing the current set of fractional items.
getFractionalItems
in interface PercentCalculationsSelectorInterface
{@link
- java.lang.IllegalStateException} if dataSource is null.public void setFractionalItems(java.util.List items)
Sets the list of items that represent the new set of fractional items.
setFractionalItems
in interface PercentCalculationsSelectorInterface
public java.util.Map commit()
Commits the current set of fractional items to this adapter's associated model.
commit
in interface SelectorCommitInterface
{@link
- java.lang.IllegalStateException} if dataSource is null.public java.lang.Object getPropertiesBean()
Required to satisfy the SelectorCommitInterface but not used in this implementation.
getPropertiesBean
in interface SelectorCommitInterface
SelectorCommitInterface
public void setLocale(java.util.Locale locale)
setLocale
in interface PercentCalculationsSelectorInterface
locale
- The locale.public java.util.Locale getLocale()
getLocale
in interface PercentCalculationsSelectorInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |