public TreeMap<String, RecordHolder> getOids() { if (oids == null) { synchronized (this) { if (oids == null) { TreeMap<String, RecordHolder> map = new TreeMap<String, RecordHolder>(String.CASE_INSENSITIVE_ORDER); addOids(this.getDatatypesExcludingAliases().values(), map); for (Schema s : getSchemaList()) { assignOids(s, map); } oids = map; } } } return oids; }
public TreeMap<String, RecordHolder> getOids() { if (oids == null) { synchronized (this) { if (oids == null) { TreeMap<String, RecordHolder> map = new TreeMap<String, RecordHolder>(String.CASE_INSENSITIVE_ORDER); addOids(this.getDatatypesExcludingAliases().values(), map); for (Schema s : getSchemaList()) { assignOids(s, map); } oids = map; } } } return oids; }
public TreeMap<String, RecordHolder> getOids() { if (oids == null) { synchronized (this) { if (oids == null) { TreeMap<String, RecordHolder> map = new TreeMap<String, RecordHolder>(String.CASE_INSENSITIVE_ORDER); addOids(this.getDatatypesExcludingAliases().values(), map); for (Schema s : getSchemaList()) { assignOids(s, map); } oids = map; } } } return oids; }
public static String[] current_schemas(CommandContext cc, boolean include_implicit) { //TODO: when schemas are hidden we should use the system metadata or other logic to hide them here as well if (include_implicit) { VDBMetaData metadata = (VDBMetaData) cc.getVdb(); TransformationMetadata tm = metadata.getAttachment(TransformationMetadata.class); List<Schema> schemas = tm.getMetadataStore().getSchemaList(); String[] results = new String[schemas.size()]; for (int i = 0; i < results.length; i++) { results[i] = schemas.get(i).getName(); } return results; } List<Model> models = cc.getVdb().getModels(); String[] results = new String[models.size()]; for (int i = 0; i < results.length; i++) { results[i] = models.get(i).getName(); } return results; }