test_class.declarator: systemInfoDao
test_class.modifier: private
test_class.original_string: private SystemInfoDao systemInfoDao;
test_class.type: SystemInfoDao
test_class.var_name: systemInfoDao
test_class.file: smart-metastore/src/test/java/org/smartdata/metastore/dao/TestSystemInfoDao.java
test_class.identifier: TestSystemInfoDao
test_class.superclass: extends TestDaoUtil
test_case.body: @Test
    public void testUpdate() {
      SystemInfo systemInfo = new SystemInfo("test", "test");
      systemInfoDao.insert(systemInfo);
  
      SystemInfo newSystemInfo = new SystemInfo("test", "test1");
      systemInfoDao.update(newSystemInfo);
      Assert.assertTrue(systemInfoDao.getByProperty("test").equals(newSystemInfo));
    }
test_case.class_method_signature: TestSystemInfoDao.testUpdate()
test_case.full_signature: @Test public void testUpdate()
test_case.identifier: testUpdate
test_case.invocations: insert update assertTrue equals getByProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdate()
focal_class.declarator: TABLE_NAME = "sys_info"
focal_class.modifier: private static final
focal_class.original_string: private static final String TABLE_NAME = "sys_info";
focal_class.type: String
focal_class.var_name: TABLE_NAME
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/SystemInfoDao.java
focal_class.identifier: SystemInfoDao
focal_class.class_method_signature: SystemInfoDao.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: SystemInfoDao.SystemInfoDao(DataSource dataSource)
focal_class.full_signature: public  SystemInfoDao(DataSource dataSource)
focal_class.identifier: SystemInfoDao
focal_class.modifiers: public
focal_class.parameters: (DataSource dataSource)
focal_class.signature:  SystemInfoDao(DataSource dataSource)
focal_class.class_method_signature: SystemInfoDao.getAll()
focal_class.full_signature: public List<SystemInfo> getAll()
focal_class.identifier: getAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<SystemInfo>
focal_class.signature: List<SystemInfo> getAll()
focal_class.class_method_signature: SystemInfoDao.containsProperty(String property)
focal_class.full_signature: public boolean containsProperty(String property)
focal_class.identifier: containsProperty
focal_class.modifiers: public
focal_class.parameters: (String property)
focal_class.return: boolean
focal_class.signature: boolean containsProperty(String property)
focal_class.class_method_signature: SystemInfoDao.list(String property)
focal_class.full_signature: private List<SystemInfo> list(String property)
focal_class.identifier: list
focal_class.modifiers: private
focal_class.parameters: (String property)
focal_class.return: List<SystemInfo>
focal_class.signature: List<SystemInfo> list(String property)
focal_class.class_method_signature: SystemInfoDao.getByProperty(String property)
focal_class.full_signature: public SystemInfo getByProperty(String property)
focal_class.identifier: getByProperty
focal_class.modifiers: public
focal_class.parameters: (String property)
focal_class.return: SystemInfo
focal_class.signature: SystemInfo getByProperty(String property)
focal_class.class_method_signature: SystemInfoDao.getByProperties(List<String> properties)
focal_class.full_signature: public List<SystemInfo> getByProperties(List<String> properties)
focal_class.identifier: getByProperties
focal_class.modifiers: public
focal_class.parameters: (List<String> properties)
focal_class.return: List<SystemInfo>
focal_class.signature: List<SystemInfo> getByProperties(List<String> properties)
focal_class.class_method_signature: SystemInfoDao.delete(String property)
focal_class.full_signature: public void delete(String property)
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: (String property)
focal_class.return: void
focal_class.signature: void delete(String property)
focal_class.class_method_signature: SystemInfoDao.insert(SystemInfo systemInfo)
focal_class.full_signature: public void insert(SystemInfo systemInfo)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (SystemInfo systemInfo)
focal_class.return: void
focal_class.signature: void insert(SystemInfo systemInfo)
focal_class.class_method_signature: SystemInfoDao.insert(SystemInfo[] systemInfos)
focal_class.full_signature: public void insert(SystemInfo[] systemInfos)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (SystemInfo[] systemInfos)
focal_class.return: void
focal_class.signature: void insert(SystemInfo[] systemInfos)
focal_class.class_method_signature: SystemInfoDao.update(SystemInfo systemInfo)
focal_class.full_signature: public int update(SystemInfo systemInfo)
focal_class.identifier: update
focal_class.modifiers: public
focal_class.parameters: (SystemInfo systemInfo)
focal_class.return: int
focal_class.signature: int update(SystemInfo systemInfo)
focal_class.class_method_signature: SystemInfoDao.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: SystemInfoDao.toMap(SystemInfo systemInfo)
focal_class.full_signature: private Map<String, Object> toMap(SystemInfo systemInfo)
focal_class.identifier: toMap
focal_class.modifiers: private
focal_class.parameters: (SystemInfo systemInfo)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> toMap(SystemInfo systemInfo)
focal_method.body: public int update(SystemInfo systemInfo) {
      JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
      String sql = "UPDATE " + TABLE_NAME + " SET value = ? WHERE property = ?";
      return jdbcTemplate.update(sql, systemInfo.getValue(), systemInfo.getProperty());
    }
focal_method.class_method_signature: SystemInfoDao.update(SystemInfo systemInfo)
focal_method.full_signature: public int update(SystemInfo systemInfo)
focal_method.identifier: update
focal_method.invocations: update getValue getProperty
focal_method.modifiers: public
focal_method.parameters: (SystemInfo systemInfo)
focal_method.return: int
focal_method.signature: int update(SystemInfo systemInfo)