SERPland Oracle, PL/SQL, PHP, Autos, Bungalow-Hotels and more …

27Jul/071

Decorator Design Pattern in Oracle PL/SQL: Using Object Type with Constructor

As I did with the Template Method Design Pattern I also tried to implement the "Decorator" Design Pattern in Oracle's PL/SQL language.

English Deutsch/German

The Book "Head First - Design Patterns" perfectly describes the Decorator pattern.
So I wrote some Object Type to implement the Decorator. I'd like to have a DRINK class (Espresso or Tea) with just one attribute called "description" and a method which returns the price.

There are some specific classes to make instances like an Espresso. Other classes are "adding" sugar or cream to my espresso.
I'd like to receive following result:

-- start with a Espresso --
descr= Espresso
price= 1
descr= Espresso, sugar
price= 1,2
descr= Espresso, sugar, Cream
price= 1,95

-- start with a Tea --
descr= Tea
price= 3
descr= Tea, sugar
price= 3,2
descr= Tea, sugar, Cream
price= 3,95

24Jul/070

Oracle Forms Error: PDE- …. INTERNAL ERROR. Unable to adjust forms for output …..

FRM-18108 / FRM-30436 / FRM-30041 / FRM-30085 Forms Compilation Errors

PDE- .... INTERNAL ERROR. Unable to adjust forms for output .....

According to several Oracle Metalink support entries and some experiance in migrating Oracle Forms Rel. 6i to Oracle Forms Rel. 10gR2, I suggest to:

Recompile all Forms program code: In Forms menu do "Program - Compile - Compile All"!

18Jul/070

Segel-Jollen Vergleichstabelle

Hier mal meine erste Tabelle zum Vergleich von Segeljollen.
Ich bin aber noch nicht ganz fertig ...