Class DatabaseFactory


  • public final class DatabaseFactory
    extends Object
    Factory used to obtain database connections.
    Since:
    2.0.0
    Author:
    Rui Vilao (rui.vilao@feedzai.com)
    • Method Detail

      • getConnection

        public static DatabaseEngine getConnection​(Properties p)
                                            throws DatabaseFactoryException
        Gets a database connection from the specified properties.
        Parameters:
        p - The database properties.
        Returns:
        A reference of the specified database engine.
        Throws:
        DatabaseFactoryException - If the class specified does not exist or its not well implemented.