----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

on 11/29/99 4:43 PM, Chris Busch <[EMAIL PROTECTED]> wrote:

> We built a class library that allows people to do:
> yourdb.insertRow("yourtable",hashtableofvalues);
> and 

KeyDef kd = new KeyDef().attAttrib("key_col_name");
TableDataSet tds = new TableDataSet(conn,"table_name", kd);
Record rec = tds.addRecord();
rec.setValue ("colname1", value );
rec.setValue ("colname2", value );
rec.setValue ("colname3", value );
rec.setValue ("colname4", value );
rec.save()
tds.close();

> yourdb.updateRow("yourtable","primarykey1,primarykey2",hashtableofvalues);
> and so forth.

KeyDef kd = new KeyDef().attAttrib("key_col_name");
TableDataSet tds = new TableDataSet(conn,"table_name", kd);
tds.where ("foo=bar");
tds.fetchRecords(1);

Record rec = tds.getRecord(0);
rec.setValue ("colname1", value );
rec.setValue ("colname2", value );
rec.setValue ("colname3", value );
rec.setValue ("colname4", value );

rec.save()
tds.close();

of course value can be any java object that will get auto-translated into
the appropriate type for the column.

> Does Village allow you do to that?

Of course. Yes.

-jon



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to