com.simba.dsi.dataengine.utilities
Class MetadataColumnFactory

java.lang.Object
  extended by com.simba.dsi.dataengine.utilities.MetadataColumnFactory

public class MetadataColumnFactory
extends java.lang.Object

Factory class for creating columns used in filtered metadata results.


Constructor Summary
MetadataColumnFactory()
           
 
Method Summary
static java.util.ArrayList<MetadataColumn> createMetadataColumns(IStatement statement, MetadataSourceID metadataSourceId)
          Create the list of column metadata objects for the specified metadata source ID.
static java.util.List<MetadataSourceColumnTag> getSortOrder(com.simba.support.ILogger logger, MetadataSourceID metadataSourceId, java.util.List<IFilter> filters, OrderType orderType)
          Gets the sort order to apply for the given Metadata Source Id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataColumnFactory

public MetadataColumnFactory()
Method Detail

createMetadataColumns

public static java.util.ArrayList<MetadataColumn> createMetadataColumns(IStatement statement,
                                                                        MetadataSourceID metadataSourceId)
                                                                 throws com.simba.support.exceptions.ErrorException
Create the list of column metadata objects for the specified metadata source ID.

Parameters:
statement - The statement on which to retrieve metadata.
metadataSourceId - The ID metadata source to create the columns for.
Returns:
The list of column metadata for the specified metadata source.
Throws:
com.simba.support.exceptions.ErrorException - If the metadata source ID is invalid.

getSortOrder

public static java.util.List<MetadataSourceColumnTag> getSortOrder(com.simba.support.ILogger logger,
                                                                   MetadataSourceID metadataSourceId,
                                                                   java.util.List<IFilter> filters,
                                                                   OrderType orderType)
                                                            throws com.simba.support.exceptions.ErrorException
Gets the sort order to apply for the given Metadata Source Id.

Parameters:
logger - The logger.
metadataSourceId - The metadata source id.
filters - The filters to differentiate ImportedKey, ExportedKey and CrossReference metadata id.
orderType - The order type to apply.
Returns:
the sort order to apply for this metadatasource id.
Throws:
com.simba.support.exceptions.ErrorException - If the metadata source ID is invalid.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.