- Timestamp:
- 08/28/10 12:54:10 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AnalyzerBeans/trunk/src/main/java/org/eobjects/analyzer/util/SchemaNavigator.java
r967 r978 14 14 } 15 15 16 public Schema convertToSchema(String schemaName) { 17 return dataContext.getSchemaByName(schemaName); 18 } 19 16 20 public Schema[] convertToSchemas(String[] schemaNames) { 17 21 Schema[] result = new Schema[schemaNames.length]; 18 22 for (int i = 0; i < result.length; i++) { 19 result[i] = dataContext.getSchemaByName(schemaNames[i]);23 result[i] = convertToSchema(schemaNames[i]); 20 24 } 21 25 return result; … … 25 29 Table[] result = new Table[tableNames.length]; 26 30 for (int i = 0; i < result.length; i++) { 27 result[i] = dataContext.getTableByQualifiedLabel(tableNames[i]);31 result[i] = convertToTable(tableNames[i]); 28 32 } 29 33 return result; 34 } 35 36 public Table convertToTable(String tableName) { 37 return dataContext.getTableByQualifiedLabel(tableName); 30 38 } 31 39 … … 33 41 Column[] result = new Column[columnNames.length]; 34 42 for (int i = 0; i < result.length; i++) { 35 result[i] = dataContext.getColumnByQualifiedLabel(columnNames[i]);43 result[i] = convertToColumn(columnNames[i]); 36 44 } 37 45 return result; 38 46 } 47 48 public Column convertToColumn(String columnName) { 49 return dataContext.getColumnByQualifiedLabel(columnName); 50 } 39 51 }
Note: See TracChangeset
for help on using the changeset viewer.
