Пример #1
0
        // lock ////////////////////////////////////////////

        public override void @lock(string statement, object parameter)
        {
            // do not perform locking if H2 database is used. H2 uses table level locks
            // by default which may cause deadlocks if the deploy command needs to get a new
            // Id using the DbIdGenerator while performing a deployment.
            if (!DbSqlSessionFactory.H2.Equals(dbSqlSessionFactory.DatabaseType))
            {
                string mappedStatement = dbSqlSessionFactory.mapStatement(statement);
                if (!Context.ProcessEngineConfiguration.JdbcBatchProcessing)
                {
                    sqlSession.update(mappedStatement, parameter);
                }
                else
                {
                    sqlSession.selectList(mappedStatement, parameter);
                }
            }
        }
Пример #2
0
 public virtual int update(string statement)
 {
     return(wrappedSession.update(statement));
 }