ca.spaz.sql
Class DBRow

java.lang.Object
  extended by ca.spaz.sql.DBRow

public abstract class DBRow
extends java.lang.Object

Simple Java Object / Relational Database linker Uses reflection to map between simple objects and corresponding table rows.

Author:
davidson

Constructor Summary
DBRow()
           
 
Method Summary
static void load(java.sql.ResultSet row, java.lang.Object obj)
          Attempts to load all fields in the object from a ResultSet row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBRow

public DBRow()
Method Detail

load

public static void load(java.sql.ResultSet row,
                        java.lang.Object obj)
                 throws java.sql.SQLException,
                        java.lang.IllegalArgumentException,
                        java.lang.IllegalAccessException
Attempts to load all fields in the object from a ResultSet row.

Parameters:
row - a row in a database that corresponds directly to the object
Throws:
java.sql.SQLException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException


Copyright © 2005 Spaz. All Rights Reserved.