NCEAS / z-test-issues

Test issue imports from redmine
0 stars 0 forks source link

Data Manager Library: API to enumerate table and field names #411

Closed mbjones closed 7 years ago

mbjones commented 7 years ago

Author Name: Duane Costa (Duane Costa) Original Redmine Issue: 2577, https://projects.ecoinformatics.org/ecoinfo/issues/2577 Original Date: 2006-10-27 Original Assignee: Duane Costa


Some applications may want to do direct queries on the data tables in the database. The application will need to map entity names to table names, and attribute names to field names. Extend the Data Manager Library API to provide a method to enumerate the table and field names for a given entity.

mbjones commented 7 years ago

Original Redmine Comment Author Name: Duane Costa (Duane Costa) Original Date: 2006-12-15T16:53:34Z


This is now supported with the following four methods in the DataManager class:

public static String getDBFieldName(Entity entity, Attribute attribute) public static String[] getDBFieldNames(String packageID, String entityName) public static String getDBTableName(String packageID, String entityName) public static String getDBTableName(Entity entity)

mbjones commented 7 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:20:38Z


Original Bugzilla ID was 2577