Package com.nexirius.framework.jdbc

Examples of com.nexirius.framework.jdbc.JdbcConnectionHandler


            }
        }

        String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/jnex/testDatabase.mdb;DriverID=22;READONLY=true}"; // add on to the end

        JdbcConnectionHandler.init(new JdbcConnectionHandler(database, null, null));

        //DatabaseTableMapping itemMapping = DatabaseTableMapping.createStandardMapping(new ItemModel());
        DatabaseTableMapping itemMapping = new DatabaseTableMapping(ItemModel.FIELD_NAME, "PK",
                new String[]{ItemModel.FIELD_booleanField,
                             ItemModel.FIELD_dateField,
View Full Code Here


        filename.replace("\\", "/");

        String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + filename + ";DriverID=22;READONLY=true}";

        JdbcConnectionHandler.init(new JdbcConnectionHandler(database, null, null));

        DatabaseTableMapping memberMapping = new DatabaseTableMapping("MEMBER", "PK", new String[] {"personId", "type"}, new String[] {"PERSON_ID", "TYPE"});
        JdbcConnectionHandler.instance().registerDatabaseTableMapping(MemberModel.class.getName(), memberMapping);

        DatabaseTableMapping personMapping = new DatabaseTableMapping("PERSON", "PK", new String[] {"name", "firstname", "birthdate"}, new String[] {"NAME_", "FIRSTNAME", "BIRTHDATE"});
View Full Code Here

TOP

Related Classes of com.nexirius.framework.jdbc.JdbcConnectionHandler

Copyright © 2018 www.massapicom. 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.