org.datanucleus.util
Class ViewUtils

java.lang.Object
  extended by org.datanucleus.util.ViewUtils

public class ViewUtils
extends java.lang.Object

Utilities for handling Views. TODO Move to RDBMS


Field Summary
protected static Localiser LOCALISER
           
 
Constructor Summary
ViewUtils()
           
 
Method Summary
static void checkForCircularViewReferences(java.util.Map viewReferences, java.lang.String referencer_name, java.lang.String referencee_name, java.util.List referenceChain)
          Check for any circular view references between referencer and referencee.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Constructor Detail

ViewUtils

public ViewUtils()
Method Detail

checkForCircularViewReferences

public static void checkForCircularViewReferences(java.util.Map viewReferences,
                                                  java.lang.String referencer_name,
                                                  java.lang.String referencee_name,
                                                  java.util.List referenceChain)
Check for any circular view references between referencer and referencee. If one is found, throw a JPOXUserException with the chain of references.

Parameters:
viewReferences - The Map of view references to check.
referencer_name - Name of the class that has the reference.
referencee_name - Name of the class that is being referenced.
referenceChain - The List of class names that have been referenced
Throws:
NucleusUserException - If a circular reference is found in the view definitions.


Copyright © 2011. All Rights Reserved.