com.metamatrix.platform.config.persistence.impl.jdbc
Class JDBCPersistentConnectionFactory

java.lang.Object
  extended by com.metamatrix.platform.config.persistence.api.PersistentConnectionFactory
      extended by com.metamatrix.platform.config.persistence.impl.jdbc.JDBCPersistentConnectionFactory

public class JDBCPersistentConnectionFactory
extends PersistentConnectionFactory


Field Summary
static java.lang.String DATABASE
          The environment property name for the database name.
static java.lang.String DRIVER
          The environment property name for the class of the driver.
static java.lang.String PASSWORD
          The environment property name for the password that is to be used for connecting to the metadata store.
static java.lang.String PROTOCOL
          The environment property name for the protocol that is to be used.
static java.lang.String USERNAME
          The environment property name for the username that is to be used for connecting to the metadata store.
 
Fields inherited from class com.metamatrix.platform.config.persistence.api.PersistentConnectionFactory
FILE_FACTORY_NAME, JDBC_FACTORY_NAME, PERSISTENT_FACTORY_NAME
 
Constructor Summary
JDBCPersistentConnectionFactory(java.util.Properties factoryProperties)
          Constructor for JDBCPersistentConnectionFactory.
 
Method Summary
 PersistentConnection createPersistentConnection()
          Creates the the of PersistentConnection required to communicate to the configuration repository.
 
Methods inherited from class com.metamatrix.platform.config.persistence.api.PersistentConnectionFactory
createPersistentConnectionFactory, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRIVER

public static final java.lang.String DRIVER
The environment property name for the class of the driver. This property is optional.

See Also:
Constant Field Values

PROTOCOL

public static final java.lang.String PROTOCOL
The environment property name for the protocol that is to be used. For JDBC, the connection URL information is created of the form "jdbc:subprotocol:subname", where the value of the PROTOCOL property is used for the "subprotocol:subname" portion. This property is required.

See Also:
Constant Field Values

DATABASE

public static final java.lang.String DATABASE
The environment property name for the database name. This may include the server name and port number, per the driver's requirements. This property is required.

See Also:
Constant Field Values

USERNAME

public static final java.lang.String USERNAME
The environment property name for the username that is to be used for connecting to the metadata store. This property is required.

See Also:
Constant Field Values

PASSWORD

public static final java.lang.String PASSWORD
The environment property name for the password that is to be used for connecting to the metadata store. This property is required.

See Also:
Constant Field Values
Constructor Detail

JDBCPersistentConnectionFactory

public JDBCPersistentConnectionFactory(java.util.Properties factoryProperties)
Constructor for JDBCPersistentConnectionFactory.

Parameters:
factoryProperties -
Method Detail

createPersistentConnection

public PersistentConnection createPersistentConnection()
                                                throws ConfigurationException
Creates the the of PersistentConnection required to communicate to the configuration repository.

Specified by:
createPersistentConnection in class PersistentConnectionFactory
Parameters:
properties - are the settings for persistence storage
Returns:
PersistentSource class for handling configuration storage
Throws:
ConfigurationException


Copyright © 2009. All Rights Reserved.