Update content repositary database

I want to update cr data base in my project. I have two records and it will be updated in two different tables. Plz give some example how to do it ....... . share some idea and it will be highly appriciated.........
[229 byte] By [silu_79a] at [2007-11-27 8:49:05]
# 1
I don't understand your problem....You have two records and updating database will update two tables...well if it is your problem, then simply write a sql and execute it through your code. Or if you meant something else, please give more details
vineet.mangala at 2007-7-12 20:57:37 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi,

I am using ContentPackage api for updating the content repositary (CR)database .

ContentPackage pkg = session.getContentPakage();

pkg.checkout();

pkg.checkin();

pkg.save();

The above code i m using for updating CR . I m getting error after pkg.checkout()....

plz give some idea

silu_79a at 2007-7-12 20:57:37 > top of Java-index,Java Essentials,Java Programming...