code: public void check(CollectionDescriptorDef collDef, String checkLevel) throws ConstraintException
      {
          ensureElementClassRef(collDef, checkLevel);
          checkInheritedForeignkey(collDef, checkLevel);
          ensureCollectionClass(collDef, checkLevel);
          checkProxyPrefetchingLimit(collDef, checkLevel);
          checkOrderby(collDef, checkLevel);
          checkQueryCustomizer(collDef, checkLevel);
      }
docs: Checks the given collection descriptor.
  
  @param collDef    The collection descriptor
  @param checkLevel The amount of checks to perform
  @exception ConstraintException If a constraint has been violated