Class DBDictionaryFactory

java.lang.Object
org.apache.openjpa.jdbc.sql.DBDictionaryFactory

public class DBDictionaryFactory extends Object
Factory class to instantiate a dictionary. It will use the following heuristic:
  • Check to see if there is a DictionaryClass property, and if so, use that to instantiate the dictionary.
  • Check the URL in the JDBCConfiguration against a list of pre-defined URLs for various dictionaries.
  • Check the driver in the JDBCConfiguration against a list of known patterns.
  • Acquire a connection and check its database metadata.
  • Return an instance of the generic DBDictionary.
Author:
Marc Prud'hommeaux
  • Constructor Details

    • DBDictionaryFactory

      public DBDictionaryFactory()
  • Method Details