public class DefaultHibernateSpaceSynchronizationEndpointConfigurer extends Object
DefaultHibernateSpaceSynchronizationEndpoint
.Constructor and Description |
---|
DefaultHibernateSpaceSynchronizationEndpointConfigurer() |
Modifier and Type | Method and Description |
---|---|
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. |
public DefaultHibernateSpaceSynchronizationEndpointConfigurer()
public DefaultHibernateSpaceSynchronizationEndpointConfigurer useMerge(boolean useMerge)
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
.public DefaultHibernateSpaceSynchronizationEndpointConfigurer deleteById(boolean deleteById)
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
.deleteById
- public DefaultHibernateSpaceSynchronizationEndpointConfigurer sessionFactory(org.hibernate.SessionFactory sessionFactory)
public DefaultHibernateSpaceSynchronizationEndpointConfigurer managedEntries(String... entries)
This list is used to filter out entities when performing all synchronization endpoint interceptor operations.
Usually, there is no need to explicitly set this.
public DefaultHibernateSpaceSynchronizationEndpoint create()
DefaultHibernateSpaceSynchronizationEndpoint
with the setup configuration.Copyright © GigaSpaces.