Class DBType
- java.lang.Object
-
- net.sourceforge.pmd.util.database.DBType
-
public class DBType extends Object
Encapsulate the settings needed to access database source code.- Author:
- sturton
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDBType.PropertyThe names of the properties
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCharacterSet()StringgetDriverClass()StringgetLanguages()PropertiesgetProperties()StringgetPropertiesSource()static PropertiesgetResourceBundleAsProperties(ResourceBundle resourceBundle)ConvertresourceBundleto usableProperties.intgetSourceCodeReturnType()StringgetSourceCodeTypes()inthashCode()voidsetProperties(Properties properties)StringtoString()
-
-
-
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)
ConvertresourceBundleto usableProperties.- Parameters:
resourceBundle- ResourceBundle- Returns:
- Properties
-
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
-
-