content top

7 Temmuz StaJ…

Data Access Object (DAO) – Design Pattern

Staj süresince okuduğum kadarıyla  bugün de dao’dan bahsetmek istedim, taki Özcan ACAR Bey’in makalesini görene kadar, o kadar sade, o kadar anlaşılır bir makaleydi ki yani başka ne söylenebilir ki veya nasıl farklı yazabilirim ki diye düşünürken bugün bir ürün çıkaramayacağımı anladım ve onun makalesini okumanızı tavsiye etme kanısına vardım :)

http://www.kurumsaljava.com/download/9/ (Özcan Bey’in makalesi)

Ve de tabiki gün içerisinde ilerleyen vakitlerde okuduğum,bir o kadar beğendiğim  ve Özcan Bey ile aynı parkurda yer alan Cihat ALTUNTAŞ Bey’in makalesinide okumanızı tavsiye etmek istedim :)

http://www.cihataltuntas.com/?p=188 (Cihat Bey’in makalesi)

Read More

3 Temmuz – Toyota Stajında

ORM – ( Object-relational mapping )

The programmer must either convert the object values into groups of simpler values for storage in the database (and convert them back upon retrieval), or only use simple scalar values within the program. Object-relational mapping is used to implement the first approach.

So basically ORM focuses on the stored procedures because of gaining time and preventing suspicious attack, preventing lack of code and etc. By means of stored procedures developer doesn’t need to touch database directly, that is the main idea.

What about pros and cons ?  ORM often reduces the amount of code needed to be written, making the software more robust. There are costs as well as benefits for using O/R mapping. For instance, some O/R mapping tools do not perform well during bulk deletions of data. Stored procedures may have better performance but are not portable(for instance iBatis ,before I talked about iBatis-OR mapping Tool).

An example about mapping;

Read More
?>
content top