public class DefaultHibernateSpaceSynchronizationEndpointFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<DefaultHibernateSpaceSynchronizationEndpoint>, org.springframework.beans.factory.InitializingBean
DefaultHibernateSpaceSynchronizationEndpoint
Constructor and Description |
---|
DefaultHibernateSpaceSynchronizationEndpointFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected DefaultHibernateSpaceSynchronizationEndpointConfigurer |
getConfigurer() |
DefaultHibernateSpaceSynchronizationEndpoint |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setDeleteById(boolean deleteById)
If set to
true the object will be deleted using only its id. |
void |
setManagedEntries(String... entries)
Sets all the entries this Hibernate synchronization endpoint interceptor will work with.
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Injects the Hibernate SessionFactory to be used with this synchronization endpoint
interceptor.
|
void |
setUseMerge(boolean useMerge)
If set to
true , will use Hibernate merge to perform the
create/update, and will merge before calling delete. |
public DefaultHibernateSpaceSynchronizationEndpointFactoryBean()
protected DefaultHibernateSpaceSynchronizationEndpointConfigurer getConfigurer()
public void setUseMerge(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 void setDeleteById(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
.public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void setManagedEntries(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 void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public DefaultHibernateSpaceSynchronizationEndpoint getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<DefaultHibernateSpaceSynchronizationEndpoint>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<DefaultHibernateSpaceSynchronizationEndpoint>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<DefaultHibernateSpaceSynchronizationEndpoint>
Copyright © GigaSpaces.