|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.metadata.business.DataSelectionFactory
public class DataSelectionFactory
A factory for creating DataSelection objects.
It is the responsibility of the API user to call the dispose() method on a data selection when it is no longer needed. If that method is not called there is no guarantee that it will be garbage collected.
Model.dispose()
Constructor Summary | |
---|---|
DataSelectionFactory()
|
Method Summary | |
---|---|
static DataSelection |
newDataSelection(BusinessModel businessModel)
Creates and returns a new DataSelection object based upon the given business model. |
static DataSelection |
newSampleDataSelection(BusinessModel rootBusinessModel,
java.util.Map maxElements)
This method is similar to the default DataSelectionFactory method except that it automatically adds ResultItems to create a sample. |
Constructor Detail |
---|
public DataSelectionFactory()
Method Detail |
---|
public static DataSelection newDataSelection(BusinessModel businessModel)
See the class level javadoc for this class for information on how to ensure garbage collection of unused data selections.
businessModel
- an in-memory BusinessModel object. For creating DataSelections
based upon their persisted form see readDataSelection().
public static DataSelection newSampleDataSelection(BusinessModel rootBusinessModel, java.util.Map maxElements) throws MetadataException
rootBusinessModel
- This is the BusinessModel from which the BusinessQuery will be created. Often this
BusinessModel will represent an information map.maxElements
- This is a Map which allows the maximum number of elements to be configured. The key can be any of
the valid StructureOfDataItem types. The value is an Integer indicating the maximum number of DataItems of that type
to be included in the BusinessQuery. A value of -1 indicates that all DataItems with the specified Structure will be
included.
See the class level javadoc for this class for information on how to ensure garbage collection of unused data selections.
MetadataException
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |