olr.samples
Class SqlSample

java.lang.Object
  extended byolr.samples.SqlSample

public class SqlSample
extends java.lang.Object

This demonstrate how we can use Torque's peer classes to execute custom SQL queries with the advantage of populating the corresponding Torque data objects in the same step. Using JDBC direct, one would have to loop over the JDBC ResultSet calling lots of setters and getters.

Version:
$Id: SqlSample.java,v 1.4 2004/08/02 18:36:42 roku Exp $

Constructor Summary
SqlSample()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlSample

public SqlSample()
Method Detail

main

public static void main(java.lang.String[] args)


Copyright © 2001-2004 University of Hannover. All Rights Reserved.