Class EntityFactoryImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.pojo.EntityFactoryImpl
- All Implemented Interfaces:
EntityFactory
Creates an instance with the default constructor and injects the required services.
-
Constructor Summary
ConstructorDescriptionEntityFactoryImpl
(SessionFactoryManager sessionFactoryManager, NiceDataModel dataModel, Context context, TypeManager typeManager, EntityInterceptorFactory entityInterceptorFactory, FieldResolver fieldResolver, EntityFacadeListenerManager entityFacadeListenerManager, EntityTransactionContext entityTransactionContext, CollectionInitializationService collectionInitializationService, PropertyAccessorService propertyAccessorService, EntityValidationService entityValidationService) -
Method Summary
Modifier and TypeMethodDescription<T> T
createInstance
(Class<T> clazz, @Nullable Serializable id) Instantiate an entityvoid
setEntityCreationListeners
(List<EntityCreationListener> entityCreationListeners) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.impl.hibernate.pojo.EntityFactory
createInstance
-
Constructor Details
-
EntityFactoryImpl
public EntityFactoryImpl(SessionFactoryManager sessionFactoryManager, NiceDataModel dataModel, Context context, TypeManager typeManager, EntityInterceptorFactory entityInterceptorFactory, FieldResolver fieldResolver, EntityFacadeListenerManager entityFacadeListenerManager, EntityTransactionContext entityTransactionContext, CollectionInitializationService collectionInitializationService, PropertyAccessorService propertyAccessorService, EntityValidationService entityValidationService)
-
-
Method Details
-
setEntityCreationListeners
@Autowired public void setEntityCreationListeners(List<EntityCreationListener> entityCreationListeners) -
createInstance
Description copied from interface:EntityFactory
Instantiate an entity- Specified by:
createInstance
in interfaceEntityFactory
- Parameters:
clazz
- Class of the entityid
- id of the entity
-