Code Generation By Example - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Code Generation By Example

Description:

Generate object-oriented code from SQL database scheme, vice versa, or both from ... DataObject, Prefetch, Plural, Index. Fields attribute: ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 14
Provided by: downloadM
Category:

less

Transcript and Presenter's Notes

Title: Code Generation By Example


1
Code Generation By Example
Its always about money
  • Eyal Vardi
  • Technology Consultant
  • IKS LTD

2
Composite Control Example
  • Problem
  • I need to expose out properties, methods and
    event of inner members
  • Solution
  • Automatic tools that do it for me, analyze and
    generate the code

3
Demo 1 Control Delegation
4
Class Flow
5
Object Relation Mapping
  • Problem
  • Maintain a coordinated object-oriented in-memory
    and persistent SQL database schemes
  • Solution
  • Generate object-oriented code from SQL database
    scheme, vice versa, or both from a shared
    definition

6
Architecture Components
Scheme Design(Creating the OO Model)
Code Generation
Logic Code
Complete Data Tier
7
Scheme Design
  • Define an object hierarchy
  • The schemes are used as a blueprint for
    implementation code
  • Classes attribute
  • DataObject, Prefetch, Plural, Index
  • Fields attribute
  • Unique, DataRef, Dirty, Notify, Transient,
    Length, Lookup

8
The Code Generator
  • The generation is performed on the defined scheme
    templates
  • Generated code is combined into the existing
    project
  • Changing the scheme and re-generation can be
    performed at any stage of the project lifetime

9
The Code Generator
10
Templates
  • The purpose of the templates is enabling a
    dynamic change and manipulation of the generated
    code
  • Unique syntax composed of conditional statements,
    expressions and predefined code
  • if, foreach, variable, call, include, write

11
Complete Data Tier
  • Server
  • Building the DB
  • Data layer
  • Logic and Extensibility infrastructure
  • Façade / Web-Service
  • Client
  • Proxy
  • Data
  • Logic
  • UI
  • Future expansion.

12
Demo 2 ORM - PrimeData
13
Criteria For Success
  • Creating an overall and complete system
  • that enables an extensive and complete
  • solution to the software developer in terms
  • of hiding the data manipulation and
  • adaptation in the data tier.
Write a Comment
User Comments (0)
About PowerShow.com