phenote.dataadapter
Class ConstraintManager

java.lang.Object
  extended by phenote.dataadapter.ConstraintManager

public class ConstraintManager
extends java.lang.Object

ConstraintManager holds all constraints. a constraint can be for edit and/or commit time. ConstraintStatus is returned from checking constraint that indicates failure and gives error message. Singleton. should there be a constraint package? subpackage?


Method Summary
 void addConstraint(Constraint c)
           
 ConstraintStatus checkCommitConstraints()
           
 ConstraintStatus checkEditConstraints()
           
static ConstraintManager inst()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

inst

public static ConstraintManager inst()

checkCommitConstraints

public ConstraintStatus checkCommitConstraints()

checkEditConstraints

public ConstraintStatus checkEditConstraints()

addConstraint

public void addConstraint(Constraint c)