Class DatabaseTypeFactory

java.lang.Object
org.ofbiz.core.entity.jdbc.dbtype.DatabaseTypeFactory

public class DatabaseTypeFactory extends Object
This class provides methods for finding the correct database type for a given connection object.
  • Field Details

  • Constructor Details

    • DatabaseTypeFactory

      public DatabaseTypeFactory()
  • Method Details

    • registerDatabaseType

      public static void registerDatabaseType(DatabaseType databaseType)
      Database Types that wish to be registered for matching should call this method, and pass themselves.
      See Also:
    • getTypeForConnection

      public static DatabaseType getTypeForConnection(Connection con)
      This method finds the DatabaseType for the connection you pass in
      Returns:
      A matching DatabaseType for the connection passed in or null if no appropriate DatabaseType is found null