use of com.ramussoft.common.persistent.Transaction in project ramus by Vitaliy-Yakovchuk.
the class IEngineImpl method getAttributeWhatWillBeDeleted.
@Override
public Hashtable<Element, Transaction> getAttributeWhatWillBeDeleted(long qualifierId, long attributeId) {
throwExaptionIfNotCan(getAccessor().canUpdateQualifier(qualifierId), "Can not get attributes what will be deleted, as can not update qualifier.");
List<Element> elements = getElements(qualifierId);
Hashtable<Element, Transaction> transactions = new Hashtable<Element, Transaction>();
Attribute attribute = getAttribute(attributeId);
for (int i = 0; i < elements.size(); i++) {
Element element = elements.get(i);
Transaction transaction = getAttributeWhatWillBeDeleted(element.getId(), attribute, true);
if (transaction.getDelete().size() > 0) {
transactions.put(element, transaction);
}
}
return transactions;
}
Aggregations