test_class.declarator: service
test_class.original_string: DistributedLockServiceMySqlImpl service;
test_class.type: DistributedLockServiceMySqlImpl
test_class.var_name: service
test_class.declarator: dataSource
test_class.original_string: DataSource dataSource;
test_class.type: DataSource
test_class.var_name: dataSource
test_class.declarator: template
test_class.original_string: JdbcTemplate template;
test_class.type: JdbcTemplate
test_class.var_name: template
test_class.file: micro-mysql/src/test/java/com/oath/micro/server/mysql/distlock/DistributedLockServiceMySqlImplTest.java
test_class.identifier: DistributedLockServiceMySqlImplTest
test_case.body: @Test
  	public void setDataSourceNull() {
  		service.setSmartDataSource(null);
  		assertThat(service.jdbcTemplate, is(template));
  	}
test_case.class_method_signature: DistributedLockServiceMySqlImplTest.setDataSourceNull()
test_case.full_signature: @Test public void setDataSourceNull()
test_case.identifier: setDataSourceNull
test_case.invocations: setSmartDataSource assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void setDataSourceNull()
focal_class.declarator: GET_LOCK_TEMPLATE = "select COALESCE(GET_LOCK(?, 0), 0)"
focal_class.modifier: static final
focal_class.original_string: static final String GET_LOCK_TEMPLATE = "select COALESCE(GET_LOCK(?, 0), 0)";
focal_class.type: String
focal_class.var_name: GET_LOCK_TEMPLATE
focal_class.declarator: RELEASE_LOCK_TEMPLATE = "select COALESCE(RELEASE_LOCK(?), 0)"
focal_class.modifier: static final
focal_class.original_string: static final String RELEASE_LOCK_TEMPLATE = "select COALESCE(RELEASE_LOCK(?), 0)";
focal_class.type: String
focal_class.var_name: RELEASE_LOCK_TEMPLATE
focal_class.declarator: jdbcTemplate
focal_class.modifier: volatile
focal_class.original_string: volatile JdbcTemplate jdbcTemplate;
focal_class.type: JdbcTemplate
focal_class.var_name: jdbcTemplate
focal_class.file: micro-mysql/src/main/java/com/oath/micro/server/mysql/distlock/DistributedLockServiceMySqlImpl.java
focal_class.identifier: DistributedLockServiceMySqlImpl
focal_class.interfaces: implements DistributedLockService
focal_class.class_method_signature: DistributedLockServiceMySqlImpl.setSmartDataSource(DataSource dataSource)
focal_class.full_signature: @Autowired(required = false) @Qualifier("distLockingDataSource") public void setSmartDataSource(DataSource dataSource)
focal_class.identifier: setSmartDataSource
focal_class.modifiers: @Autowired(required = false) @Qualifier("distLockingDataSource") public
focal_class.parameters: (DataSource dataSource)
focal_class.return: void
focal_class.signature: void setSmartDataSource(DataSource dataSource)
focal_class.class_method_signature: DistributedLockServiceMySqlImpl.tryLock(String key)
focal_class.full_signature: @Override public boolean tryLock(String key)
focal_class.identifier: tryLock
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean tryLock(String key)
focal_class.class_method_signature: DistributedLockServiceMySqlImpl.tryReleaseLock(String key)
focal_class.full_signature: @Override public boolean tryReleaseLock(String key)
focal_class.identifier: tryReleaseLock
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean tryReleaseLock(String key)
focal_class.class_method_signature: DistributedLockServiceMySqlImpl.executeScalar(String operation, String key, Integer expectedResult)
focal_class.full_signature: synchronized boolean executeScalar(String operation, String key, Integer expectedResult)
focal_class.identifier: executeScalar
focal_class.modifiers: synchronized
focal_class.parameters: (String operation, String key, Integer expectedResult)
focal_class.return: boolean
focal_class.signature: boolean executeScalar(String operation, String key, Integer expectedResult)
focal_class.class_method_signature: DistributedLockServiceMySqlImpl.setJdbcTemplate(JdbcTemplate jdbcTemplate)
focal_class.full_signature: public void setJdbcTemplate(JdbcTemplate jdbcTemplate)
focal_class.identifier: setJdbcTemplate
focal_class.modifiers: public
focal_class.parameters: (JdbcTemplate jdbcTemplate)
focal_class.return: void
focal_class.signature: void setJdbcTemplate(JdbcTemplate jdbcTemplate)
focal_method.body: @Autowired(required = false)
      @Qualifier("distLockingDataSource")
      public void setSmartDataSource(DataSource dataSource) {
          if (dataSource != null)
              this.jdbcTemplate = new JdbcTemplate(
                                                   dataSource);
      }
focal_method.class_method_signature: DistributedLockServiceMySqlImpl.setSmartDataSource(DataSource dataSource)
focal_method.full_signature: @Autowired(required = false) @Qualifier("distLockingDataSource") public void setSmartDataSource(DataSource dataSource)
focal_method.identifier: setSmartDataSource
focal_method.modifiers: @Autowired(required = false) @Qualifier("distLockingDataSource") public
focal_method.parameters: (DataSource dataSource)
focal_method.return: void
focal_method.signature: void setSmartDataSource(DataSource dataSource)