Unit 4 - Lesson 1 - Operation Stereotypes Flashcards

1
Q

Describe code packages

A
Created in model to organise elements.
Can contain:
Packages
Classes
Relationships
Class Diagrams
Package structure does not affect generated code.
To generate elements into separate Java package you must use CODE_PACKAGE option.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe and use stereotyped methods for standard operations

A

Standard operations:
Developer models method - generators create keys, details and list as required.
Except for READMULTI:
* Developer specifies the key as input parameter
* Generators create list as return parameter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe and use handcrafted SQL

A

NS and NSMULTI stereotyped operations.
These queries have access to all the tables on the database and all parameters of the operation.
Developer controls the whole SQL clause.
Two types of host variable:
* Parameter host variables correspond to the arguments of an operation, e.g. personID
* Return type host variable is used to return data from handcrafted SQL, e.g. personName
* Host variable must be prefixed by a colon (:)
* Host variables are case sensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe batch architecture

A
  • Allows business processing to run outside the application server.
  • Batch jobs are Java applications that connect to the database via JDBC.
  • Batch jobs can be scheduled using any industry-standard scheduler tool
  • Infrastructure contains a batch launcher process that executes the batch job.
  • Some deferred processing and workflow features are available.
  • Caching and streaming are used to improve performance.
    External Scheduler > Curam Batch Launcher > Batch Process > Curam Database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe input meta-model

A
Input to generators. User-defined set of UML constructs.
Contains:
* Packages
* Class diagrams
* Classes
* Relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Working with Fragments in RSA

A

Curam model is a single logical model consisting of separate physical fragments.
Fragments do not load when you open the model.
Fragments are loaded when you open by click on +
By default, model is stored in a single file, for example ServerWorkshop.emx
Possible to specify that any or all packages are stored in separate files called a fragment (.efx file).
Facilitates source code control.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Specifying code package

A

Set Code_package property in the Curam properties tab.
Value overrides parent value.
Root packages is defined in ‘project.package’ in Application.prx
Must be a valid Java identifier.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe Entity operations

A
Database operations:
* Use Curam-specified stereotypes
* Fully or partially generated for you
* Includes INSERT READ and MODIFY
Non-database operations:
* No generator-regognized stereotype
* Generator creates skeleton for the operations
* Developer must implement the rest for the entity class in the impl package.

Operations that return parameter or require a primary key use Standard Structs in classes with stereotype KEY.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe Entity operations standard stereotypes

A

Normal CRUD operations using curam generated entity key and return structs, except READMULTI where developer specifies the key.
insert, modify, read, read multi, remove

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Describe Entity operations non-keyed stereotypes

A

Operate on all records.

nkmodify, nkread, nkreadmulti, nkremove

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe Entity operations non-standard stereotypes

A

CRUD operations using subset of attributes.
ns and nsmulti are for complex operations where a SQL query needs to be defined.
You must specify the input and output struct as required.
nsinsert, nsmodify, nsread, nsreadmulti, nsremove, ns, nsmulti.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe Entity operations for other stereotypes

A

Batch - Process large number of records in single transaction.
batchinsert, batchmodify, blank.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe and use stereotyped methods for non-keyed operations

A

Operate on all records on the table.
No inputs or outputs structs need be modelled - The generators create them.
Be very careful - can easily result in all records being dropped or amended.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe and use stereotyped methods for non-standard operations

A

Developer specifies input and output structs. Generators do the rest, except for NS and NSMULTI.
Developers may specify an optional WHERE clause for READMULTI or NSREADMULTI.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

List handcrafted SQL Syntax considerations

A

All handcrafted SQL statements must end with a semicolon.
When writing SQL, consider Curam data type to store the value.
Some are stored as null values.
SVR_DATE, SVR_DATETIME, SVR_UNIQUEID, SVR_BLOB, SVR_STRING.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe Process or Facade Stereotyped Operations

A
DEFAULT opération - standard or plain operations.
WMDPACTIVITY operations - specifies method as a deferred processing method. Operation is queued and processed asynchronously.
QCONNECTOR - produces code that converts the operation parameter into a JMS message.
BATCH - operations can't have more than one parameter. Parameters must be structs. A process class cannot have more than one BATCH operation.
17
Q

Describe Batch streaming architecture

A

Scalable Chunk and Stream architecture.
Multiple instances (streams) of the same batch process can be run to process chunks of records.
Chunk size and stream commit size are configurable.
Each chunk is processed in a separated database transaction, providing commit-point processing.