类 AbstractFlushingEventListener

    • 构造器详细资料

      • AbstractFlushingEventListener

        public AbstractFlushingEventListener()
    • 方法详细资料

      • flushEverythingToExecutions

        protected void flushEverythingToExecutions​(FlushEvent event)
                                            throws HibernateException
        Coordinates the processing necessary to get things ready for executions as db calls by preping the session caches and moving the appropriate entities and collections to their respective execution queues.
        参数:
        event - The flush event.
        抛出:
        HibernateException - Error flushing caches to execution queues.
      • getAnything

        protected Object getAnything()
      • performExecutions

        protected void performExecutions​(EventSource session)
        Execute all SQL (and second-level cache updates) in a special order so that foreign-key constraints cannot be violated:
        1. Inserts, in the order they were performed
        2. Updates
        3. Deletion of collection elements
        4. Insertion of collection elements
        5. Deletes, in the order they were performed
        参数:
        session - The session being flushed