Package com.ibatis.sqlmap.engine.impl

Examples of com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl


      if (getLocalSqlMapSessionMethod == null) {
        getLocalSqlMapSessionMethod = raw.getClass().getDeclaredMethod(
            "getLocalSqlMapSession");
        getLocalSqlMapSessionMethod.setAccessible(true);
      }
      SqlMapSessionImpl sessionImpl = (SqlMapSessionImpl) getLocalSqlMapSessionMethod
          .invoke(raw);
      IbatisUtils.set(sessionImpl, this);
      return new SqlMapSessionWrapper(raw, sessionImpl);
    } catch (Exception e) {
      throw new IllegalStateException(e.getMessage(), e);
View Full Code Here


    @SuppressWarnings("deprecation")
    public void test_wrap() throws Exception {
        SqlMapClientImpl client = (SqlMapClientImpl) context.getBean("master-sqlMapClient");
        Assert.assertNotNull(client);

        SqlMapSessionImpl session = new SqlMapSessionImpl(client);
        SqlMapSessionWrapper wrapper = new SqlMapSessionWrapper(client, session);

        wrapper.startTransaction();
        wrapper.commitTransaction();
        wrapper.getDataSource();
View Full Code Here

        if (session == null || clientImplWrapper == null) {
            return session;
        }

        if (session.getClass() == SqlMapSessionImpl.class) {
            SqlMapSessionImpl sessionImpl = (SqlMapSessionImpl) session;
            set(sessionImpl, clientImplWrapper);
        }

        return session;
    }
View Full Code Here

      if (getLocalSqlMapSessionMethod == null) {
        getLocalSqlMapSessionMethod = raw.getClass().getDeclaredMethod(
            "getLocalSqlMapSession");
        getLocalSqlMapSessionMethod.setAccessible(true);
      }
      SqlMapSessionImpl sessionImpl = (SqlMapSessionImpl) getLocalSqlMapSessionMethod
          .invoke(raw);
      IbatisUtils.set(sessionImpl, this);
      return new SqlMapSessionWrapper(raw, sessionImpl);
    } catch (Exception e) {
      throw new IllegalStateException(e.getMessage(), e);
View Full Code Here

        if (session == null || clientImplWrapper == null) {
            return session;
        }

        if (session.getClass() == SqlMapSessionImpl.class) {
            SqlMapSessionImpl sessionImpl = (SqlMapSessionImpl) session;
            set(sessionImpl, clientImplWrapper);
        }

        return session;
    }
View Full Code Here

TOP

Related Classes of com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.