protected void setupPropertyDefinition(PropertyDefinition propertyDefinition) { try { getSearchIndex().addPropertyDefinition(propertyDefinition); } catch (IOException e) { throw new SecureGraphException("Could not add property definition to search index", e); } }
protected void setupPropertyDefinition(PropertyDefinition propertyDefinition) { try { getSearchIndex().addPropertyDefinition(propertyDefinition); } catch (IOException e) { throw new SecureGraphException("Could not add property definition to search index", e); } }
@Override public PropertyDefinition define() { PropertyDefinition propertyDefinition = super.define(); try { getSearchIndex().addPropertyDefinition(propertyDefinition); } catch (IOException e) { throw new SecureGraphException("Could not add property definition to search index", e); } setMetadata(METADATA_DEFINE_PROPERTY_PREFIX + propertyName, propertyDefinition); return propertyDefinition; } };
@Override public PropertyDefinition define() { PropertyDefinition propertyDefinition = super.define(); try { getSearchIndex().addPropertyDefinition(propertyDefinition); } catch (IOException e) { throw new SecureGraphException("Could not add property definition to search index", e); } setMetadata(METADATA_DEFINE_PROPERTY_PREFIX + propertyName, propertyDefinition); return propertyDefinition; } };