Interface PersisterFactory

    • Method Detail

      • createEntityPersister

        EntityPersister createEntityPersister​(PersistentClass entityBinding,
                                              EntityDataAccess entityCacheAccessStrategy,
                                              NaturalIdDataAccess naturalIdCacheAccessStrategy,
                                              PersisterCreationContext creationContext)
                                       throws HibernateException
        Create an entity persister instance.
        Parameters:
        entityBinding - The mapping information describing the entity
        entityCacheAccessStrategy - The cache access strategy for the entity region
        naturalIdCacheAccessStrategy - The cache access strategy for the entity's natural-id cross-ref region
        creationContext - Access to additional information needed to create an EntityPersister
        Returns:
        An appropriate entity persister instance.
        Throws:
        HibernateException - Indicates a problem building the persister.
      • createCollectionPersister

        CollectionPersister createCollectionPersister​(Collection collectionBinding,
                                                      CollectionDataAccess cacheAccessStrategy,
                                                      PersisterCreationContext creationContext)
                                               throws HibernateException
        Create a collection persister instance.
        Parameters:
        collectionBinding - The mapping information describing the collection
        cacheAccessStrategy - The cache access strategy for the collection region
        creationContext - Access to additional information needed to create an EntityPersister
        Returns:
        An appropriate collection persister instance.
        Throws:
        HibernateException - Indicates a problem building the persister.