@Override public String getCustom(final String iName) { return delegate.getCustom(iName); }
row.field("VALUE", prop.getCustom(k));
@Override public String apply(OProperty input) { return input.getCustom(customName); }
final Map<String, String> custom = new HashMap<String, String>(); for (String key : customKeys) custom.put(key, p.getCustom(key));
@Override protected String getValue(OProperty object, String param) { return object.getCustom(param); }
customProperties.put(key, property.getCustom(key));
@Override protected String getValue(OProperty object, String param) { return object.getCustom(param); }
@Override public String apply(OProperty input) { return input.getCustom(customName); }
public boolean isOrdered() { final String value = delegate.getCustom(ORDERED); return Boolean.parseBoolean(value); }
@SuppressWarnings("unchecked") public <V> V getValue(OProperty property, V defaultValue) { String stringValue = property.getCustom(name); if(encode) stringValue = decodeCustomValue(stringValue); V ret; if(OProperty.class.isAssignableFrom(javaClass)) { ret = (V)resolveProperty(property.getOwnerClass(), stringValue); } else { ret = (V) OType.convert(stringValue, javaClass); } return ret!=null?ret:defaultValue; }
.equalsIgnoreCase(prop.getCustom(OrientVertexType.OrientVertexProperty.ORDERED)))) { .equalsIgnoreCase(prop.getCustom(OrientVertexType.OrientVertexProperty.ORDERED)))) { final Collection coll = new ORecordLazyList(iFromVertex); coll.add(iTo); "Type of field provided in schema '" + prop.getType() + "' cannot be used for creation to hold several links."); if (prop != null && "true".equalsIgnoreCase(prop.getCustom(OrientVertexType.OrientVertexProperty.ORDERED))) { final Collection coll = new ORecordLazyList(iFromVertex); coll.add(found);
if (propType == OType.LINKLIST || (prop != null && "true".equalsIgnoreCase(prop.getCustom("ordered")))) {//TODO constant final Collection coll = new ORecordLazyList(iFromVertex); coll.add(iTo); "Type of field provided in schema '" + prop.getType() + "' cannot be used for creation to hold several links."); if (prop != null && "true".equalsIgnoreCase(prop.getCustom("ordered"))) {//TODO constant final Collection coll = new ORecordLazyList(iFromVertex); coll.add(found);
Object oldValue = property.getCustom(customName); Object finalValue = customPropertyValue.execute((OIdentifiable) null, ctx); property.setCustom(customName, finalValue == null ? null : "" + finalValue);
assertEquals(OType.STRING, newProperty.getType()); newProperty.setCustom("myCustom", "myCustomValue"); assertEquals("myCustomValue", newProperty.getCustom("myCustom")); assertTrue(newProperty.compareTo(toCompare)<0); OProperty realizedNewProperty = ((IPrototype<OProperty>)newProperty).realizePrototype(); assertEquals(newClass.getProperty("newProperty"), realizedNewProperty); assertEquals("myCustomValue", realizedNewProperty.getCustom("myCustom"));