How to handle a missing feature of PLSQL.
String representation of a record.
This open source project is located at : http://code.google.com/p/rec2string/
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Rec2String
1. Rec2String v2.1.0
How to generate a string representation
Arnold Reuser, founder of Rec2String
2. Agenda
1 Serving a need
2 A few words on the architecture
3 What Rec2String can do for you
4 How you can make a difference
Page 2 Rec2String v2.1.0
3. Serving a need
Missing feature of PLSQL
The PLSQL language and libraries do not provide the ability to generate a
string representation of a record
Custom solutions for this purely technical problem
- have a reasonable cost and risk factor
- do not generate any business value
Page 3 Rec2String v2.1.0
4. Serving a need
Practical solution for a common problem
Problem was identified by a CRM service provider of General Motors
Find a practical solution
- focus on low cost and low risk
- resolve it in a generic manner
Rec2String is released in 2008 on their Oracle production servers
Rec2String is the defacto standard for the past three years
Page 4 Rec2String v2.1.0
5. A few words on the architecture
Input Process Output
Database
Binding Compiler rec2string
Custom
Binding
database – source database binding compiler is the core of the rec2string - provides the ability to
processing model. transform a record into a string
custom binding – optional plugin to
tweak the compiler in any way binding compiler will generate the
required plsql package rec2string
Page 5 Rec2String v2.1.0
6. What Rec2String can do for you
Simplifies a string representation of a record
Allows customization of the string representation
Page 6 Rec2String v2.1.0
7. Simplifies String Representation
Allows you to generate a string representation of a record
Generates the string in a generic manner
Nested Record DBMS Output
cmcd xml2rec.communication; email:
cmcd.preferredChannel := 'EMAIL'; email.value:"arnold@reuser.info"
cmcd.email.value := 'arnold@reuser.info'; telephone:
cmcd.telephone(0).indicator := 'MOBILE'; telephone(0):
cmcd.telephone(0).value := '00316123456789'; telephone(0).indicator:"MOBILE"
cmcd.telephone(1).indicator := 'WORK'; telephone(0).value:"00316123456789"
cmcd.telephone(1).value := '003120123456780'; telephone(1):
telephone(1).indicator:"WORK"
dbms_output.put_line(rec2string.toString(cmcd)); telephone(1).value:"003120123456780"
preferredchannel:"EMAIL"
Page 7 Rec2String v2.1.0
8. Allows Customization
Can be adapted to the needs of your organization
Will put you in the drivers seat of the binding compiler
Provides a plugin to tweak the compiler in any way required
Read the user guide for all the details
Page 8 Rec2String v2.1.0
9. How you can make a difference
Give it a try
Be a happy user
Tell us and the whole wide world about it!
If you would like to get in touch.
Drop me a mail at arnold@reuser.info
Page 9 Rec2String v2.1.0
10. Do You Have
Any Questions?
We would be happy to help.
Page 10 Rec2String v2.1.0