Niels Gorter about Bean Data Controls.
Slides of the AMIS Oracle JDeveloper, ADF and Weblogic 12c event.
And all the correct usage of the cancel button.
4. 4
Soorten Bean Datacontrols
• JPA Based
– Gebaseerd op JPQLDataFilterHandler
– Grote verschil met EJB DC = transactie management
• Non-JPA Based
– Gebaseerd op DataFilterHandler
– Zelf maken CRUD – Pagination - Transaction
• Custom Bean DataControl
5. 5
Ondersteunde types
Gelijk aan de ondersteuning van de EJB Dacontrols
• Java primitive types en arrays
• Complex Java types
• Java scalar types
• Collection types
• Generics, strongly-typed collections
• Java Persistence API (JPA) features such as:
– @Id annotations to determine primary keys
– @NamedQuery annotations and the full range of JPQL syntax for named queries
– @JoinColumn annotations to denote master-detail and list-of-value (LOV)
relationships.
6. 6
Wizard – 1 van 4
• Naam Datacontrol
• Bean waarop we de
Datacontrol maken
7. 7
Wizard – 2 van 4
• Features
– Failover
– Transactions
– Custom CRUD
• Implentatie Class
8. 8
Wizard – 2 van 4
• Failover
– Voegt methodes toe om failover te implementeren. Create, restore en
removesnapshot
– Zelfde als failover op een BC4J Application Module. Resource intensief.
• Transactions
– Voegt commitTransaction(), rollbackTransaction() en isTransactionDirty() toe
(Explicit)
– Commit, Rollback action op Datacontrol
– ADFc Transactions
• Custom CRUD
– Voegt methodes toe voor oa. CreateRow, DeleteRow action
– Voor JPA based alleen nodig als je ze wilt overschrijven
9. 9
Wizard – 3 van 4
• Acces Mode
– Scrollable
– Range Paging
• Support Named Criteria
• Generate Metadata
10. 10
Wizard – 3 van 4
• Access Mode (Pagination)
– Hier wordt Access Mode op Datacontrol scope gezet
– Overrides door annotatie: @AccessMode(type=AccessModeType.SCROLLABLE)
– JPA: Support Named Criteria moet aan staan om te kunnen selecteren
– Non JPA: 3 methodes zelf implementeren
• List<EntityBeanName> getEntityBeanNameList()
• List<EntityBeanName> getEntityBeanNameList(int firstResult, int maxResults)
• long getEntityBeanNameListSize() Scrollable houd opgehaalde records in memory
– Scrollable voegt elke opgehaalde set toe aan memory
– Range Paging houdt alleen de laatst opgehaalde set in memory
– No Pagination – Instellen middels annotatie
11. 11
Wizard – 3 van 4
• Support Named Criteria
– Alleen beschikbaar voor JPA based beans die queryByRange() implementeren
– Search Forms
• Generate MetaData
– Genereert de XML files die de objecten beschrijven
– In principe niet nodig.