private void addSecondaryTypeIds(Collection<SecondaryType> secondaryTypes, StringBuilder sb) { boolean first = true; for (SecondaryType secondaryType : secondaryTypes) { if (first) { first = false; } else { sb.append(", "); } sb.append('\''); sb.append(secondaryType.getId()); sb.append('\''); } }
@Override public List<ObjectType> findObjectType(String id) { List<ObjectType> result = null; readLock(); try { if (objectType.getPropertyDefinitions().containsKey(id)) { result = new ArrayList<ObjectType>(); result.add(objectType); } if (secondaryTypes != null) { for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType.getPropertyDefinitions() != null && secondaryType.getPropertyDefinitions().containsKey(id)) { if (result == null) { result = new ArrayList<ObjectType>(); } result.add(secondaryType); } } } } finally { readUnlock(); } return result; }
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = (PropertyDefinition<T>) secondaryType.getPropertyDefinitions().get(pd.getId()); if (definition != null) { break; for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType != null) { TypeDefinition reloadedSecondaryType = session.getTypeDefinition(secondaryType.getId(), false); if (reloadedSecondaryType.getPropertyDefinitions() != null) { definition = (PropertyDefinition<T>) reloadedSecondaryType.getPropertyDefinitions().get(
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = (PropertyDefinition<T>) secondaryType.getPropertyDefinitions().get(pd.getId()); if (definition != null) { break; for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType != null) { TypeDefinition reloadedSecondaryType = session.getTypeDefinition(secondaryType.getId(), false); if (reloadedSecondaryType.getPropertyDefinitions() != null) { definition = (PropertyDefinition<T>) reloadedSecondaryType.getPropertyDefinitions().get(
if (newDoc.getSecondaryTypes() != null) { for (SecondaryType secType : newDoc.getSecondaryTypes()) { if (secondaryTestType.getId().equals(secType.getId())) { found = true; break; boolean foundProperty = false; for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType.getPropertyDefinitions() != null && secondaryType.getPropertyDefinitions().containsKey(prop.getId())) { foundProperty = true; break;
private void addSecondaryTypeIds(Collection<SecondaryType> secondaryTypes, StringBuilder sb) { boolean first = true; for (SecondaryType secondaryType : secondaryTypes) { if (first) { first = false; } else { sb.append(", "); } sb.append('\''); sb.append(secondaryType.getId()); sb.append('\''); } }
@Override public List<ObjectType> findObjectType(String id) { List<ObjectType> result = null; readLock(); try { if (objectType.getPropertyDefinitions().containsKey(id)) { result = new ArrayList<ObjectType>(); result.add(objectType); } if (secondaryTypes != null) { for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType.getPropertyDefinitions() != null && secondaryType.getPropertyDefinitions().containsKey(id)) { if (result == null) { result = new ArrayList<ObjectType>(); } result.add(secondaryType); } } } } finally { readUnlock(); } return result; }
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = secondaryType.getPropertyDefinitions().get(id); if (definition != null) { break;
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = secondaryType.getPropertyDefinitions().get(id); if (definition != null) { break;
secondaryTypes.put(secondaryType.getId(), secondaryType);
secondaryTypes.put(secondaryType.getId(), secondaryType);
} else { for (SecondaryType secType : doc.getSecondaryTypes()) { if (secondaryTestType.getId().equals(secType.getId())) { found = true; break;