test_class.declarator: backUpInfoDao
test_class.modifier: private
test_class.original_string: private BackUpInfoDao backUpInfoDao;
test_class.type: BackUpInfoDao
test_class.var_name: backUpInfoDao
test_class.file: smart-metastore/src/test/java/org/smartdata/metastore/dao/TestBackUpInfoDao.java
test_class.identifier: TestBackUpInfoDao
test_class.superclass: extends TestDaoUtil
test_case.body: @Test
    public void testUpdate() {
      BackUpInfo backUpInfo = new BackUpInfo();
      backUpInfo.setRid(1);
      backUpInfo.setSrc("test");
      backUpInfo.setDest("test");
      backUpInfo.setPeriod(1);
  
      backUpInfoDao.insert(backUpInfo);
      backUpInfoDao.update(1, 2);
      backUpInfo.setPeriod(2);
      Assert.assertTrue(backUpInfoDao.getByRid(1).equals(backUpInfo));
    }
test_case.class_method_signature: TestBackUpInfoDao.testUpdate()
test_case.full_signature: @Test public void testUpdate()
test_case.identifier: testUpdate
test_case.invocations: setRid setSrc setDest setPeriod insert update setPeriod assertTrue equals getByRid
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdate()
focal_class.declarator: dataSource
focal_class.modifier: private
focal_class.original_string: private DataSource dataSource;
focal_class.type: DataSource
focal_class.var_name: dataSource
focal_class.file: smart-metastore/src/main/java/org/smartdata/metastore/dao/BackUpInfoDao.java
focal_class.identifier: BackUpInfoDao
focal_class.class_method_signature: BackUpInfoDao.setDataSource(DataSource dataSource)
focal_class.full_signature: public void setDataSource(DataSource dataSource)
focal_class.identifier: setDataSource
focal_class.modifiers: public
focal_class.parameters: (DataSource dataSource)
focal_class.return: void
focal_class.signature: void setDataSource(DataSource dataSource)
focal_class.class_method_signature: BackUpInfoDao.BackUpInfoDao(DataSource dataSource)
focal_class.full_signature: public  BackUpInfoDao(DataSource dataSource)
focal_class.identifier: BackUpInfoDao
focal_class.modifiers: public
focal_class.parameters: (DataSource dataSource)
focal_class.signature:  BackUpInfoDao(DataSource dataSource)
focal_class.class_method_signature: BackUpInfoDao.getAll()
focal_class.full_signature: public List<BackUpInfo> getAll()
focal_class.identifier: getAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<BackUpInfo>
focal_class.signature: List<BackUpInfo> getAll()
focal_class.class_method_signature: BackUpInfoDao.getByIds(List<Long> rids)
focal_class.full_signature: public List<BackUpInfo> getByIds(List<Long> rids)
focal_class.identifier: getByIds
focal_class.modifiers: public
focal_class.parameters: (List<Long> rids)
focal_class.return: List<BackUpInfo>
focal_class.signature: List<BackUpInfo> getByIds(List<Long> rids)
focal_class.class_method_signature: BackUpInfoDao.getCountByRid(int rid)
focal_class.full_signature: public int getCountByRid(int rid)
focal_class.identifier: getCountByRid
focal_class.modifiers: public
focal_class.parameters: (int rid)
focal_class.return: int
focal_class.signature: int getCountByRid(int rid)
focal_class.class_method_signature: BackUpInfoDao.getByRid(long rid)
focal_class.full_signature: public BackUpInfo getByRid(long rid)
focal_class.identifier: getByRid
focal_class.modifiers: public
focal_class.parameters: (long rid)
focal_class.return: BackUpInfo
focal_class.signature: BackUpInfo getByRid(long rid)
focal_class.class_method_signature: BackUpInfoDao.getBySrc(String src)
focal_class.full_signature: public List<BackUpInfo> getBySrc(String src)
focal_class.identifier: getBySrc
focal_class.modifiers: public
focal_class.parameters: (String src)
focal_class.return: List<BackUpInfo>
focal_class.signature: List<BackUpInfo> getBySrc(String src)
focal_class.class_method_signature: BackUpInfoDao.getByDest(String dest)
focal_class.full_signature: public List<BackUpInfo> getByDest(String dest)
focal_class.identifier: getByDest
focal_class.modifiers: public
focal_class.parameters: (String dest)
focal_class.return: List<BackUpInfo>
focal_class.signature: List<BackUpInfo> getByDest(String dest)
focal_class.class_method_signature: BackUpInfoDao.delete(long rid)
focal_class.full_signature: public void delete(long rid)
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: (long rid)
focal_class.return: void
focal_class.signature: void delete(long rid)
focal_class.class_method_signature: BackUpInfoDao.insert(BackUpInfo backUpInfo)
focal_class.full_signature: public void insert(BackUpInfo backUpInfo)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (BackUpInfo backUpInfo)
focal_class.return: void
focal_class.signature: void insert(BackUpInfo backUpInfo)
focal_class.class_method_signature: BackUpInfoDao.insert(BackUpInfo[] backUpInfos)
focal_class.full_signature: public void insert(BackUpInfo[] backUpInfos)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (BackUpInfo[] backUpInfos)
focal_class.return: void
focal_class.signature: void insert(BackUpInfo[] backUpInfos)
focal_class.class_method_signature: BackUpInfoDao.update(long rid, long period)
focal_class.full_signature: public int update(long rid, long period)
focal_class.identifier: update
focal_class.modifiers: public
focal_class.parameters: (long rid, long period)
focal_class.return: int
focal_class.signature: int update(long rid, long period)
focal_class.class_method_signature: BackUpInfoDao.deleteAll()
focal_class.full_signature: public void deleteAll()
focal_class.identifier: deleteAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deleteAll()
focal_class.class_method_signature: BackUpInfoDao.toMap(BackUpInfo backUpInfo)
focal_class.full_signature: private Map<String, Object> toMap(BackUpInfo backUpInfo)
focal_class.identifier: toMap
focal_class.modifiers: private
focal_class.parameters: (BackUpInfo backUpInfo)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> toMap(BackUpInfo backUpInfo)
focal_method.body: public int update(long rid, long period) {
      JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
      String sql = "UPDATE backup_file SET period = ? WHERE rid = ?";
      return jdbcTemplate.update(sql, period, rid);
    }
focal_method.class_method_signature: BackUpInfoDao.update(long rid, long period)
focal_method.full_signature: public int update(long rid, long period)
focal_method.identifier: update
focal_method.invocations: update
focal_method.modifiers: public
focal_method.parameters: (long rid, long period)
focal_method.return: int
focal_method.signature: int update(long rid, long period)