FileDocCategorySizeDatePackage
CustomerSetPeer.javaAPI DocExample609Sun Mar 02 21:45:34 GMT 1997bank.server

CustomerSetPeer

public class CustomerSetPeer extends imaginary.persist.DatabaseSetPeer

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetPersistentClass(java.util.Hashtable h)

        return "bank.server.Customer";
    
public java.lang.StringgetSql(java.util.Hashtable h)

        if( h == null ) {
            return "SELECT * from t_customer";
        }
        else {
            int id = ((Integer)h.get("cust_id")).intValue();

            return "SELECT * from t_customer WHERE cust_id = " + id;
        }