/** * {@inheritDoc} */ @Override public boolean isModifiable() { if (isTranslatable()) { return true; } return super.isModifiable(); }
/** * {@inheritDoc} */ @Override public BasicPropertyDescriptor createQueryDescriptor() { BasicDurationPropertyDescriptor queryDescriptor = (BasicDurationPropertyDescriptor) super.createQueryDescriptor(); queryDescriptor.setMaxMillis(null); return queryDescriptor; }
/** * {@inheritDoc} */ @Override public BasicPropertyDescriptor createQueryDescriptor() { BasicNumberPropertyDescriptor queryDescriptor = (BasicNumberPropertyDescriptor) super .createQueryDescriptor(); queryDescriptor.setMinValue(null); queryDescriptor.setMaxValue(null); return queryDescriptor; }
/** * {@inheritDoc} */ @Override public BasicStringPropertyDescriptor createQueryDescriptor() { BasicStringPropertyDescriptor queryDescriptor = (BasicStringPropertyDescriptor) super.createQueryDescriptor(); // Don't set it to null because in that case, the default max length will apply. queryDescriptor.setMaxLength(-1); queryDescriptor.setRegexpPattern(null); queryDescriptor.setTranslatable(false); return queryDescriptor; }
/** * Assign reverse temp relation end if set. * <p> * {@inheritDoc} */ @Override public void setName(String name) { super.setName(name); if (tempReverseRelationEnd != null) { setReverseRelationEnd(tempReverseRelationEnd); tempReverseRelationEnd = null; } }
/** * {@inheritDoc} */ @Override public RangeEnumerationPropertyDescriptor clone() { RangeEnumerationPropertyDescriptor clonedDescriptor = (RangeEnumerationPropertyDescriptor) super .clone(); return clonedDescriptor; }
/** * {@inheritDoc} */ @Override public BasicStringPropertyDescriptor clone() { BasicStringPropertyDescriptor clonedDescriptor = (BasicStringPropertyDescriptor) super.clone(); return clonedDescriptor; }
/** * {@inheritDoc} */ @Override public String getPermId() { return super.getPermId() + ".filter"; } }
/** * {@inheritDoc} */ @Override public IComponentDescriptor<? extends E> getComponentDescriptor() { return getReferencedDescriptor(); }
/** * {@inheritDoc} */ @Override public boolean isQueryable() { return getDelegateClassName() == null; }
/** * {@inheritDoc} */ @Override public Class<?> getModelType() { return getComponentContract(); }
/** * Gets the toStringProperty. * * @return the toStringProperty. */ @Override public String getToHtmlProperty() { if (toHtmlProperty == null) { return getToStringProperty(); } return toHtmlProperty; }
/** * Returns the component contract class name. * <p/> * {@inheritDoc} */ @Override public String getPermId() { return getName(); }
/** * {@inheritDoc} */ @Override public BasicDecimalPropertyDescriptor clone() { BasicDecimalPropertyDescriptor clonedDescriptor = (BasicDecimalPropertyDescriptor) super .clone(); return clonedDescriptor; }
/** * {@inheritDoc} */ @Override public Class<?> getModelType() { if (isUsingBigDecimal()) { return BigDecimal.class; } return Double.class; }
/** * {@inheritDoc} */ @Override public BasicDurationPropertyDescriptor clone() { BasicDurationPropertyDescriptor clonedDescriptor = (BasicDurationPropertyDescriptor) super.clone(); return clonedDescriptor; }
/** * {@inheritDoc} */ @Override public boolean isMandatory() { if (mandatory != null) { return mandatory; } return getDefaultMandatory(); }
/** * {@inheritDoc} */ @Override public boolean isReadOnlyExplicitlyConfigured() { if (!isModifiable()) { return true; } return readOnly != null; }
/** * {@inheritDoc} */ @Override public boolean isSortable() { if (sortable != null) { return sortable; } return getDefaultSortablility(); }
/** * {@inheritDoc} */ @Override public ICollectionDescriptor<E> getCollectionDescriptor() { return getReferencedDescriptor(); }