hello friends,
i m very new to websphere db2 and for javabeans also,
i m trying to access the database through javabeans,but i m not very much familier to this,
i have created a javabean with the help of websphere, but i dont know how to set it's property/values.
so plese friends help me...

the bean code is this (named as Regbean,java , in com folder) -->
--------------------------------------------------

package com;
import java.sql.*;
import com.ibm.db.beans.*;

/**
* This class sets the DBModify property values. It also provides
* methods that execute your SQL statement and return
* a DBModify reference.
* Generated: Mar 31, 2007 4:24:49 PM
*/

public class Regbean {
private DBModify modify;

/**
* Constructor for a DBModify class.
*/
public Regbean() {
super();
initializer();
}

/**
* Creates a DBModify instance and initializes its properties.
*/
protected void initializer() {
modify = new DBModify();
try {
modify.setDriverName("COM.ibm.db2.jdbc.app.DB2Driver");
modify.setUrl("jdbc:db2:gpbms");
modify.setCommand(
"INSERT INTO GPBMSSCHEMA1.ACCOUNTS ( ACCOUNT_NAME, PASSWORD, ACCOUNT_ID ) VALUES ( :username, assword, :userid )");
DBParameterMetaData parmMetaData = modify.getParameterMetaData();
parmMetaData.setParameter(
1,
"username",
java.sql.DatabaseMetaData.procedureColumnIn,
java.sql.Types.VARCHAR,
String.class);
parmMetaData.setParameter(
2,
"password",
java.sql.DatabaseMetaData.procedureColumnIn,
java.sql.Types.VARCHAR,
String.class);
parmMetaData.setParameter(
3,
"userid",
java.sql.DatabaseMetaData.procedureColumnIn,
java.sql.Types.VARCHAR,
String.class);
} catch (SQLException ex) {
ex.printStackTrace();
}
}

/**
* Executes the SQL statement.
*/
public void execute(
String username,
String password,
String userid)
throws SQLException {
try {
modify.setParameter("username", username);
modify.setParameter("password", password);
modify.setParameter("userid", userid);
modify.execute();
}

// Free resources of modify object.
finally {
modify.close();
}
}

/**
* Returns a DBModify reference.
*/
public DBModify getDBModify() {
return modify;
}
}