net.sourceforge.pmd.util.database
Class DBType

java.lang.Object
  extended by 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
 
Constructor Summary
DBType(String dbType)
           
DBType(String subProtocol, String subnamePrefix)
          Load the most specific dbType for the protocol
 
Method Summary
 boolean equals(Object obj)
           
 String getCharacterSet()
           
 String getDriverClass()
           
 String getLanguages()
           
 Properties getProperties()
           
 String getPropertiesSource()
           
static Properties getResourceBundleAsProperties(ResourceBundle resourceBundle)
          Convert resourceBundle to usable .
 int getSourceCodeReturnType()
           
 String getSourceCodeTypes()
           
 int hashCode()
           
 void setProperties(Properties properties)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.