com.metamatrix.dqp.embedded.configuration
Class ConnectorConfigurationReader

java.lang.Object
  extended by com.metamatrix.dqp.embedded.configuration.ConnectorConfigurationReader

public class ConnectorConfigurationReader
extends java.lang.Object

This reader object is used to read the connector types and connector bindings. This is light weight reader than other implementations with out much baggage, which will be used in the DQP.

Since:
4.3

Constructor Summary
ConnectorConfigurationReader()
           
 
Method Summary
static ConnectorBinding addConnectorBindingProperties(ConnectorBinding binding, java.util.Properties properties)
          Add or modify properties for the given cnnector binding and return the modified connector binding.
static ConnectorBinding addConnectorBindingProperty(ConnectorBinding binding, java.lang.String propName, java.lang.Object value)
          Add or modify property for the given cnnector binding and return the modified connector binding.
static ConnectorArchive loadConnectorArchive(byte[] contents)
          Load the Connector Archive from the given byte arrary contents
static ConnectorBinding loadConnectorBinding(java.lang.String name, char[] contents)
          Load the connector bindings from the given char array contents.
static ConnectorBinding loadConnectorBinding(java.lang.String bindingName, java.util.Properties props, ConnectorBindingType type)
          Load/build connector binding from the given properties
static ConnectorBindingType loadConnectorType(char[] contents)
          Load the connector type from the given char array contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorConfigurationReader

public ConnectorConfigurationReader()
Method Detail

loadConnectorBinding

public static ConnectorBinding loadConnectorBinding(java.lang.String name,
                                                    char[] contents)
                                             throws MetaMatrixComponentException
Load the connector bindings from the given char array contents.

Parameters:
contents -
Returns:
Throws:
MetaMatrixComponentException
Since:
4.3

loadConnectorBinding

public static ConnectorBinding loadConnectorBinding(java.lang.String bindingName,
                                                    java.util.Properties props,
                                                    ConnectorBindingType type)
                                             throws MetaMatrixComponentException
Load/build connector binding from the given properties

Parameters:
bindingName - - binding Name
props - - Properties for the Connector Binding
type - - Connector Binding Type
Returns:
ConnectorBinding
Throws:
MetaMatrixComponentException

loadConnectorType

public static ConnectorBindingType loadConnectorType(char[] contents)
                                              throws MetaMatrixComponentException
Load the connector type from the given char array contents.

Parameters:
contents -
Returns:
Throws:
MetaMatrixComponentException
Since:
4.3

loadConnectorArchive

public static ConnectorArchive loadConnectorArchive(byte[] contents)
                                             throws MetaMatrixComponentException
Load the Connector Archive from the given byte arrary contents

Parameters:
contents -
Returns:
Connector Archive
Throws:
MetaMatrixComponentException
Since:
4.3.2

addConnectorBindingProperty

public static ConnectorBinding addConnectorBindingProperty(ConnectorBinding binding,
                                                           java.lang.String propName,
                                                           java.lang.Object value)
Add or modify property for the given cnnector binding and return the modified connector binding. It should be the same object.

Parameters:
binding - - Connector binding
propName - - Property Name
value - - Property Value
Returns:
modified connector binding; same original reference

addConnectorBindingProperties

public static ConnectorBinding addConnectorBindingProperties(ConnectorBinding binding,
                                                             java.util.Properties properties)
Add or modify properties for the given cnnector binding and return the modified connector binding. It should be the same object.

Parameters:
binding - - Connector binding
properties - - Properties to set
Returns:
modified connector binding; same original reference


Copyright © 2009. All Rights Reserved.