net.sourceforge.pmd.util.database
Class DBType
java.lang.Object
net.sourceforge.pmd.util.database.DBType
public class DBType
- extends java.lang.Object
Encapsulate the settings needed to access database source code.
- Author:
- sturton
Nested Class Summary |
static class |
DBType.property
The names of the properties |
Constructor Summary |
DBType(java.lang.String dbType)
|
DBType(java.lang.String subProtocol,
java.lang.String subnamePrefix)
Load the most specific dbType for the protocol |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
getProperties
public java.util.Properties getProperties()
getResourceBundleAsProperties
public static java.util.Properties getResourceBundleAsProperties(java.util.ResourceBundle resourceBundle)
- Convert
resourceBundle
to usable .
- 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
Copyright © 2002-2015 InfoEther. All Rights Reserved.