Class ConnectionDefinitionUtils


  • public class ConnectionDefinitionUtils
    extends Object
    A simple class to get the properties of a ConnectionDefinition class , that could be overridden by the administrator during deployment.
    Author:
    Sivakumar Thyagarjan
    • Constructor Detail

      • ConnectionDefinitionUtils

        public ConnectionDefinitionUtils()
    • Method Detail

      • getConnectionDefinitionProperties

        public static Set getConnectionDefinitionProperties​(String connectionDefinitionClassName)
        Gets the properties of the Java bean connection definition class that have setter methods defined
        Parameters:
        connectionDefinitionClassName - The Connection Definition Java bean class for which overrideable properties are required.
        Returns:
        A Set of properties that have a setter method defined in the Connection Definition class
      • getConnectionDefinitionPropertiesAndDefaults

        public static Map<String,​Object> getConnectionDefinitionPropertiesAndDefaults​(String connectionDefinitionClassName,
                                                                                            String resType)
        Gets the properties of the Java bean connection definition class that have setter methods defined and the default values as provided by the Connection Definition java bean developer.
        This util method is used to get properties of jdbc-data-source
        To get Connection definition properties for Connector Connection Pool, use ConnectorRuntime.getMCFConfigProperties()
        When the connection definition class is not found, standard JDBC properties (of JDBC 3.0 Specification) will be returned.
        Parameters:
        connectionDefinitionClassName - The Connection Definition Java bean class for which overrideable properties are required.
        Returns:
        Map String represents property name and Object is the defaultValue that is a primitive type or String
      • main

        public static void main​(String[] args)