Home
ObjectDBObjectDB
Fast Object Database for Java - with JPA/JDO support
  • Download
  • Forum
  • Login
  • My Account
  • Logout
  • ObjectDB
    • Overview
    • Features
    • Download
    • License
    • Company
  • Tutorials
    • Quick Start with JPA
      • Eclipse JPA Tutorial...
      • NetBeans JPA Tutorial...
      • Download and Run...
      • BIRT Report Generator...
    • JPA Web App (Tomcat)
      • Eclipse JPA Web App...
      • NetBeans JPA Web App...
      • Download and Run...
    • Java EE JPA (GlassFish)
      • Eclipse JPA Java EE...
      • NetBeans JPA Java EE...
      • Download and Run...
    • Spring MVC and JPA
      • Eclipse JPA Spring...
      • NetBeans JPA Spring...
      • Download and Run...
  • Manual
    • 1  Quick Tour
      • Entity Class
      • Database Connection
      • CRUD Operations
      • What is Next?
    • 2  Entity Classes
      • Persistable Types
      • Entity Fields
      • Primary Key
      • Generated Values
      • Index Definition
      • Schema Evolution
      • Persistence Unit
    • 3  Using JPA
      • Database Connection
      • Managed Entity Objects
      • CRUD Operations
        • Storing Entities
        • Retrieving Entities
        • Updating Entities
        • Deleting Entities
      • Advanced Topics
        • Detached Entities
        • Lock Management
        • Lifecycle Events
        • Shared L2 Cache
        • Metamodel API
    • 4  JPA Queries
      • Query API
        • Running Queries
        • Query Parameters
        • Named Queries
        • Criteria Query API
        • Setting & Tuning
      • Query Structure
        • JPQL SELECT
        • JPQL FROM
        • JPQL WHERE
        • JPQL GROUP BY
        • JPQL ORDER BY
        • DELETE Queries
        • UPDATE Queries
      • Query Expressions
        • JPQL Literals
        • JPQL Paths and Types
        • Numbers in JPQL
        • Strings in JPQL
        • Date and Time in JPQL
        • Collections in JPQL
        • Comparison Operators
        • Logical Operators
    • 5  Tools and Utilities
      • Database Explorer
      • Database Server
      • Class Enhancer
      • Replication (Cluster)
      • Online Backup
      • Database Doctor
      • Transaction Replayer
      • BIRT Reports Driver
    • 6  Configuration
      • General and Logging
      • Database Management
      • Entity Management
      • Schema Update
      • Server Configuration
      • Server User List
      • SSL Configuration
  • JPA
    • Persistence
    • EntityManagerFactory
    • EntityManager
    • EntityTransaction
    • Annotations
      • Class Modifiers
        • Cacheable
        • Embeddable
        • Entity
        • EntityListeners
        • ExcludeDefaultListeners
        • ExcludeSuperclassListeners
        • IdClass
        • MappedSuperclass
      • Field Modifiers
        • Basic
        • Embedded
        • ElementCollection
        • Id
        • EmbeddedId
        • Version
        • Transient
        • Enumerated
        • MapKeyEnumerated
        • EnumType
        • Temporal
        • TemporalType
        • MapKeyTemporal
      • Relationships
        • ManyToMany
        • ManyToOne
        • OneToMany
        • OneToOne
        • OrderBy
        • MapKey
        • CascadeType
        • FetchType
      • Access Modes
        • Access
        • AccessType
      • Value Generation
        • GeneratedValue
        • GenerationType
        • SequenceGenerator
        • TableGenerator
      • Callback Methods
        • PrePersist
        • PreRemove
        • PreUpdate
        • PostLoad
        • PostPersist
        • PostRemove
        • PostUpdate
      • JPQL Queries
        • NamedQueries
        • NamedQuery
        • QueryHint
      • Java EE...
      • Mapping (ORM)...
      • SQL Queries...
    • Queries
      • Query
      • TypedQuery
      • Parameter
      • CriteriaBuilder
      • CriteriaQuery
      • Selection and Results...
      • Criteria From Elements...
      • Criteria Expressions...
    • Metamodel
      • Metamodel
      • Metamodel Types...
      • Metamodel Attributes...
      • Bindable...
    • Miscellaneous
      • PersistenceUtil
      • PersistenceUnitUtil
      • Cache...
      • CacheRetrieveMode
      • CacheStoreMode
      • FlushModeType
      • LockModeType
      • PessimisticLockScope
    • Exceptions
      • EntityExistsException
      • EntityNotFoundException
      • LockTimeoutException
      • NonUniqueResultException
      • NoResultException
      • OptimisticLockException
      • PersistenceException
      • PessimisticLockException
      • QueryTimeoutException
      • RollbackException
      • TransactionRequiredExc...
  • JDO
    • JDOHelper
    • PersistenceManagerFactory
    • PersistenceManager
    • Transaction
    • Query
    • Extent
    • Annotations...
    • Callbacks...
    • Listeners...
    • Predefined ID Classes...
    • Miscellaneous...
    • Exceptions...
  • Support
    • FAQ
    • Knowledge Base
    • Forum
    • Issue Tracking
    • Help Desk
 
Home » JDO » Listeners

40 words

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events:

  • javax.jdo.listener.AttachLifecycleListener
  • javax.jdo.listener.ClearLifecycleListener
  • javax.jdo.listener.CreateLifecycleListener
  • javax.jdo.listener.DeleteLifecycleListener
  • javax.jdo.listener.DetachLifecycleListener
  • javax.jdo.listener.DirtyLifecycleListener
  • javax.jdo.listener.LoadLifecycleListener
  • javax.jdo.listener.StoreLifecycleListener
  • javax.jdo.listener.InstanceLifecycleEvent
  • javax.jdo.listener.InstanceLifecycleListener

Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactoryjavax.jdo.PersistenceManagerFactoryJDO interfaceThe PersistenceManagerFactory is the interface to use to obtain PersistenceManager instances.
See JavaDoc Reference Page...
level or the PersistenceManagerjavax.jdo.PersistenceManagerJDO interfacePersistenceManager is the primary interface for JDO-aware application components.
See JavaDoc Reference Page...
level.

< InstanceCallbacks^ JDOAttachLifecycleListener >

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.

JDO Reference

  • JDOHelper
  • PersistenceManagerFactory
  • PersistenceManager
  • Transaction
  • Query
  • Extent
  • Annotations
  • Callbacks
  • Listeners
    • AttachLifecycleListener
    • ClearLifecycleListener
    • CreateLifecycleListener
    • DeleteLifecycleListener
    • DetachLifecycleListener
    • DirtyLifecycleListener
    • LoadLifecycleListener
    • StoreLifecycleListener
    • InstanceLifecycleEvent
    • InstanceLifecycleListener
  • Predefined ID Classes
  • Miscellaneous
  • Exceptions

Which JPA is Faster?

See a comparison of Hibernate, EclipseLink, OpenJPA, DataNucleus, MySQL, PostgreSQL, Derby, HSQLDB, DB4O by Versant, H2 Database, SQLite and ObjectDB

in the JPA Benchmark.

 

Copyright © 2010-2012 ObjectDB Software - All rights reserved -
Terms of Use

2012-05-15 16:13:43