import gnu.trove.map.hash.THashMap;
-public class ConnectionPointMapOfResource extends TransientResourceRead<Map<String, Resource>> {
+public class ConnectionPointMapOfResource extends TransientResourceRead<Map<String, PropertyInfo>> {
private static final Logger LOGGER = LoggerFactory.getLogger(ConnectionPointMapOfResource.class);
}
@Override
- public Map<String,Resource> perform(ReadGraph graph, Resource resource) throws DatabaseException {
+ public Map<String,PropertyInfo> perform(ReadGraph graph, Resource resource) throws DatabaseException {
Collection<Resource> predicates = graph.getPredicates(resource);
- THashMap<String,Resource> result = null;
+ THashMap<String,PropertyInfo> result = null;
for(Resource predicate : predicates) {
PropertyInfo info = graph.syncRequest(new PossibleConnectionPointInfo(predicate), TransientCacheAsyncListener.<PropertyInfo>instance());
if(info != null) {
- if (result == null) result = new THashMap<String,Resource>(predicates.size());
- if (result.put(info.name, predicate) != null)
+ if (result == null) result = new THashMap<String,PropertyInfo>(predicates.size());
+ if (result.put(info.name, info) != null)
LOGGER.error("The database contains siblings with the same name " + info.name + " (resource=$" + resource.getResourceId() + ").");
}