test_class.declarator: ecPolicyDao
test_class.modifier: private
test_class.original_string: private ErasureCodingPolicyDao ecPolicyDao;
test_class.type: ErasureCodingPolicyDao
test_class.var_name: ecPolicyDao
test_class.file: smart-metastore/src/test/java/org/smartdata/metastore/dao/TestErasureCodingPolicyDao.java
test_class.identifier: TestErasureCodingPolicyDao
test_class.superclass: extends TestDaoUtil
test_case.body: @Test
    public void testInsert() throws Exception {
      ErasureCodingPolicyInfo ecPolicyInfo = new ErasureCodingPolicyInfo((byte) 2, "PolicyInfo1");
      ecPolicyDao.insert(ecPolicyInfo);
      Assert.assertTrue(ecPolicyDao.getEcPolicyByName("PolicyInfo1").equals(ecPolicyInfo));
      Assert.assertTrue(ecPolicyDao.getEcPolicyById((byte) 2).equals(ecPolicyInfo));
    }
test_case.class_method_signature: TestErasureCodingPolicyDao.testInsert()
test_case.full_signature: @Test public void testInsert()
test_case.identifier: testInsert
test_case.invocations: insert assertTrue equals getEcPolicyByName assertTrue equals getEcPolicyById
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInsert()
focal_class.declarator: TABLE_NAME = "ec_policy"
focal_class.modifier: private static final
focal_class.original_string: private static final String TABLE_NAME = "ec_policy";
focal_class.type: String
focal_class.var_name: TABLE_NAME
focal_class.declarator: ID = "id"
focal_class.modifier: private static final
focal_class.original_string: private static final String ID = "id";
focal_class.type: String
focal_class.var_name: ID
focal_class.declarator: NAME = "policy_name"
focal_class.modifier: private static final
focal_class.original_string: private static final String NAME = "policy_name";
focal_class.type: String
focal_class.var_name: 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/ErasureCodingPolicyDao.java
focal_class.identifier: ErasureCodingPolicyDao
focal_class.class_method_signature: ErasureCodingPolicyDao.ErasureCodingPolicyDao(DataSource dataSource)
focal_class.full_signature: public  ErasureCodingPolicyDao(DataSource dataSource)
focal_class.identifier: ErasureCodingPolicyDao
focal_class.modifiers: public
focal_class.parameters: (DataSource dataSource)
focal_class.signature:  ErasureCodingPolicyDao(DataSource dataSource)
focal_class.class_method_signature: ErasureCodingPolicyDao.getEcPolicyById(byte id)
focal_class.full_signature: public ErasureCodingPolicyInfo getEcPolicyById(byte id)
focal_class.identifier: getEcPolicyById
focal_class.modifiers: public
focal_class.parameters: (byte id)
focal_class.return: ErasureCodingPolicyInfo
focal_class.signature: ErasureCodingPolicyInfo getEcPolicyById(byte id)
focal_class.class_method_signature: ErasureCodingPolicyDao.getEcPolicyByName(String policyName)
focal_class.full_signature: public ErasureCodingPolicyInfo getEcPolicyByName(String policyName)
focal_class.identifier: getEcPolicyByName
focal_class.modifiers: public
focal_class.parameters: (String policyName)
focal_class.return: ErasureCodingPolicyInfo
focal_class.signature: ErasureCodingPolicyInfo getEcPolicyByName(String policyName)
focal_class.class_method_signature: ErasureCodingPolicyDao.getAllEcPolicies()
focal_class.full_signature: public List<ErasureCodingPolicyInfo> getAllEcPolicies()
focal_class.identifier: getAllEcPolicies
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<ErasureCodingPolicyInfo>
focal_class.signature: List<ErasureCodingPolicyInfo> getAllEcPolicies()
focal_class.class_method_signature: ErasureCodingPolicyDao.insert(ErasureCodingPolicyInfo ecPolicy)
focal_class.full_signature: public void insert(ErasureCodingPolicyInfo ecPolicy)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (ErasureCodingPolicyInfo ecPolicy)
focal_class.return: void
focal_class.signature: void insert(ErasureCodingPolicyInfo ecPolicy)
focal_class.class_method_signature: ErasureCodingPolicyDao.insert(List<ErasureCodingPolicyInfo> ecInfos)
focal_class.full_signature: public void insert(List<ErasureCodingPolicyInfo> ecInfos)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (List<ErasureCodingPolicyInfo> ecInfos)
focal_class.return: void
focal_class.signature: void insert(List<ErasureCodingPolicyInfo> ecInfos)
focal_class.class_method_signature: ErasureCodingPolicyDao.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: ErasureCodingPolicyDao.toMap(ErasureCodingPolicyInfo ecPolicy)
focal_class.full_signature: private Map<String, Object> toMap(ErasureCodingPolicyInfo ecPolicy)
focal_class.identifier: toMap
focal_class.modifiers: private
focal_class.parameters: (ErasureCodingPolicyInfo ecPolicy)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> toMap(ErasureCodingPolicyInfo ecPolicy)
focal_method.body: public void insert(ErasureCodingPolicyInfo ecPolicy) {
      SimpleJdbcInsert simpleJdbcInsert = new SimpleJdbcInsert(dataSource);
      simpleJdbcInsert.setTableName(TABLE_NAME);
      simpleJdbcInsert.execute(toMap(ecPolicy));
    }
focal_method.class_method_signature: ErasureCodingPolicyDao.insert(ErasureCodingPolicyInfo ecPolicy)
focal_method.full_signature: public void insert(ErasureCodingPolicyInfo ecPolicy)
focal_method.identifier: insert
focal_method.invocations: setTableName execute toMap
focal_method.modifiers: public
focal_method.parameters: (ErasureCodingPolicyInfo ecPolicy)
focal_method.return: void
focal_method.signature: void insert(ErasureCodingPolicyInfo ecPolicy)