14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11.2.2. Running the <strong>JHeadstart</strong> Application Generator<br />

Attention: We recommend installing the <strong>JHeadstart</strong> tables in the same schema<br />

as your own application tables. If you nevertheless prefer to install the<br />

<strong>JHeadstart</strong> tables in a different database schema, then you need to ensure that<br />

your application schema has full access to the <strong>JHeadstart</strong> tables and synonyms<br />

with the same name as the table name. This is required because the <strong>JHeadstart</strong><br />

runtime accesses the database tables through View Object usages defined in<br />

application module JhsModelService. When generating your application<br />

while using one or more of the table-driven features, this JhsModelService<br />

application module is added as a nested usage to your own application<br />

module, thereby “inheriting” the database connection of its parent application<br />

module.<br />

Attention: The JhsModelCreate.sql script creates database tables for all tabledriven<br />

<strong>JHeadstart</strong> runtime features. Additional tables for flex items, dynamic<br />

menus and security are also created. If you do not plan to use these other<br />

features you can create your own script that only creates the above tables, and<br />

the JHS_SEQ sequence that is used to populate the ID column in these tables.<br />

When you now run the <strong>JHeadstart</strong> Application Generator with property Resource<br />

Bundle Type set to “databaseTable”, the following happens:<br />

• All ADF Business Components included in the <strong>JHeadstart</strong> Runtime library are<br />

imported into your Model Project, and the JhsModelService application<br />

module, is added as a nested usage to your own application module. The<br />

JhsModelService includes View Object Usages that insert, update, delete and<br />

query the underlying nls database tables. Note that by creating<br />

JhsModelService as a nested application module, it will inherit the database<br />

connection of the parent application module.<br />

11 - 6 Internationalization <strong>JHeadstart</strong> Developer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!