com.force.sdk.jpa
Class ForceMetaDataListener

java.lang.Object
  extended by com.force.sdk.jpa.ForceMetaDataListener
All Implemented Interfaces:
org.datanucleus.metadata.MetaDataListener

public class ForceMetaDataListener
extends Object
implements org.datanucleus.metadata.MetaDataListener

Our own version of a MetaDataListener that does all of the registration and setup needed when an application starts. The object schema is validated and cached.

Author:
Fiaz Hossain

Field Summary
protected static org.datanucleus.util.Localiser LOCALISER
          Localiser for messages.
 
Method Summary
 void loaded(org.datanucleus.metadata.AbstractClassMetaData cmd)
          This method gets called when an entity is loaded during startup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER

protected static final org.datanucleus.util.Localiser LOCALISER
Localiser for messages.

Method Detail

loaded

public void loaded(org.datanucleus.metadata.AbstractClassMetaData cmd)
This method gets called when an entity is loaded during startup. There is some basic validation that happens here as well as the caching of objects (a.k.a. @Entity classes). Registration of fields happens in the ForceMetaDataManager

Specified by:
loaded in interface org.datanucleus.metadata.MetaDataListener
Parameters:
cmd - the class metadata to load


Copyright © 2011. All Rights Reserved.