Add all attributes of the type which must be always updated.
@throws EFapsException on error
184141
protected void addAlwaysUpdateAttributes()
        throws EFapsException
    {
        final Iterator<?> iter = getInstance().getType().getAttributes().entrySet().iterator();
        while (iter.hasNext()) {
            final Map.Entry<?, ?> entry = (Map.Entry<?, ?>) iter.next();
            final Attribute attr = (Attribute) entry.getValue();
            final AttributeType attrType = attr.getAttributeType();
            if (attrType.isAlwaysUpdate()) {
                addInternal(attr, false, (Object[]) null);
            }
        }
    }
847661
protected void setLinkProperty(final UUID _linkTypeUUID,
                                   final long _toId,
                                   final UUID _toTypeUUID,
                                   final String _toName)
        throws EFapsException
    {
        setDirty();
    }
531837
def update_attributes(self, updates):
        """"""
        if not isinstance(updates, dict):
            updates = updates.to_dict()
        for sdk_key, spec_key in self._get_attributes_map().items():
            attr = '_%s' % sdk_key
            if spec_key in updates and not hasattr(self, attr):
                setattr(self, attr, updates[spec_key])
569774
private void executeInserts() throws EFapsException
    {
        ConnectionResource con = null;
        try {
            final Insert insert = (Insert) runnable;
            con = Context.getThreadContext().getConnectionResource();
            long id = 0;
            for (final Entry<SQLTable, AbstractSQLInsertUpdate<?>> entry : updatemap.entrySet()) {
                if (id != 0) {
                    entry.getValue().column(entry.getKey().getSqlColId(), id);
                }
                if (entry.getKey().getSqlColType() != null) {
                    entry.getValue().column(entry.getKey().getSqlColType(), insert.getType().getId());
                }
                final Long created = ((SQLInsert) entry.getValue()).execute(con);
                if (created != null) {
                    id = created;
                    insert.evaluateInstance(created);
                }
            }
        } catch (final SQLException e) {
            throw new EFapsException(SQLRunner.class, "executeOneCompleteStmt", e);
        }
    }
940179
public void addType(final Type... _type)
        throws EFapsException
    {
        final List<Type> allType = new ArrayList<>();
        if (this.types.isEmpty()) {
            final Type type = Type.get(this.typeUUID);
            if (type.isAbstract()) {
                final List<Type> childTypes = type.getChildTypes()
                                .stream()
                                .filter(t -> !t.isAbstract())
                                .collect(Collectors.toList());
                allType.addAll(childTypes);
            } else {
                allType.add(type);
            }
        }
        for (final UUID type : this.types) {
            allType.add(Type.get(type));
        }
        for (final Type type : _type) {
            if (type.isAbstract()) {
                final List<Type> childTypes = type.getChildTypes()
                                .stream()
                                .filter(t -> !t.isAbstract())
                                .collect(Collectors.toList());
                allType.addAll(childTypes);
            } else {
                allType.add(type);
            }
        }

        //make for every type a list of types up to the parent
        final List<List<Type>> typeLists = new ArrayList<>();
        for (final Type type : allType) {
            final List<Type> typesTmp = new ArrayList<>();
            typeLists.add(typesTmp);
            Type tmpType = type;
            while (tmpType != null) {
                typesTmp.add(tmpType);
                tmpType = tmpType.getParentType();
            }
        }

        final Set<Type> common = new LinkedHashSet<>();
        if (!typeLists.isEmpty()) {
            final Iterator<List<Type>> iterator = typeLists.iterator();
            common.addAll(iterator.next());
            while (iterator.hasNext()) {
                common.retainAll(iterator.next());
            }
        }
        if (common.isEmpty()) {
            throw new EFapsException(QueryBuilder.class, "noCommon", allType);
        } else {
            // first common type
            this.typeUUID = common.iterator().next().getUUID();
            for (final Type type : allType) {
                this.types.add(type.getUUID());
            }
        }
        // special case handling
        if (this.types.size() == 1 && this.types.iterator().next().equals(this.typeUUID)) {
            this.types.clear();
        }
    }
732877
protected Attribute setAttributeFromRawValue(String name, AttributeType type, Object value) throws AttributeException {
		AttributeValue oldValue = extractValueForSafe(name);
		if (oldValue != null) {
			if (oldValue.equals(value)) {
				return null;
			}
			// Clone the value for avoid border effects.
			oldValue = new AttributeValueImpl(oldValue);
		}

		final Attribute attr = new AttributeImpl(name, type);
		attr.setValue(type.cast(value));

		saveValue(name, attr);

		this.cache.put(name, attr);

		if (oldValue != null) {
			fireAttributeChangedEvent(name, oldValue, attr);
		} else {
			fireAttributeAddedEvent(name, attr);
		}

		return attr;
	}
