Package main.pattern

Examples of main.pattern.DBControllerCreator.create()


    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        DBControllerCreator creator = new MySQLControllerCreator();
        DBController connection = creator.create();
        connection.openConnect();
        connection.executeQuery("Some query.");
        connection.closeConnect();
        DBControllerCreator creator2 = new OracleControllerCreator();
        DBController connection2 = creator2.create();
View Full Code Here


        DBController connection = creator.create();
        connection.openConnect();
        connection.executeQuery("Some query.");
        connection.closeConnect();
        DBControllerCreator creator2 = new OracleControllerCreator();
        DBController connection2 = creator2.create();
        connection2.openConnect();
        connection2.executeQuery("Some query.");
        connection2.closeConnect();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.