com.metamatrix.modeler.transformation.metadata
Class ServerMetadataFactory

java.lang.Object
  extended by com.metamatrix.modeler.transformation.metadata.ServerMetadataFactory

public class ServerMetadataFactory
extends java.lang.Object

TransformationMetadataFactory


Constructor Summary
protected ServerMetadataFactory()
           
 
Method Summary
 QueryMetadataInterface createCachingServerMetadata(IndexSelector selector)
          Create a QueryMetadataInterface implementation that maintains a local cache of metadata.
static ServerMetadataFactory getInstance()
           
 QueryMetadataInterface getServerMetadata(IndexSelector selector)
          Return a reference to a QueryMetadataInterface implementation, the metadata is assumed not to change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerMetadataFactory

protected ServerMetadataFactory()
Method Detail

getInstance

public static ServerMetadataFactory getInstance()

getServerMetadata

public QueryMetadataInterface getServerMetadata(IndexSelector selector)
Return a reference to a QueryMetadataInterface implementation, the metadata is assumed not to change.

Parameters:
context - Object containing the info needed to lookup metadta.
Returns:
the QueryMetadataInterface implementation; never null

createCachingServerMetadata

public QueryMetadataInterface createCachingServerMetadata(IndexSelector selector)
Create a QueryMetadataInterface implementation that maintains a local cache of metadata. For server the state of the metadata should not change anyway.

Parameters:
selector - The indexselector used to lookup index files.
Returns:
a new QueryMetadataInterface implementation; never null


Copyright © 2009. All Rights Reserved.