Class DbSqlSessionFactory

  • All Implemented Interfaces:
    org.activiti.engine.impl.interceptor.SessionFactory

    public class DbSqlSessionFactory
    extends Object
    implements org.activiti.engine.impl.interceptor.SessionFactory
    Author:
    Tom Baeyens
    • Field Detail

      • databaseSpecificLimitBeforeStatements

        public static final Map<String,​String> databaseSpecificLimitBeforeStatements
      • databaseSpecificLimitAfterStatements

        public static final Map<String,​String> databaseSpecificLimitAfterStatements
      • databaseSpecificLimitBetweenStatements

        public static final Map<String,​String> databaseSpecificLimitBetweenStatements
      • databaseSpecificOrderByStatements

        public static final Map<String,​String> databaseSpecificOrderByStatements
      • databaseOuterJoinLimitBetweenStatements

        public static final Map<String,​String> databaseOuterJoinLimitBetweenStatements
      • databaseSpecificLimitBeforeNativeQueryStatements

        public static final Map<String,​String> databaseSpecificLimitBeforeNativeQueryStatements
    • Constructor Detail

      • DbSqlSessionFactory

        public DbSqlSessionFactory()
    • Method Detail

      • getSessionType

        public Class<?> getSessionType()
        Specified by:
        getSessionType in interface org.activiti.engine.impl.interceptor.SessionFactory
      • openSession

        public org.activiti.engine.impl.interceptor.Session openSession()
        Specified by:
        openSession in interface org.activiti.engine.impl.interceptor.SessionFactory
      • getInsertStatement

        public String getInsertStatement​(org.activiti.engine.impl.db.PersistentObject object)
      • getInsertStatement

        public String getInsertStatement​(Class<? extends org.activiti.engine.impl.db.PersistentObject> clazz)
      • getBulkInsertStatement

        public String getBulkInsertStatement​(Class clazz)
      • getUpdateStatement

        public String getUpdateStatement​(org.activiti.engine.impl.db.PersistentObject object)
      • getDeleteStatement

        public String getDeleteStatement​(Class<?> persistentObjectClass)
      • getBulkDeleteStatement

        public String getBulkDeleteStatement​(Class<?> persistentObjectClass)
      • getSelectStatement

        public String getSelectStatement​(Class<?> persistentObjectClass)
      • mapStatement

        public String mapStatement​(String statement)
      • setDatabaseType

        public void setDatabaseType​(String databaseType)
      • setBulkInsertEnabled

        public void setBulkInsertEnabled​(boolean isBulkInsertEnabled,
                                         String databaseType)
      • isBulkInsertable

        public Boolean isBulkInsertable​(Class<? extends org.activiti.engine.impl.db.PersistentObject> persistentObjectClass)
      • getSqlSessionFactory

        public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
      • setSqlSessionFactory

        public void setSqlSessionFactory​(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
      • getIdGenerator

        public org.activiti.engine.impl.cfg.IdGenerator getIdGenerator()
      • setIdGenerator

        public void setIdGenerator​(org.activiti.engine.impl.cfg.IdGenerator idGenerator)
      • getDatabaseType

        public String getDatabaseType()
      • getStatementMappings

        public Map<String,​String> getStatementMappings()
      • setStatementMappings

        public void setStatementMappings​(Map<String,​String> statementMappings)
      • getInsertStatements

        public Map<Class<?>,​String> getInsertStatements()
      • setInsertStatements

        public void setInsertStatements​(Map<Class<?>,​String> insertStatements)
      • getBulkInsertStatements

        public Map<Class<?>,​String> getBulkInsertStatements()
      • setBulkInsertStatements

        public void setBulkInsertStatements​(Map<Class<?>,​String> bulkInsertStatements)
      • getUpdateStatements

        public Map<Class<?>,​String> getUpdateStatements()
      • setUpdateStatements

        public void setUpdateStatements​(Map<Class<?>,​String> updateStatements)
      • getDeleteStatements

        public Map<Class<?>,​String> getDeleteStatements()
      • setDeleteStatements

        public void setDeleteStatements​(Map<Class<?>,​String> deleteStatements)
      • getBulkDeleteStatements

        public Map<Class<?>,​String> getBulkDeleteStatements()
      • setBulkDeleteStatements

        public void setBulkDeleteStatements​(Map<Class<?>,​String> bulkDeleteStatements)
      • getSelectStatements

        public Map<Class<?>,​String> getSelectStatements()
      • setSelectStatements

        public void setSelectStatements​(Map<Class<?>,​String> selectStatements)
      • isDbIdentityUsed

        public boolean isDbIdentityUsed()
      • setDbIdentityUsed

        public void setDbIdentityUsed​(boolean isDbIdentityUsed)
      • isDbHistoryUsed

        public boolean isDbHistoryUsed()
      • setDbHistoryUsed

        public void setDbHistoryUsed​(boolean isDbHistoryUsed)
      • setDatabaseTablePrefix

        public void setDatabaseTablePrefix​(String databaseTablePrefix)
      • getDatabaseTablePrefix

        public String getDatabaseTablePrefix()
      • getDatabaseCatalog

        public String getDatabaseCatalog()
      • setDatabaseCatalog

        public void setDatabaseCatalog​(String databaseCatalog)
      • getDatabaseSchema

        public String getDatabaseSchema()
      • setDatabaseSchema

        public void setDatabaseSchema​(String databaseSchema)
      • setTablePrefixIsSchema

        public void setTablePrefixIsSchema​(boolean tablePrefixIsSchema)
      • isTablePrefixIsSchema

        public boolean isTablePrefixIsSchema()
      • getMaxNrOfStatementsInBulkInsert

        public int getMaxNrOfStatementsInBulkInsert()
      • setMaxNrOfStatementsInBulkInsert

        public void setMaxNrOfStatementsInBulkInsert​(int maxNrOfStatementsInBulkInsert)