10119
public static void registerUpdate(final Instance _instance)
        throws EFapsException
    {
        // check if SystemConfiguration exists, necessary during install
        if (EFapsSystemConfiguration.get() != null
                        && EFapsSystemConfiguration.get().getAttributeValueAsBoolean(KernelSettings.INDEXACTIVATE)) {
            if (_instance != null && _instance.getType() != null
                            && IndexDefinition.get(_instance.getType().getUUID()) != null) {
                final AdvancedCache<String, String> cache = InfinispanCache.get()
                                .<String, String>getIgnReCache(CACHENAME);
                cache.put(RandomUtil.random(12), _instance.getOid());
            }
        }
    }
474532
public void addGenInstSelectPart()
        throws EFapsException
    {
        final Type type;
        // if a previous select exists it is based on the previous select,
        // else it is based on the basic table
        if (this.selectParts.size() > 0) {
            type = this.selectParts.get(this.selectParts.size() - 1).getType();
        } else {
            type = this.query.getMainType();
        }
        final GenInstSelectPart linkto = new GenInstSelectPart(type);
        this.selectParts.add(linkto);
    }
62237
private void updateDefault(final Instance _inst,
                               final String _value)
    {
        try {
            final Update update = new Update(_inst);
            update.add("Default", _value);
            update.execute();
        } catch (final EFapsException e) {
            DBPropertiesUpdate.LOG.error("updateDefault(String, String)", e);
        }
    }
297451
def add_attributes(source,attribute,data_type)
      file = File.open(source, "r+")
      file.each do |line|
        while line == "    create_table :#{@scaffold_name}s do |t|\n" do
          pos = file.pos
          rest = file.read
          file.seek pos
          file.write("      t.#{data_type} :#{attribute}\n") 
          file.write(rest)
          break
        end
      end
    end
580743
public void updateAssociations(JMFType type) {
    super.updateAssociations(type);
    itemType.updateAssociations(((JSRepeated)type).getItemType());
  }
374608
public void addAttributeSetSelectPart(final String _attributeSet,
                                          final String _where)
        throws EFapsException
    {
        final Type type;
        // if a previous select exists it is based on the previous select,
        // else it is based on the basic table
        if (this.selectParts.size() > 0) {
            type = this.selectParts.get(this.selectParts.size() - 1).getType();
        } else {
            type = this.query.getMainType();
        }

        try {
            final AttributeSet set = AttributeSet.find(type.getName(), _attributeSet);
            final String linkFrom = set.getName() + "#" + set.getAttributeName();
            this.fromSelect = new LinkFromSelect(linkFrom, getQuery().isCacheEnabled() ? getQuery().getKey() : null);
            this.fromSelect.addWhere(_where);
        } catch (final CacheReloadException e) {
            OneSelect.LOG.error("Could not find AttributeSet for Type: {}, attribute: {}", type.getName(),
                            _attributeSet);
        }
    }
453345
public void addException(TypeDesc type) {
        if (mExceptions == null) {
            addAttribute(new ExceptionsAttr(mCp));
        }
        // TODO: Special handling for generics
        ConstantClassInfo cci = mCp.addConstantClass(type);
        mExceptions.addException(cci);
    }
130334
public void setModifytype(String modifyType) throws ApplicationException {
	modifyType = modifyType.trim().toLowerCase();
	if (modifyType.equals("add")) this.modifyType = DirContext.ADD_ATTRIBUTE;
	else if (modifyType.equals("delete")) this.modifyType = DirContext.REMOVE_ATTRIBUTE;
	else if (modifyType.equals("replace")) this.modifyType = DirContext.REPLACE_ATTRIBUTE;
	else throw new ApplicationException("invalid value for attribute modifyType [" + modifyType + "], valid values are [add,replace,delete]");
    }
549049
@Override
    public Object get(final Attribute _attribute,
                      final Object _object)
        throws EFapsException
    {
        Object ret = null;
        if (_object != null && _attribute.getAttributeType().getDbAttrType() instanceof IFormattableType) {
            final IFormattableType attrType = (IFormattableType) _attribute.getAttributeType().getDbAttrType();
            if (_object instanceof List<?>) {
                final List<?> objectList = (List<?>) _object;
                final List<Object> temp = new ArrayList<>();
                for (final Object object : objectList) {
                    temp.add(attrType.format(object, this.pattern));
                }
                ret = temp;
            } else {
                ret = attrType.format(_object, this.pattern);
            }
        }
        return ret;
    }
751746
private void updateDocTypesFromConfiguration() {
        resetDocumentTypesAndExtractors();
        JBakeConfiguration config = utensils.getConfiguration();

        ModelExtractorsDocumentTypeListener listener = new ModelExtractorsDocumentTypeListener();
        DocumentTypes.addListener(listener);

        for (String docType : config.getDocumentTypes()) {
            DocumentTypes.addDocumentType(docType);
        }
    }
413038
def add_atype(self, ):
        
        i = self.atype_tablev.currentIndex()
        item = i.internalPointer()
        if item:
            atype = item.internal_data()
            atype.projects.add(self._project)
            self.atypes.append(atype)
            item.set_parent(None)