Class DBType


  • public class DBType
    extends java.lang.Object
    Encapsulate the settings needed to access database source code.
    Author:
    sturton
    • Constructor Detail

      • DBType

        public DBType​(java.lang.String dbType)
               throws java.lang.Exception
        Parameters:
        dbType -
        Throws:
        java.lang.Exception
      • DBType

        public DBType​(java.lang.String subProtocol,
                      java.lang.String subnamePrefix)
               throws java.io.IOException
        Load the most specific dbType for the protocol
        Parameters:
        subProtocol -
        subnamePrefix -
        Throws:
        java.io.IOException
    • Method Detail

      • getProperties

        public java.util.Properties getProperties()
      • getResourceBundleAsProperties

        public static java.util.Properties getResourceBundleAsProperties​(java.util.ResourceBundle resourceBundle)
        Convert resourceBundle to usable Properties.
        Parameters:
        resourceBundle - ResourceBundle
        Returns:
        Properties
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getDriverClass

        public java.lang.String getDriverClass()
        Returns:
        the driverClass
      • getCharacterSet

        public java.lang.String getCharacterSet()
        Returns:
        the characterSet
      • getSourceCodeTypes

        public java.lang.String getSourceCodeTypes()
        Returns:
        the sourceCodeTypes
      • getLanguages

        public java.lang.String getLanguages()
        Returns:
        the languages
      • getSourceCodeReturnType

        public int getSourceCodeReturnType()
        Returns:
        the sourceCodeReturnType
      • getPropertiesSource

        public java.lang.String getPropertiesSource()
        Returns:
        the propertiesSource
      • setProperties

        public void setProperties​(java.util.Properties properties)
        Parameters:
        properties - the properties to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object