IBATIS
iBATIS is a Framework Apache of Persistance which allows to put in correspondence Requête S SQL and authority S of object.
Principle
Requests SQL are associated with classes of objects via files of definition XML. In other words, a SELECT in SQL via iBATIS directly returns the authority (or a list of authorities if necessary) of the corresponding object.
Association between objects and relations
The objects put in correspondence with a relation must be able to be built, indicated and consulted (by methods of the consultation type/modification of attributes) such as the JavaBeans.
Association can be done almost automatically, iBatis analyzing the types on both sides and carrying out conversions which correspond to the attributes of the classes and the attributes of the relations implemented.
It is also possible to manually define the correspondences in more complex cases requiring for example conversions in the flight. A request can, moreover, to take parameters according to a given correspondence (correspondence parameter) and to return results in another (correspondence of result) or in a standard preset of the language used. They can finally is correspondence objects based on the names of the fields of the relation.
One second analysis of the instanciée request is also possible on the condition of being explicitly required (that makes it possible for example to have part of dynamic request).
The use of spaces of names makes it possible to categorize the mappings according to the various fields implemented in the application.
Optimization of the access
iBATIS has various models of mask to prevent starting again a request on the database if it is not necessary (simple memory, the last used, etc).
Management of the transaction
There are 4 manners of managing the transaction:- With the management of the anonymous exceptions
- Classes allowing to manage a transaction (Solution " sale")
- Use with Spring: one applies a filter to the name of the methods and one carries out the management of the transaction on a particular name
- Possibilité of carrying out an automatic management with a system of filter being carried out before and after each screen.
Versions available
The framework is available under License Apache v2.0 for the following languages:
- . Net
- Java
- Ruby
See too
- a plugin of good quality is provided with iBatis: Abator.
Article related
- Frameworks Java of persistence
- to see Hibernate, a similar framework
External references
- official Page on the site Apache
- Wiki iBatis
- On line help iBatis. Net
| Random links: | Paralysis | Coefficient of isochoric increase in pressure | Shoring | Viger Station-hotel | Clothes pin | Mesure_de_Portsmouth |