Package play.db

Examples of play.db.ConnectionRunnable


            execute("create table TestEntity (id bigint not null, name varchar(255));");
            jpa = JPA.createFor("defaultPersistenceUnit");
        }

        public void execute(final String sql) {
            database.withConnection(new ConnectionRunnable() {
                public void run(Connection connection) throws SQLException {
                    connection.createStatement().execute(sql);
                }
            });
        }
View Full Code Here

TOP

Related Classes of play.db.ConnectionRunnable

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.