コード例 #1
0
 @Override
 public int insertSelective(DevelopersDBO record) throws PlatformException {
   SqlSession session = this.getSqlSession();
   try {
     return this.getMapper(DevelopersDAO.class, session).insertSelective(record);
   } catch (PlatformException e) {
     log.error(e.getMessage(), e);
     throw new PlatformException(e);
   } finally {
     this.closeSqlSession(session);
   }
 }
コード例 #2
0
 @Override
 public DevelopersDBO selectByPrimaryKey(Long ddId) throws PlatformException {
   SqlSession session = this.getSqlSession();
   try {
     return this.getMapper(DevelopersDAO.class, session).selectByPrimaryKey(ddId);
   } catch (PlatformException e) {
     log.error(e.getMessage(), e);
     throw new PlatformException(e);
   } finally {
     this.closeSqlSession(session);
   }
 }
コード例 #3
0
 @Override
 public int deleteByExample(DevelopersDBOExample example) throws PlatformException {
   SqlSession session = this.getSqlSession();
   try {
     return this.getMapper(DevelopersDAO.class, session).deleteByExample(example);
   } catch (PlatformException e) {
     log.error(e.getMessage(), e);
     throw new PlatformException(e);
   } finally {
     this.closeSqlSession(session);
   }
 }