i3.dragos.core.services.transactions
Class TransactionValidator

java.lang.Object
  extended by i3.dragos.core.services.transactions.TransactionValidator

public final class TransactionValidator
extends java.lang.Object

Utility class that validates changes performed in a transaction, using the GraphPoolChecker and SchemaChecker.


Method Summary
static void validate(Transaction transaction, boolean remove)
          This method performs the consistency checks on GraphEntities and GraphEntityClasses marked "dirty" in a Collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validate

public static void validate(Transaction transaction,
                            boolean remove)
                     throws TransactionException
This method performs the consistency checks on GraphEntities and GraphEntityClasses marked "dirty" in a Collection. It optionally removes the elements after they passed their checks. Especially with remove == true, you should make sure you no other thread accesses the implementation during this method.

Parameters:
transaction - The Transaction to validate.
remove - If true, the elements will be removed from the "dirty" sets right after they passed their checks.
Throws:
TransactionException - if a check failed or in case of internal errors.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.