org.apache.openjpa.enhance
Class PCSubclassValidator

java.lang.Object
  extended by org.apache.openjpa.enhance.PCSubclassValidator

public class PCSubclassValidator
extends Object

Validates that a given type meets the JPA contract, plus a few OpenJPA-specific additions for subclassing / redefinition:

If you use this technique and use the new keyword instead of a OpenJPA-supplied construction routine, OpenJPA will need to do extra work with persistent-new-flushed instances, since OpenJPA cannot in this case track what happens to such an instance.

Since:
1.0.0

Constructor Summary
PCSubclassValidator(ClassMetaData meta, serp.bytecode.BCClass bc, Log log, boolean enforceContractViolations)
           
 
Method Summary
 void assertCanSubclass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCSubclassValidator

public PCSubclassValidator(ClassMetaData meta,
                           serp.bytecode.BCClass bc,
                           Log log,
                           boolean enforceContractViolations)
Method Detail

assertCanSubclass

public void assertCanSubclass()


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.