In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to understand the Java ORM framework guzz, the editor feels very practical, so share with you to learn, I hope you can get something after reading this article, say no more, follow the editor to have a look.
Guzz 1.3.1
Large version update Oh:
1. Dynamic splicing SQL has finally been released, and all the flowers are gone. Now, you can write a conditional sql statement, and then when executing, guzz will construct the really needed sql statement based on the passed parameters, and then bind the parameters to execute. Guzz is implemented based on Velocity template by default, so the syntax, flexibility, ease of use and learning cost of dynamic SQL stitching are absolutely sufficient, and velocity documents are absolutely rich and mature. Take a closer look: http://code.google.com/p/guzz/wiki/TutorialTemplatedSQLService?wl=zh-Hans
two。 Tired of adding domain objects to guzz.xml one by one? It's time to liberate yourself. In the face of more than half a year of various demands, version 1.3.1 finally found conscience and added the function of package-scan. We can also scan files and add business in bulk. Look at this: http://code.google.com/p/guzz/wiki/TutorialHbmPackageScan?wl=zh-Hans
3. Write a time string in SQL and report an error? Although it is a small function, the escape character support is released this time. Children who are not afraid of SQL injection and are preoccupied with splicing SQL statements can see here: special character escapes in http://code.google.com/p/guzz/wiki/TutorialGuzzXml?wl=zh-Hans#sql statements.
4. JDNI data source is also supported this time. Thanks to Bobo for the code. I would also like to take this opportunity to thank Bobo for providing other codes. Implementation of built-in connection Pool in http://code.google.com/p/guzz/wiki/TutorialDatasourceProvider?wl=zh-Hans#guzz
5. Other small functions and bug corrections will cut the crap. If you are interested, you can compare the SVN code yourself.
What is guzz?
Guzz is a set of Java ORM framework for multi-database programming, which is used to replace hibernate and ibatis to make it easy to use multiple databases in one system. Guzz also provides general data calculation and configuration management, which simplifies the complexity of the system and provides an one-stop solution for the design of the system in the data layer.
Main functions and features of guzz:
Modern large-scale system design absorbs the advantages of ibatis/hibernate in technology.
Support applications to use a large number of databases and master-slave read-write separation
Support horizontal distribution of database tables among groups of machines (Shard), and automatically maintain distributed transactions among groups of machines
Support 1 table to be divided into multiple small tables (Shadow) according to business rules, and each small table has its own special attribute field (Custom)
Support a large table split into small tables, distributed to different databases (VirtualDB)
Support unified reading of POJO schemas for heterogeneous resources such as special associations beyond normal forms and unstructured data.
Support the interdependence of component-based services (SOA) and services, and build a basic platform for enterprise / project implementation
Provide object-oriented database read tags (JSP Taglib) to speed up the rapid change, development and deployment of the page presentation layer
For most scenarios, object persistence, mapping, and convenient addition, deletion, modification and query like hibernate are supported to improve development efficiency.
For complex scenarios, like ibatis, let DBA participate in complex database operation and optimization of SQL design, as well as SQL online debugging
Batch operation interface that is simpler, easier to use and easier to control
Support for online loading and debugging of SQL. According to the application strategy, dynamically extract and use SQL statements (Dynamic SQL) from file / database / Web Service and other ways.
Support configuration management server, you can use a set of software system to manage the configuration of all applications
The above is how to understand the Java ORM framework guzz, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.