Class DBType


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

      • DBType

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

      • getProperties

        public Properties getProperties()
      • getResourceBundleAsProperties

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDriverClass

        public String getDriverClass()
        Returns:
        the driverClass
      • getCharacterSet

        public String getCharacterSet()
        Returns:
        the characterSet
      • getSourceCodeTypes

        public String getSourceCodeTypes()
        Returns:
        the sourceCodeTypes
      • getLanguages

        public String getLanguages()
        Returns:
        the languages
      • getSourceCodeReturnType

        public int getSourceCodeReturnType()
        Returns:
        the sourceCodeReturnType
      • getPropertiesSource

        public String getPropertiesSource()
        Returns:
        the propertiesSource
      • setProperties

        public void setProperties​(Properties properties)
        Parameters:
        properties - the properties to set