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 SummaryConstructorsConstructorDescriptionEntityFactoryImpl(SessionFactoryManager sessionFactoryManager, NiceDataModel dataModel, Context context, TypeManager typeManager, EntityInterceptorFactory entityInterceptorFactory, FieldResolver fieldResolver, EntityFacadeListenerManager entityFacadeListenerManager, EntityTransactionContext entityTransactionContext, CollectionInitializationService collectionInitializationService, PropertyAccessorService propertyAccessorService, EntityValidationService entityValidationService) 
- 
Method SummaryModifier and TypeMethodDescription<T> TcreateInstance(Class<T> clazz, @Nullable Serializable id) Instantiate an entityvoidsetEntityCreationListeners(List<EntityCreationListener> entityCreationListeners) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.impl.hibernate.pojo.EntityFactorycreateInstance
- 
Constructor Details- 
EntityFactoryImplpublic 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) 
- 
createInstanceDescription copied from interface:EntityFactoryInstantiate an entity- Specified by:
- createInstancein interface- EntityFactory
- Parameters:
- clazz- Class of the entity
- id- id of the entity
 
 
-