Unit 2 - Lesson 1 - Server Fundamentals 1 Flashcards
List stereotyped class types in the Curam Model
Domain Definition Entity Struct Process Facade and more
Define Domain Definitions
Curam concept of simple application-level data type definitions
Unwind to fundamental data types
All attributes to be defined in terms of domains
Define Struct
Collection of Attributes
Never has methods
Used as argument & return type for Facade, Entity & Process classes
Groups arguments to avoid long argument lists
Java class created per each struct in the model
Define Entity
Associated with DB tables. Can have attributes & methods
Attributes become columns of the DB table.
Java class is generated from the Entity using:
READ
INSERT
MODIFY
REMOVE
READMULTI
will form primary keys. You can specify multiple s to form composite key
Define Shadow Class
Structs that are automatically generated based on Entity class attributes Generated structs are referred to by the shadow type: Key, Dtls, DtlsList, KeyList
What Shadow classes are created for specific operations
> , > - Key & Dtls
- Dtls
- Key
- DtlsList
Define Process model (Business Process Object)
Business logic of the application
No direct association with database tables or client processing
Method signatures are modelled, method logic implemented by developers
A java class per process class
Contains calls to processes & entity methods
Not client visible
Define Facade model
Client-specific logic
Not directly associated with database tables
Never has attributes
Method signatures are modelled, dev implements content
Java class per Facade class
Client-visible
Calls to processes & entities
Curam naming conventions
Domain Definitions - ACCOUNT_NUMBER Entity - BankAccount Attribute name - accountNumber Operation name - readAccount Named aggregation - dtls, key, dtlsList Process or Facade class - ProcessBankAccount
RSA for Curam offering
IBM Curam profile - defines UML stereotyped elements and values can be defined within Curam model
Curam Model template - IBM Curam Profile + filtering capability to remove unnecessary or unsupported functionality from RSA
Mapping model to code
Intf - public abstract
Base - protected abstract
Impl - public/protected implementation
Fact - factory.newInstance() extending Impl
Stereotyped entities’s factory will extend from base as implementation is included for free
Developers must declare implementation as abstract to enforce Factory
Model compilations & JAR
build generated - model into code and compile some classes JARs generated: struct.jar messages.jar events.jar codetable.jar application.jar Project class path should include above and exclude struct & intf folders