net.sourceforge.pmd.util.database
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 |
static class |
DBType.property
The names of the properties |
DBType
public DBType(String dbType)
throws Exception
- Parameters:
dbType
-
- Throws:
Exception
DBType
public DBType(String subProtocol,
String subnamePrefix)
throws IOException
- Load the most specific dbType for the protocol
- Parameters:
subProtocol
- subnamePrefix
-
- Throws:
IOException
getProperties
public Properties getProperties()
getResourceBundleAsProperties
public static Properties getResourceBundleAsProperties(ResourceBundle resourceBundle)
- Convert
resourceBundle
to usable .
- Parameters:
resourceBundle
- ResourceBundle
- Returns:
- Properties
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002-2015 InfoEther. All Rights Reserved.