GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.hibernate
Class DefaultHibernateSpaceSynchronizationEndpointConfigurer

java.lang.Object
  extended by org.openspaces.persistency.hibernate.DefaultHibernateSpaceSynchronizationEndpointConfigurer

public class DefaultHibernateSpaceSynchronizationEndpointConfigurer
extends Object

A configurer class which is used to configure a DefaultHibernateSpaceSynchronizationEndpoint.

Since:
9.5
Author:
eitany

Constructor Summary
DefaultHibernateSpaceSynchronizationEndpointConfigurer()
           
 
Method Summary
 DefaultHibernateSpaceSynchronizationEndpoint create()
          Creates a DefaultHibernateSpaceSynchronizationEndpoint with the setup configuration.
 DefaultHibernateSpaceSynchronizationEndpointConfigurer deleteById(boolean deleteById)
          If set to true the object will be deleted using only its id.
 DefaultHibernateSpaceSynchronizationEndpointConfigurer managedEntries(String... entries)
          Sets all the entries this Hibernate synchronization endpoint interceptor will work with.
 DefaultHibernateSpaceSynchronizationEndpointConfigurer sessionFactory(org.hibernate.SessionFactory sessionFactory)
          Injects the Hibernate SessionFactory to be used with this synchronization endpoint interceptor.
 DefaultHibernateSpaceSynchronizationEndpointConfigurer useMerge(boolean useMerge)
          If set to true, will use Hibernate merge to perform the create/update, and will merge before calling delete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHibernateSpaceSynchronizationEndpointConfigurer

public DefaultHibernateSpaceSynchronizationEndpointConfigurer()
Method Detail

useMerge

public DefaultHibernateSpaceSynchronizationEndpointConfigurer useMerge(boolean useMerge)
If set to true, will use Hibernate merge to perform the create/update, and will merge before calling delete. This might be required for complex mappings (depends on Hibernate) at the expense of slower performance. Defaults to false.

Returns:

deleteById

public DefaultHibernateSpaceSynchronizationEndpointConfigurer deleteById(boolean deleteById)
If set to true the object will be deleted using only its id. If set to false the object will be deleted using the whole object. Defaults to true.

Parameters:
deleteById -
Returns:

sessionFactory

public DefaultHibernateSpaceSynchronizationEndpointConfigurer sessionFactory(org.hibernate.SessionFactory sessionFactory)
Injects the Hibernate SessionFactory to be used with this synchronization endpoint interceptor.


managedEntries

public DefaultHibernateSpaceSynchronizationEndpointConfigurer managedEntries(String... entries)
Sets all the entries this Hibernate synchronization endpoint interceptor will work with. By default, will use Hibernate meta data API in order to get the list of all the given entities it handles.

This list is used to filter out entities when performing all synchronization endpoint interceptor operations.

Usually, there is no need to explicitly set this.


create

public DefaultHibernateSpaceSynchronizationEndpoint create()
Creates a DefaultHibernateSpaceSynchronizationEndpoint with the setup configuration.


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.