Slide 1 Using the Table API Slide 2 Standard Uses of API
- Populate Columns via Sequences
- Insert Default Values instead of nulls
- Populate Autogen Columns
– Date Created, Date Modified – Who Created, Who Modified – Sequence within Parent
- Force Uppercase
- Domain Validation
- Arc validation
Slide 3 Standard Uses of API
- Foreign Key Cascades, Nullifies,
Defaults, Restricted Delete/Update
- Table Journaling
- Derived Columns
- Denormalization:
– Copy Parent Value to Child – Aggregate Child Values to Parent
Slide 4 Specification Summary
Sequence Populated Denormalized Uppercase Domain Autogen
Slide 5 Force Uppercase
- Set ‘Uppercase’ to Yes
- Set ‘Server Derived?’ to Yes
- Generate Table API
Slide 6 Uppercase Only
Uppercase Server Derived?
Slide 7 Autogen Code
- For autogen column
– Set Autogen Type
- Date Modified/Created
- Created/Modified By
- Sequence within Parent
– Set ‘Server Derived’ to Yes.
- Generate API
Slide 8 Autogen Columns
Server Derived? Autogen Type
Slide 9 Domain Validation
- Via Check Constraint (non-API)
- Via Lookup in CG_REF_CODES table
- How?
– Define Domain – Define Column using Domain, or – Define Column with ‘Allowable Values’ – Generate Table API
Slide 10
S e r v e r P a c k a g e s
Validating Domains
GAME_CATEGORY ARC RV_DOMAIN RV_LOW_ VALUE GAME _CATEGORY ARC GAME _CATEGORY EDU GAME _CATEGORY ROL GAME _CATEGORY SIM Triggers CG_REF_CODES CG_REF_CODES DML TITLES TITLES