Get Started...

Yaorma is the easiest way to get started creating Java database applications. Yaorma is also robust enough for mission critical large scale production commercial products. Yaorma has been deployed and proven in applications developed by single engineers as well as large enterprise systems produced by dynamic software development teams.

Step 1: Download...

Download Yaorma from here. Extract the zip file and add yaorma_2_0.jar to your classpath.

Step 2: Code...

Add something like the following to your code.

public static void main(String[] args) throws Exception {

// some configuration parameters

String dbDriverClassName = "com.mysql.jdbc.Driver";

String dbUrl = "jdbc:mysql://localhost:3306/mydatabase";

String dbUid = "guest";

String dbPwd = "guestpassword";

// get a connection

Class.forName(dbDriverClassName);

Connection conn = DriverManager.getConnection(dbUrl, dbUid, dbPwd);

// use yaorma to get the database data

String sqlString = "select * from message_table order by row_id";

Data data = Database.query(sqlString, conn);

// use the data

for(int i=0;i<data.size();i++) {

System.out.print(data.get(i).getString("rowId") + "\t");

System.out.print(data.get(i).getString("message"));

}

// done

System.out.println("Done!");

}

Step 3: Learn More...

For more detailed information on all of YaORMa's functionality click here.



© Copyright 2009 Curlew LLC, East Lyme CT. All rights reserved.
All information, software, etc. is provided as is without any warranties.
Any questions, comments, inquiries, etc. can be directed to yaorma@gmail.com
Curlew LLC •  PO Box 354 •  East Lyme, CT 06333
Last updated February 05, 2011
Get yaorma at SourceForge.net. Fast, secure and Free Open Source software downloads