org.activiti.engine.impl.interceptor.SessionFactory Java Examples
The following examples show how to use
org.activiti.engine.impl.interceptor.SessionFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReplaceMembershipManager.java From openwebflow with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void beforeStartEngine(ProcessEngineConfigurationImpl conf) { List<SessionFactory> sessionFactories = new ArrayList<SessionFactory>(); sessionFactories.add(new SessionedEntityManagerFactory(UserIdentityManager.class, new DummyUserIdentityManager( _customMembershipManager))); sessionFactories.add(new SessionedEntityManagerFactory(GroupIdentityManager.class, new DummyGroupIdentityManager(_customMembershipManager))); sessionFactories.add(new SessionedEntityManagerFactory(MembershipIdentityManager.class, new DummyMembershipIdentityManager())); conf.setCustomSessionFactories(sessionFactories); }
Example #2
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
protected void initSessionFactories() { if (sessionFactories == null) { sessionFactories = new HashMap<>(); if (dbSqlSessionFactory == null) { dbSqlSessionFactory = new DbSqlSessionFactory(); } dbSqlSessionFactory.setDatabaseType(databaseType); dbSqlSessionFactory.setIdGenerator(idGenerator); dbSqlSessionFactory.setSqlSessionFactory(sqlSessionFactory); dbSqlSessionFactory.setDbHistoryUsed(isDbHistoryUsed); dbSqlSessionFactory.setDatabaseTablePrefix(databaseTablePrefix); dbSqlSessionFactory.setTablePrefixIsSchema(tablePrefixIsSchema); dbSqlSessionFactory.setDatabaseCatalog(databaseCatalog); dbSqlSessionFactory.setDatabaseSchema(databaseSchema); dbSqlSessionFactory.setBulkInsertEnabled(isBulkInsertEnabled, databaseType); dbSqlSessionFactory.setMaxNrOfStatementsInBulkInsert(maxNrOfStatementsInBulkInsert); addSessionFactory(dbSqlSessionFactory); addSessionFactory(new GenericManagerFactory(AttachmentEntityManager.class)); addSessionFactory(new GenericManagerFactory(CommentEntityManager.class)); addSessionFactory(new GenericManagerFactory(DeadLetterJobEntityManager.class)); addSessionFactory(new GenericManagerFactory(DeploymentEntityManager.class)); addSessionFactory(new GenericManagerFactory(ModelEntityManager.class)); addSessionFactory(new GenericManagerFactory(ExecutionEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricActivityInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricDetailEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricProcessInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricVariableInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricTaskInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricIdentityLinkEntityManager.class)); addSessionFactory(new GenericManagerFactory(IdentityLinkEntityManager.class)); addSessionFactory(new GenericManagerFactory(JobEntityManager.class)); addSessionFactory(new GenericManagerFactory(ProcessDefinitionEntityManager.class)); addSessionFactory(new GenericManagerFactory(ProcessDefinitionInfoEntityManager.class)); addSessionFactory(new GenericManagerFactory(PropertyEntityManager.class)); addSessionFactory(new GenericManagerFactory(ResourceEntityManager.class)); addSessionFactory(new GenericManagerFactory(ByteArrayEntityManager.class)); addSessionFactory(new GenericManagerFactory(SuspendedJobEntityManager.class)); addSessionFactory(new GenericManagerFactory(TableDataManager.class)); addSessionFactory(new GenericManagerFactory(TaskEntityManager.class)); addSessionFactory(new GenericManagerFactory(TimerJobEntityManager.class)); addSessionFactory(new GenericManagerFactory(VariableInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(EventSubscriptionEntityManager.class)); addSessionFactory(new GenericManagerFactory(EventLogEntryEntityManager.class)); addSessionFactory(new DefaultHistoryManagerSessionFactory()); } if (customSessionFactories != null) { for (SessionFactory sessionFactory : customSessionFactories) { addSessionFactory(sessionFactory); } } }
Example #3
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
protected void addSessionFactory(SessionFactory sessionFactory) { sessionFactories.put(sessionFactory.getSessionType(), sessionFactory); }
Example #4
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
public Map<Class<?>, SessionFactory> getSessionFactories() { return sessionFactories; }
Example #5
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
public ProcessEngineConfigurationImpl setSessionFactories(Map<Class<?>, SessionFactory> sessionFactories) { this.sessionFactories = sessionFactories; return this; }
Example #6
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
public List<SessionFactory> getCustomSessionFactories() { return customSessionFactories; }
Example #7
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
public ProcessEngineConfigurationImpl setCustomSessionFactories(List<SessionFactory> customSessionFactories) { this.customSessionFactories = customSessionFactories; return this; }