12.07.2015 Views

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■ INDEX3.1 specification new features, 188transaction support, 259–64types, 181enterprise module, 10entities, 46–50abstract, 118attributes, 72–78book, 46callback method defined on, 173callbacks, 169–72detached state for, 168life cycle, 50listeners, 172–76and nonentities, 119operation categories, 50as Plain Old <strong>Java</strong> Objects (POJOs), 49queries of, 48–49, 123–27relationships, 93testing, 57transparency, 179UPDATE statement, 151@Entity annotation, 51entity life cycle, 167–69entity manager, 123, 127–45Cache API, 142–45cascading events, 140–41creating, 48finding by ID, 135flushing data, 137merging entity, 139methods for locking entities, 162methods for manipulated entities, 132obtaining, 128–29orphan removal, 136persisting an entity, 134refreshing entity, 137removing entity, 135–36synchronizing <strong>with</strong> database, 137updating entity, 140entity manager factory, 125entity provider for JAX-RS, 471 tag, 176@EntityListeners annotation, 172, 173EntityManager interface, 125EntityManager.clear() method, 168EntityManager.detach() method, 168EntityManager.find() method, 168EntityManager.merge() method, 168EntityManager.persist() method, 52, 125, 168EntityManager.refresh() method, 168EntityManager.remove() method, 49, 168EntityManagerFactory, 126@Enumerated annotation, 77 element in SOAP message, 431environment entries of session bean, 222environment naming context, 224–26environment setup, 20–41Derby, 31–32<strong>GlassFish</strong>, 34–41JDK install, 20–21JUnit, 27–31Maven, 21–26error messages, 361in JSF, 332European Computer ManufacturersAssociation (ECMA), 304euros, converting dollar price to, 365event handling by managed beans, 281exception handlingin JAX-RS, 475for message-driven beans, 408and transactions, 264–68exception mapping provider, 476excluding interceptors, 250–51Execute attributepossible values, 371explicit access type, 91explicit flushes, 137491

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!