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 class
DBType.Property
The names of the properties
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCharacterSet()
String
getDriverClass()
String
getLanguages()
Properties
getProperties()
String
getPropertiesSource()
static Properties
getResourceBundleAsProperties(ResourceBundle resourceBundle)
ConvertresourceBundle
to usableProperties
.int
getSourceCodeReturnType()
String
getSourceCodeTypes()
int
hashCode()
void
setProperties(Properties properties)
String
toString()
-
-
-
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)
ConvertresourceBundle
to 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
-
-