background preloader

Dao / sdo / sca / das

Facebook Twitter

DAO sdo sca das. [MVC] Mappers / datasources - Frameworks - Forum - PFZ.nl - PHP Community. [OOP] Classes - heb ik het begrepen ... of toch niet ? - PHP - Forum - PFZ.nl - PHP Community. Robert Christiaanse Groep: Forumleden Posts: 63 Actief sinds: 25-12-2003 Er worden hier twee verschillende ontwerpen/patterns door elkaar gegooid, namelijk het DAO pattern en het ORM pattern.

Tim is bezig DAO's (Data Access Objects) te bouwen. Hierbij is elk object zichzelf te laden, bij te werken en op te slaan. In dit geval heeft een gebruiker (object) dus kennis van een data persistence layer (lees "een database"). De hoge mate van koppeling is volgens velen zeer ongewenst en ook niet zonder problemen. Vandaar dat iedereen hier begint te roepen over mappers en handlers en dat is volkomen terecht! Beide patterns streven hetzelfde doel na, namelijk voor entiteiten classes te gebruiken die op (in)direct gekoppeld zijn aan database-tabellen. Als je voor mappers/handlers gaat, zorg dan dat er een indirecte koppeling is, dan kun je ook andere datasources gebruiken (file, XML, service etc.), zoals Vincent al aangaf. Terug naar af... Wat ik zeg klopt niet helemaal. Service Component Architecture. Service Component Architecture (SCA) is a software technology created by major software vendors, including IBM, Oracle and TIBCO.

SCA provides a model for composing applications that follow service-oriented architecture principles.[1] The technology encompasses a wide range of disparate technologies and as such is specified in various independent specifications in order to maintain programming language and application environment neutrality.[1] Many times it uses a Enterprise service bus (ESB). Open Source Communities Tools to SCA[edit] There are some independent open source communities implementing SCA: Partners[edit] Partner vendors include: Supporters[edit] In addition to the partners above, the SCA community has a significant set of formal supporters.[3] The Supporters Program remains open for any interested vendor, ISV, customer or user of the SCA technology to contribute to its evolution.

Definition[edit] Further analysis[edit] Advantages: Disadvantages: SCA artifacts[edit] See also[edit] Service Component Architecture (SCA) | OASIS Open CSA. Service Component Architecture (SCA) is a set of specifications which describe a model for building applications and systems using a Service-Oriented Architecture (SOA). SCA extends and complements prior approaches to implementing services, and SCA builds on open standards such as Web services. SCA is based on the idea that business function is provided as a series of services, which are assembled together to create solutions that serve a particular business need.

These composite applications can contain both new services created specifically for the application and also business function from existing systems and applications, reused as part of the composition. SCA provides a model both for the composition of services and for the creation of service components, including the reuse of existing application function within SCA compositions. SCA aims to encompass a wide range of technologies for service components and for the access methods which are used to connect them. Dao - Zoeken - PFZ.nl - PHP Community. Ik zou helemaal niet naar de extensie kijken van de opgevraagde pagina in de url. Ergens in je framework heb je de logica waarmee bepaald wordt welke controller er geladen moet worden. Dat kan in index.php zijn, maar ook in en aparte class die deze taak heeft, de z.g.n. bootstrapper of dispatcher.

(Dat laatste is natuurlijk beter dan het af te handelen in index.php.) Hier zou je kunnen kijken naar de user agent en/of resolutie en op die manier bepalen of het om een mobiel apparaat gaat of niet. Hier laad je de juiste controller. Wellicht komt veel functionaliteit voor de 'normale view' en de 'mobiele view' overeen. Dan het JSON-verhaal. Waarom zorg je er niet voor dat de view een referentie heeft naar het model? $this->_model->getUsers(); Als je één model gebruikt, dan heb je een probleem. $this->_model->getUsersUsingJSon(); Wat je in ieder geval NIET moet doen is met een if-constructie of een switch een keuze gaan maken!!

Je kunt natuurlijk ook met (abstract) factories gaan werken. Succes. Java Persistence - DAO Design Problems. The Data Access Object (DAO) pattern is now a widely accepted mechanism to abstract away the details of persistence in an application. In practice however, it itsn't always that easy to make your DAO's fully hide the underlying persistence layer. For instance, when a transaction span calls to multiple DAO's, where do you put the transaction demarcation code?

This text will take a closer look at this and other problems and their solutions. DAO's Defined In short the purpose of DAO's is to hide the persistence mechanism of an application from its domain logic. Domain logic --> persistence mechanism into this domain logic --> DAO's --> persistence mechanism The advantage of this abstraction is that you can change the persistence mechanism without affecting the domain logic.

You can also read more about the DAO pattern here: DAO Connection Scoping Method Scope Thread Scope.