Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.default.driver=oracle.jdbc.driver.OracleDriver
- db.default.url="jdbc:oracle:thin:@hostname:1521:SOMESID"
- db.default.user=someuser
- db.default.password=somepassword
- package controllers;
- import play.*;
- import play.mvc.*;
- import views.html.*;
- import play.db.*;
- public class Application extends Controller {
- public static Result index() {
- //return ok(index.render("Hello Worldxxx"));
- //me: the below is the default return
- return redirect(routes.Application.tasks());
- }
- public static Result tasks() {
- return TODO;
- }
- public static Result newTask() {
- return TODO;
- }
- public static Result deleteTask(Long id) {
- return TODO;
- }
- public static Result getMetaData() {
- Connection connection = DB.getConnection();
- ResultSet resultSet = connection.prepareStatement("SELECT * FROM sometable").executeQuery();
- metaData = resultSet.getMetaData();
- connection.close();
- return ok(metaData.toString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement