InputColumn<?>[] columns; @Configured(value = PROPERTY_FIELD_NAMES, required = false) @MappedProperty(PROPERTY_COLUMNS) String[] fields;
public String getMappedDescription() { final MappedProperty annotation = _property.getAnnotation(MappedProperty.class); return "Mapped with <i>" + annotation.value() + "</i>"; } }
@MappedProperty(PROPERTY_INSPECTED_COLUMNS) InspectionType[] inspectionTypes;
private void synchronizeDependentProperties(final ConfiguredPropertyDescriptor property, final Object newValue, final Object currentValue) { if (currentValue != null) { getDescriptor().getConfiguredPropertiesByAnnotation(MappedProperty.class).stream() .filter(dependentProperty -> property.getName() .equals(dependentProperty.getAnnotation(MappedProperty.class).value())) .forEach(dependentProperty -> doSynchronizeProperties(newValue, currentValue, dependentProperty)); } }
@MappedProperty(PROPERTY_INSPECTED_COLUMNS) InspectionType[] inspectionTypes;
@Inject protected PropertyWidgetFactoryImpl(final ComponentBuilder componentBuilder, final DCModule dcModule) { _componentBuilder = componentBuilder; _dcModule = dcModule; _propertyWidgetCollection = new PropertyWidgetCollection(componentBuilder); final Set<ConfiguredPropertyDescriptor> mappedProperties = componentBuilder.getDescriptor().getConfiguredPropertiesByAnnotation(MappedProperty.class); for (final ConfiguredPropertyDescriptor mappedProperty : mappedProperties) { final MappedProperty annotation = mappedProperty.getAnnotation(MappedProperty.class); final String mappedToName = annotation.value(); final ConfiguredPropertyDescriptor mappedToProperty = componentBuilder.getDescriptor().getConfiguredProperty(mappedToName); final PropertyWidgetMapping propertyWidgetMapping = buildMappedPropertyWidget(mappedProperty, mappedToProperty); _propertyWidgetCollection.putMappedPropertyWidget(mappedProperty, propertyWidgetMapping); _propertyWidgetCollection.putMappedPropertyWidget(mappedToProperty, propertyWidgetMapping); } }
@MappedProperty(PROPERTY_KEYS) Class<?>[] types;
MappedProperty mappedPropAnnot = prop.getAnnotation(MappedProperty.class); if(mappedPropAnnot != null) { if(inputColumnProp.getName().equals(mappedPropAnnot.value())) { if(mappedProp != null) {
@Alias("Schema") @SchemaProperty @MappedProperty(PROPERTY_NAME_DATASTORE) String schemaName; @Alias("Table") @TableProperty @MappedProperty(PROPERTY_NAME_SCHEMA_NAME) String tableName; @Configured(order = 5) @ColumnProperty @MappedProperty(PROPERTY_NAME_TABLE_NAME) String columnName;
@MappedProperty(PROPERTY_VALUES) String[] keys;
@Configured(order = 2, value = PROPERTY_CONDITIONS) @Description("The conditions of which a value is determined to be filled or not") @MappedProperty(PROPERTY_VALUES) Condition[] _conditions; @Inject
@MappedProperty(PROPERTY_INPUT_COLUMNS) String[] variableNames;
@Configured(required = false) @ColumnProperty @MappedProperty(PROPERTY_NAME_TABLE_NAME) String[] conditionColumns; @Inject @Configured @ColumnProperty @MappedProperty(PROPERTY_NAME_TABLE_NAME) String[] outputColumns; @Inject @Alias("Schema") @SchemaProperty @MappedProperty(PROPERTY_NAME_DATASTORE) String schemaName; @Inject @Alias("Table") @TableProperty @MappedProperty(PROPERTY_NAME_SCHEMA_NAME) String tableName; @Inject
@Description("Names of columns in the target table, on which the values will be updated.") @ColumnProperty @MappedProperty(PROPERTY_NAME_VALUES) String[] columnNames; @Description("Names of columns in the target table, which form the conditions of the update.") @ColumnProperty @MappedProperty(PROPERTY_NAME_CONDITION_VALUES) String[] conditionColumnNames;
@Description("Names of columns in the target table.") @ColumnProperty @MappedProperty(PROPERTY_NAME_VALUES) String[] columnNames;
@Description("Names of columns in the target table, which form the condition of the delete.") @ColumnProperty @MappedProperty(PROPERTY_NAME_CONDITION_VALUES) String[] conditionColumnNames;
InputColumn<?>[] aggregatedValues; @Configured(order = 3, value = PROPERTY_AGGREGATION_TYPES) @MappedProperty(PROPERTY_AGGREGATED_VALUES) AggregationType[] aggregationTypes; @Configured(order = 4, value = PROPERTY_VALUE_SORTATION)