首页 > 数据库 > 数据库开发技术 > Database Programming With JBuilder Step by Step Part 1 ( a quick reference )

Database Programming With JBuilder Step by Step Part 1 ( a quick reference )

原创 数据库开发技术 作者:rock1411 时间:2005-05-06 22:10:26 0 删除 编辑

Creating the DataStore file store = new DataStore();

l         Set the fileName for the DataStore file. store.setFileName(jdbcURL);

l         Set any other properties that must be set at create-time, like the blockSize, if desired.

l         To make the DataStore transactional:

Instantiate a TxManager new TxManager()

Assign it to the DataStore's txManager: store.setTxManager(new TxManager() )

l         Assign a name to the DataStore's userName property store.setUserName(jdbcUser);

l         Call the DataStore's create method store.create();

the create method (if successful) results in an open connection to the newly-created DataStore through the DataStore object

Connecting the JdataStore Database

you should use the DataStoreConnection class to open a connection to an existing DataStore.

    storeConnect = new DataStoreConnection();



When using the DataStore with a StorageDataSet:

l          DataSet.setStoreName("TabelleName");

l         DataSet.setStore(storeConnect);


Database and DataSet are implicitly opened when visual components bound to them open. When you are not using a visual component, you must explicitly open a DataSet. opening a DataSet implicitly opens a Database. A Database is never implicitly closed.

To make any data set updateable, set the updateMetaData property to NONE


来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录


  • 博文量
  • 访问量