Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public <T extends org.camunda.bpm.engine.impl.db.DbEntity> T selectById(Class<T> type, String id)
        public override T selectById <T>(Type type, string id) where T : org.camunda.bpm.engine.impl.db.DbEntity
        {
            type = typeof(T);
            string selectStatement = dbSqlSessionFactory.getSelectStatement(type);

            selectStatement = dbSqlSessionFactory.mapStatement(selectStatement);
            ensureNotNull("no select statement for " + type + " in the ibatis mapping files", "selectStatement", selectStatement);

            object result = sqlSession.selectOne(selectStatement, id);

            fireEntityLoaded(result);
            return((T)result);
        }
Esempio n. 2
0
 public virtual T selectOne <T>(string statement)
 {
     return(wrappedSession.selectOne(statement));
 }