*
* @param attributes a collection of attributes
* @throws T2DBException
*/
public void updateAttributes(Collection<Attribute<?>> attributes) throws T2DBException {
Schema schema = getSchema(true);
if (schema == null)
throw T2DBMsg.exception(D.D30115);
for (Attribute<?> attribute : attributes) {
Property<?> property = attribute.getProperty();
ValueType<?> type = property.getValueType();
AttributeDefinition<?> def = schema.getAttributeDefinition(property.getName(), true);
if (def == null)
throw T2DBMsg.exception(D.D30114, property.getName());
String value = type.toString(attribute.get());
if (value == null || value.length() == 0) {
getDatabase().deleteAttributeValue(this, def);