1 / 84

Introduction to Plain Old Java Objects (POJOs) in Java Development

Learn the fundamentals of Plain Old Java Objects (POJOs), their role in Java development, and their relationship to other concepts like domain-driven design and database connectivity.

hamer
Download Presentation

Introduction to Plain Old Java Objects (POJOs) in Java Development

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. POJO https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  2. Apache Thrift Creating a Thrift service • Thrift will generate the code out of this descriptive information. For instance, in Java, the PhoneType will be a simple enum inside the POJO for Phone class. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  3. Java Data Objects • JDO persistent objects are ordinary Java programming language classes (POJOs); there is no requirement for them to implement certain interfaces or extend from special classes https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  4. Domain-driven design - Relationship to other ideas • POJOs and POCOs are technical implementation concepts, specific to Java and the .NET framework respectively. However, the emergence of the terms POJO and POCO, reflect a growing view that, within the context of either of those technical platforms, domain objects should be defined purely to implement the business behaviour of the corresponding domain concept, rather than be defined by the requirements of a more specific technology framework. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  5. Carbonado (Java) - Entity definitions • Carbonado Storables are not pure POJOs, and they must always extend the Storable superclass. By doing so, https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  6. Pueblo Indians - Subdivisions • The Tanoan is an areal grouping of three branches consisting of 6 languages: Towa language|Towa (Jemez), Tewa language|Tewa (San Juan, San Ildefonso, Santa Clara, Tesuque, Nambe, Pojoaque, and Hano); and the 3 Tiwa languages Taos language|Taos, Picuris, and Southern Tiwa (Sandia Pueblo|Sandia, Isleta). https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  7. Java Database Connectivity - Examples • * SchemaCrawler is an open source API that leverages JDBC, and makes database metadata available as plain old Java objects (POJOs) https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  8. WSO2 - WSO2 Enterprise Service Bus • The WSO2 Enterprise Service Bus can be easily extended with custom Java extensions or Plain Old Java Object|POJO classes, or via Apache BSF scripting languages such as JavaScript, Ruby, and Groovy https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  9. JDeveloper - Visual and declarative • Declarative features enable programmers to generate EJBs or Plain Old Java Objects|POJOs based on tables in relational databases. JDeveloper automates the creation of Java EE artifacts. For example, with a click on a visual artifact one can turn a Java class into a web service. JDeveloper generates the associated WSDL (Web Services Descriptive Language) document and related JAX-RPC components. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  10. Berkeley DB - Editions • Three APIs are available—a Direct Persistence Layer which is Plain Old Java Objects (POJO); one which is based on the Java Collections Framework (an object persistence approach); and one based on the traditional Berkeley DB API https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  11. Apache Empire-db • Compared to Object-relational mapping (ORM) or other data persistence solutions such as Hibernate (Java)|Hibernate, iBATIS or TopLink Empire-db does not use XML files or Java annotations to provide a mapping of plain (old) java object (POJO's) to database tables, views and columns. Instead Empire-db uses a Java object model to describe the underlying data model and an API that works almost solely with object references rather than string literals. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  12. Apache Empire-db - Features at a glance • * Reduced amount of Java code and powerful interception of field and metadata access through dynamic beans as an alternative to POJOs. This even allows data model changes (DDL) at runtime. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  13. Apache Empire-db - Features at a glance • * No need to always work with full database entities. Build queries to provide you with the data exactly as you need it, and obtain the result for example as a list of any type of POJO with matching property setters or constructor. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  14. Apache Empire-db - Example • In order to execute the query and retrieve a list of POJO's holding the query result the following code may be used: https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  15. Apache Tapestry - Class Transformation • This approach allows the page and component classes to be written as simple Plain Old Java Object|POJOs, with a few naming conventions and annotations potentially triggering substantial additional behavior at class load time https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  16. Apache Tapestry - History • Tapestry 5.0 released Dec 2008, was a nearly complete rewrite from Tapestry 4, introducing a new POJO-based component model emphasizing configuration over convention, and replaced Hivemind with a new XML-less Inversion of Control layer. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  17. JBoss Seam - Seam 2 • One can turn any EJB3 object or any simple POJO object into a Seam component by just using annotations https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  18. Apache Wicket - Design • Wicket does not mandate any particular object-persistence or object-relational mapping|ORM layer, so applications often use some combination of Hibernate (Java)|Hibernate objects, EJBs or POJOs as models. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  19. Apache Wicket - Design • In Wicket, all server side state is automatically managed. You should never directly use an HttpSession object or similar wrapper to store state. Instead, state is associated with components. Each server-side page component holds a nested hierarchy of stateful components, where each component’s model is, in the end, a POJO (Plain Old Java Object) https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  20. Enterprise application integration - Technologies • These modules could be implemented in different ways: on Java (programming language)|Java-based EAI systems, these could be web applications or Enterprise JavaBean|EJBs or even POJOs that conform to the EAI system's specifications. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  21. IBATIS • 'iBATIS' is a persistence framework which automates the mapping between SQL databases and objects in Java, .NET, and Ruby on Rails. In Java, the objects are POJOs (Plain Old Java Objects). The mappings are decoupled from the application logic by packaging the SQL statements in XML configuration files. The result is a significant reduction in the amount of code that a developer needs to access a relational database using lower level APIs like JDBC and ODBC. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  22. WaveMaker • The WaveMaker framework itself integrates spring framework|Spring, Acegi security framework (Java)|Spring Security(formerly ACEGI), Dojo Toolkit 1.0, authentication, Lightweight Directory Access Protocol (LDAP), ActiveDirectory and Plain Old Java Objects (POJO) and their products include Visual Ajax Studio for Rich Internet Applications (RIA) development and WaveMaker Rapid Deployment Server for Java application.[ http://news.softpedia.com/news/WaveMaker-Offers-WYSIWYG-Ajax-Development-92088.shtml WaveMaker, Visual AJAX Studio 4.0], Softpedia https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  23. Apache Beehive - Controls • In our view, one of the most important changes in EJB 3.1 is the redefinition of EJBs as simple managed bean POJOs with additional services https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  24. ZK (framework) - Features • * Databinding capability via in-ZUML-page annotations that transparently automates CRUD and state synchronization between UI view and the data and POJO. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  25. ZK (framework) - Optional • * Declarative Databindings. ZK has an optional syntax for binding user interface controls to your POJO Java Beans. ZK will automatically call your POJO setter/getter methods with zero programming in response to user input at the browser. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  26. Hibernate (Java) - Persistence • Hibernate provides transparent persistence for Plain Old Java Objects (POJOs). The only strict requirement for a persistent class is a Nullary constructor|no-argument constructor, not necessarily public. Proper behavior in some applications also requires special attention to the equals() and hashCode() methods. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  27. Java view technologies and frameworks - Apache Tapestry • * Classes are written as POJOs and byte-code transformed at run time https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  28. Java view technologies and frameworks - JavaServer Faces (JSF) and Facelets • * Classes are written as POJOs, with and Annotations or XML configuration files used to associate them with page and component templates. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  29. Java view technologies and frameworks - JavaServer Faces (JSF) and Facelets • * The Unified Expression Language allows binding component fields and events to POJO bean properties and methods. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  30. Multi-Version Concurrency Control - Other software with MVCC • *pojo-mvcc – a lightweight MVCC implementation written in Java (programming language)|Java[http://code.google.com/p/pojo-mvcc/ pojo-mvcc project home] https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  31. Model 2 • In a Model 2 application, requests from the client (computing)|client web browser|browser are passed to the Control logic|controller. The controller performs any logic necessary to obtain the correct content for display. It then places the content in the request (commonly in the form of a JavaBean or POJO) and decides which view it will pass the request to. The view then renders the content passed by the controller. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  32. Web Services Metadata for Java • Using annotations from the JSR 181, you can annotate a Web service implementation class or a Web service interface. It enables developers to create portable Java Web Services from a simple Plain Old Java Object (POJO) class by adding annotations, and also helps in generating a Web service with a wizard or by publishing the service on to a server. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  33. Spring Batch • 'Spring Batch' is an open source framework for batch processing. It is a lightweight, comprehensive solution designed to enable the development of robust batch applications,[ http://static.springsource.org/spring-batch/ Spring Batch Homepage] which are often found in modern enterprise systems. Spring Batch builds upon the POJO-based development approach of the Spring Framework.[ http://static.springsource.org/spring-batch/reference/html/spring-batch-intro.html Spring Batch User Guide] https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  34. List of Apache Software Foundation projects • *iBATIS: Persistence framework which enables mapping sql queries to POJOs https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  35. Java Native Interface - JNIEnv* • *[ http://www.innowhere.com JNIEasy] Transparent Native Programming for C/C++, pure Java alternative to JNI using POJOS and JDO/JPA development style https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  36. Java API for RESTful Web Services - Specification • JAX-RS provides some annotations to aid in mapping a resource class (a POJO) as a web resource. The annotations include: https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  37. Mace: The Dark Age - Characters • *Pojo: The Fighting Chicken, transformed by Countess Taria into something more than human, a force powerful enough to rend the very cosmos in her powerful beak. Pojo wages a never-ending battle for truth, justice, and the feathered way. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  38. Business rules engine • Most rule engines supply the ability to develop a data abstraction that represents the business entities and relationships that rules should be written against. This 'business entity model' can typically be populated from a variety of sources including XML, POJOs, flat files, etc. There is no standard language for writing the rules themselves. Many engines use a Java-like syntax, while some allow the definition of custom business friendly languages. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  39. JOnAS - OSGi Environment • The service layer is implemented using [http://felix.apache.org/site/apache-felix-ipojo.html Apache iPOJO], therefore most Java-EE-certified JOnAS services (persistence, EJB, resources, ...) are directly available as OSGi services to all OSGi bundles deployed on JOnAS. The inverse is also true: for example, an EJB3 can directly access any number of OSGi services using dynamic injection. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  40. Plain Old XML • 'Plain Old XML' (POX) is the basic XML, sometimes mixed in with other, blendable specifications like XML namespace|XML Namespaces, Dublin Core, XInclude and XLink. This contrasts with complicated, multilayered XML specifications like those for web services or Resource Description Framework|RDF. The term may have been derived from or inspired by the expression plain old telephone service (a.k.a. POTS) and, similarly Plain Old Java Object (POJO). https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  41. Meteorite - Meteorites in history • A small pallasite was found in a pottery jar in an old burial found at Pojoaque Pueblo, New Mexico https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  42. Poeh Museum • It was founded by Pojoaque Pueblo in 1987, and is housed in the Poeh Center https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  43. Poeh Museum - Location • The building is located off of Highway 84. It is near Pojoaque Pueblo's Cities of Gold Casino and Hotel, and about from Santa Fe, New Mexico|Santa Fe. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  44. Poeh Museum - History • Funding was also provided for the museum's development by the Pojoaque Pueblo Construction Services Corporation, the New Mexico State Legislature, the Bay Foundation, the New Mexico Youth Conservation Corps, and the National Endowment for the Humanities https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  45. Poeh Museum - Services • This archive also provides information on the festivals of Pueblans, their dances, architecture, agriculture in addition to aspects related to economic development of Pojoaque https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  46. OSGi - Architecture • ;Services:The services layer connects bundles in a dynamic way by offering a publish-find-bind model for Plain Old Java Interfaces (POJI) or Plain Old Java Objects (POJO). https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  47. Penthesilea - Heinrich von Kleist's Penthesilea • The treatment of Penthesilea that has received most critical attention since the early twentieth century is the drama Penthesilea (Kleist)|Penthesilea by Heinrich von Kleist, who cast its precipitously violent tempoJohn C https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  48. Korean Seon - Jinul • Drawing upon various Chinese treatments of this topic, most importantly those by Zongmi (780-841) and Dahui Zonggao (大慧宗杲) (1089–1163), Jinul created Pojo Sŏn, a sudden enlightenment followed by gradual practice dictum, which he outlined in a few relatively concise and accessible texts https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  49. Space based architecture - Components of Space-Based Architecture • * 'Processing Unit' — the unit of scalability and fail-over. Normally, a processing unit is built out of a Plain Old Java Object|POJO (Plain Old Java Object) container, such as that provided by the Spring Framework. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

  50. Space based architecture - Components of Space-Based Architecture • * 'POJO-Driven Services Model' — A lightweight services model that can take any standard Java implementation and turn it into a loosely coupled distributed service. The model is ideal for interaction with services that run within the same processing-unit. https://store.theartofservice.com/itil-2011-foundation-complete-certification-kit-fourth-edition-study-guide-ebook-and-online-course.html

More Related